The MCP tools/list response currently does not include the optional outputSchema for each tool. While optional, providing this schema will improve the tool definition's completeness and allow clients to better understand and validate the expected response structure.
This ticket covers the work to define the outputSchema using zod, based on the OpenAPI specification, and include its JSON Schema representation in the tool definitions.
Acceptance Criteria
toolService.mjs is refactored to define a zod schema for the successful response of each operation, based on the responses section of openapi.yaml.
- The
zod schema is converted to a plain JSON Schema using a library like zod-to-json-schema.
- The generated JSON Schema is added as the
outputSchema property to each tool definition returned by listTools.
- The
tools/list response is verified to include the new outputSchema for each tool.
The MCP
tools/listresponse currently does not include the optionaloutputSchemafor each tool. While optional, providing this schema will improve the tool definition's completeness and allow clients to better understand and validate the expected response structure.This ticket covers the work to define the
outputSchemausingzod, based on the OpenAPI specification, and include its JSON Schema representation in the tool definitions.Acceptance Criteria
toolService.mjsis refactored to define azodschema for the successful response of each operation, based on theresponsessection ofopenapi.yaml.zodschema is converted to a plain JSON Schema using a library likezod-to-json-schema.outputSchemaproperty to each tool definition returned bylistTools.tools/listresponse is verified to include the newoutputSchemafor each tool.