Skip to main content
Glama

NAIF Gravity Diagnostic — Free MCP/API/Webhook Triage

Diagnose JSON / MCP Schema Type Mismatch

diagnose_json_schema_failure

Diagnose a bounded JSON Schema or MCP input-schema type mismatch using only sanitized paths and types; no raw payload is required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextNo
actual_typeNo
schema_pathNo
error_messageYes
expected_typeNo
instance_pathNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
policyYes
trace_idYes
diagnosisYes
confidenceYes
free_checksYes
collision_idYes
repair_scopeYes
evidence_hashYes
failure_classYes
quote_endpointYes
confidence_labelYes
repair_availableYes
secrets_redactedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations declare destructiveHint=false and openWorldHint=true but also readOnlyHint=false and idempotentHint=false, which is a slightly surprising profile for a diagnostic tool and is neither explained nor contradicted by the description. The description does add genuine value beyond the annotations by stating the tool operates on sanitized paths and types and needs no raw payload, which is useful data-handling context, but it says nothing about what the diagnosis produces or its confidence.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single tight sentence with the core purpose and the key constraint front-loaded. Every clause earns its place and there is no padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described, which the description correctly omits. However, for a 6-parameter tool with no schema descriptions, no parameter explanation, and no routing guidance against the near-identical diagnose_mcp_failure sibling, the definition is only minimally complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% across 6 parameters, so the description carries the full burden. It gestures at 'sanitized paths and types', loosely covering schema_path/instance_path and expected_type/actual_type, but it never mentions the required error_message parameter or the free-form context field, and gives no format expectations for the paths.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb (diagnose) and a precise resource (JSON Schema / MCP input-schema type mismatch), which is narrow enough to separate it from diagnose_api_auth_401 and diagnose_webhook_signature. It does not, however, draw a boundary against its closest sibling, diagnose_mcp_failure, leaving some ambiguity about which to pick for MCP-related errors.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use statement, no prerequisites, and no named alternative. The clause 'no raw payload is required' hints at an input constraint but is not framed as usage guidance, and no sibling is referenced to route the agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.