Skip to main content
Glama

validate_record

Validate a JSON record against a concept's schema to catch unknown or missing fields, wrong types, and invalid enum values before acting on structured output.

Instructions

Check a JSON object against a concept: unknown fields, missing required fields, wrong types and enum values. Use it on structured output before acting on it.

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": {
      "concept": "<concept>",
      "record": "<record>"
    },
    "name": "validate_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
recordYes
conceptYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It implies a non-mutating check and discloses the categories of defects detected, which is useful, but it does not say whether failures are thrown as errors or returned as a structured list, nor whether validation is strict about additionalProperties. With an output schema present, return-value detail is partly covered elsewhere.

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?

Two short sentences with no filler. The what-it-checks clause is front-loaded and the usage cue closes it, so every clause earns its place.

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 an output schema already documenting results, the description says enough to invoke it correctly. The remaining gaps, mainly how to reference a concept and whether unknown-field handling is strict, are minor rather than blocking.

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 description coverage is 0%, so the description must compensate, and it does: it establishes the relationship between the two required parameters, with 'record' as the JSON object under test and 'concept' as the thing it is validated against. It does not clarify how a concept is referenced (name vs. identifier), leaving one meaningful ambiguity.

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 uses a specific verb ('Check') on a specific resource ('a JSON object against a concept') and enumerates the exact classes of problems it finds: unknown fields, missing required fields, wrong types, and enum values. That is far more informative than a restatement of the name. It stops short of naming a sibling for contrast, but the purpose is unambiguous.

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?

'Use it on structured output before acting on it' gives a clear situational trigger that an agent can act on without inference. There are no exclusions or named alternatives (e.g., when to call describe_concept first to learn the schema), which keeps it below a 5.

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