Skip to main content
Glama

Agent Repair — MCP Tool Failure Diagnostics

validate_tool_arguments

Check supplied tool arguments against a constrained subset of JSON Schema (type, required, properties, additionalProperties, enum, const, numeric/string bounds, arrays). Returns paths and errors, no network access or storage. NOT full JSON Schema validation.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "schema": "<schema>",
      "arguments": "<arguments>"
    },
    "name": "validate_tool_arguments"
  }
}

Input Schema

NameRequiredDescriptionDefault
schemaYesMCP tool inputSchema. Limited JSON Schema subset.
argumentsYesTool call arguments. Remove credentials; no raw payload is logged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden and does well: it discloses the return shape ('paths and errors') and rules out side effects ('no network access or storage'), telling the agent this is a pure computation. It stops short of saying whether failures throw or are returned as structured errors, but the core behavioral profile is present.

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?

Three short sentences with zero filler; the enumerated capability list is front-loaded and the exclusion clause is placed last where it reads as a boundary rather than a caveat up front. Nothing could be cut without losing information.

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

Completeness4/5

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

For a two-parameter, side-effect-free validator with no annotations and no output schema, the definition covers purpose, scope, return shape, and side-effect profile. Only the error-reporting format and any limits on schema size or nesting depth remain unaddressed.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3, and the description earns a bump by enumerating exactly which JSON Schema keywords are honored — information the schema parameter text only gestures at with 'Limited JSON Schema subset.' That enumeration directly tells the agent what to expect from the 'schema' argument.

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

Purpose5/5

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

States a specific verb ('Check') and resource ('supplied tool arguments') and immediately bounds the scope to a named subset of JSON Schema keywords (type, required, properties, additionalProperties, enum, const, bounds, arrays). An agent can tell this apart from diagnose_tool_failure or ecosystem_catalog without opening any schema.

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

Usage Guidelines3/5

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

The trailing 'NOT full JSON Schema validation' is a useful capability boundary, but it is a scope caveat rather than selection guidance. There is no explicit statement of when to reach for this tool versus a sibling, so the agent must infer that it is a pre-flight check before invoking a tool.

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.

Resources