validate_mcp_response
ActiveTool of IA-QA — 130+ QA & Dev Tools for AI Agents
Validate that an MCP tool response conforms to expected format, schema, and content rules. Use this to QA-test any MCP server tool. Supply the tool's actual JSON result and a set of checks to perform.
Parameters schema
{
"type": "object",
"required": [
"response"
],
"properties": {
"response": {
"type": "string",
"description": "The MCP tool result as a JSON string to validate"
},
"min_items": {
"type": "number",
"description": "If response is an array, minimum number of items expected"
},
"expected_type": {
"enum": [
"object",
"array",
"string",
"number"
],
"type": "string",
"description": "Expected top-level type: \"object\", \"array\", \"string\", \"number\""
},
"required_keys": {
"type": "string",
"description": "Comma-separated list of keys that MUST exist in the response (dot-notation for nested: \"data.id, data.name\")"
},
"actual_latency": {
"type": "number",
"description": "Actual measured latency in ms (from the call)"
},
"forbidden_keys": {
"type": "string",
"description": "Comma-separated list of keys that MUST NOT exist (e.g. \"password, secret, token\")"
},
"max_size_bytes": {
"type": "number",
"description": "Maximum acceptable response size in bytes"
},
"max_response_ms": {
"type": "number",
"description": "Maximum acceptable latency in ms (will be compared if provided)"
}
}
}No endpoints wrapped at confidence ≥ 0.50.
Parent server
IA-QA — 130+ QA & Dev Tools for AI Agents
https://github.com/jcjamet/ia-qa
1/7 registries