Skip to main content
Glama

mechacut

check_format

Validate the formats JSON Schema CANNOT express: a string field passes 'type: string' whether it holds 2026-02-30, v1.2..3 or '1,234.56' where a decimal-string was meant — the hidden-schema trap that burns agent pipelines three systems later. payload + formats map ($-path → format, wildcards ok) over a CLOSED, cited set: date-iso/datetime-iso/time-iso (RFC 3339, real calendar, leap second allowed), semver (official grammar), uuid, sha256-hex, hex-color, slug, decimal-string, e164, email, url, currency-iso, country-iso, json-pointer (RFC 6901). Every violation: path, offending value, why, expected — the error is the repair prompt. Unknown format names are refused with the full closed set. Free.

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": {
      "payload": "<payload>",
      "formats": "<formats>"
    },
    "name": "check_format"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatsYese.g. {"$.due": "date-iso"}
payloadYesany JSON document

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and largely meets it: it declares the closed nature of the format set, that unknown names are refused with the full set, that wildcards are accepted in the path map, and what each violation reports (path, value, why, expected). It omits operational details such as whether all violations are returned or validation halts at the first, and whether missing payload paths are errors.

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

Conciseness4/5

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

Purpose is front-loaded and the middle paragraph is dense with usable facts (closed set, wildcards, error shape). It loses a bit to rhetorical framing ('the hidden-schema trap that burns agent pipelines three systems later') and the trailing fragment 'Free.', which are flavorful but not operational.

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 validation tool with no output schema and no annotations, the description covers purpose, the closed format vocabulary, path-map semantics, refusal behavior, and error payload shape. Remaining gaps — multi-error behavior, missing-path handling, payload size limits — are minor rather than blocking for correct invocation.

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 baseline is 3, but the description adds real meaning: the formats map is a $-path to format-name mapping, wildcards are permitted, and the valid format names are enumerated (date-iso, semver, uuid, e164, json-pointer, etc.) with their governing specs. That enumeration is information an agent cannot get from the schema, where formats is only 'e.g. {"$.due": "date-iso"}'.

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 and resource ('Validate the formats JSON Schema CANNOT express') and pins the scope to a named, closed format set, so an agent knows this is format validation rather than conversion (format_convert) or numeric formatting (num_format). The motivating example ('a string field passes type: string whether it holds 2026-02-30...') makes the exact problem domain concrete.

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

Usage Guidelines4/5

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

The description makes the triggering condition clear: use this when type-level schema validation is insufficient for semantic formats. It does not explicitly name an alternative sibling or state exclusions (e.g., when to prefer format_convert for normalizing rather than validating), so it stops short of full when/when-not guidance.

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.