When calling the query_documents tool, the MCP client receives an error: params must NOT have additional properties. Additionally, the queryDocuments service function reports that "A query string must be provided," indicating that the query parameter is not being correctly passed.
This bug prevents the query_documents tool from functioning correctly, as its input parameters are not being validated or routed as expected.
Acceptance Criteria
- The
openapi.yaml definition for the query_documents tool is reviewed and corrected.
- The
buildZodSchema function in toolService.mjs is reviewed to ensure it correctly processes requestBody parameters for direct argument mapping.
- The
query and type parameters are correctly passed from the MCP client to the queryDocuments service function.
- The
query_documents tool executes successfully with valid parameters.
When calling the
query_documentstool, the MCP client receives an error:params must NOT have additional properties. Additionally, thequeryDocumentsservice function reports that "A query string must be provided," indicating that thequeryparameter is not being correctly passed.This bug prevents the
query_documentstool from functioning correctly, as its input parameters are not being validated or routed as expected.Acceptance Criteria
openapi.yamldefinition for thequery_documentstool is reviewed and corrected.buildZodSchemafunction intoolService.mjsis reviewed to ensure it correctly processesrequestBodyparameters for direct argument mapping.queryandtypeparameters are correctly passed from the MCP client to thequeryDocumentsservice function.query_documentstool executes successfully with valid parameters.