When a Clarity AI Agent runs a data query that needs a filter, the MCP fetchClarityData tool runs without the wrapping parentheses the filter grammar requires so the call fails with API-1013 and the agent returns no rows.
STEPS TO REPRODUCE:
- Connect to an environment with Vaia enabled
- Create a new AI Agent with Type Project, Context Object Chat panel, Tool enabled Yes, Allow User Input Yes
- Set the agent prompt to the text below
- You are a Clarity PPM assistant for the Project "$[object.name]". Help the user with questions about this project's tasks, staff and status. Use the Clarity MCP tools for live data: describeClarityObjects, then describeClarityAttributes/getClarityApiSpec, then lookupClarityValues to resolve names to internal IDs, then fetchClarityData. Never guess an id, code or attribute name.
- Go to a project, open the the VAIA chat for Project Object, and ask "list open tasks on project PR1001"
Expected Results: A filtered agent query such as active projects returns the matching rows.
Actual Results: The query returns no rows and the tool call fails with API-1013 "Invalid filter string ... Each expression must start and end with parentheses". The same query with the filter already wrapped returns rows normally.