Skip to main content
Glama

validate_schema

Deterministically validates that a target JSON payload contains all mandatory keys specified in a reference schema dictionary. Returns a boolean validation status and a list of missing keys. Use when verifying payload structure before downstream processing. Do not use for regex string validation or deep recursive type casting.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesThe target JSON data object to inspect and validate against the schema definition.
schema_definitionYesA JSON object defining mandatory keys required in the target payload (e.g. {'user_id': '', 'status': ''}).

TDQS

A4.2/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 burden. It discloses the deterministic nature ('Deterministically validates'), describes the return (a boolean status and a list of missing keys), and explicitly delimits what it does not do (regex validation, deep recursive casting), which prevents incorrect assumptions. It doesn't mention side effects, but validation implies non-mutating behavior.

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 sentences, no filler. The purpose is stated first, followed directly by usage guidance and exclusions. Every word carries weight.

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 tool with two required parameters, no output schema, and no similar siblings, the description covers the essential context: what it validates, how it returns results, and its limitations. It could mention error handling, but that's not required for correct invocation.

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

Parameters3/5

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

The input schema already covers both parameters with descriptions and an example, so the description adds little beyond labeling it a 'reference schema dictionary'. With 100% schema coverage, the baseline is 3, and this description does not meaningfully augment the schema's clarity.

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?

The description states a specific verb (validates), a resource (target JSON payload), and the precise scope (contains all mandatory keys from a reference schema dictionary). It distinguishes itself from other tools by explicitly saying it is not for regex string validation or deep recursive type casting.

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?

It provides explicit guidance on when to use ('Use when verifying payload structure before downstream processing') and states clear exclusions ('Do not use for regex string validation or deep recursive type casting'). While it doesn't name a specific sibling alternative, it gives enough context to avoid misuse.

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.

TDQS

A4.4/5.0
Disambiguation5/5

Each tool serves a clearly distinct purpose: DNS verification, text chunking, expression evaluation, web extraction, JSON repair, and schema validation. There is no overlapping functionality, and the descriptions explicitly state boundaries (e.g., 'Do not use for' clauses) that prevent misselection.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern (audit_dns, chunk_text, eval_expression, extract_web, repair_json, validate_schema). The verbs are descriptive and uniform, making the naming predictable and scannable.

Tool Count5/5

With 6 tools, the server is well-scoped for a utility server. Each tool addresses a common agent need without redundancy, and the count falls in the ideal range for easy comprehension and selection.

Completeness4/5

The tool set covers common utility gaps (DNS safety, text preparation, calculation, web content, JSON handling). Minor omissions exist, such as a dedicated string manipulation or encoding tool, but the core utilities are complete enough for most agent workflows without dead ends.

Resources