Skip to main content
Glama

Agent Discovery Board by SarnAI

build_template

Read-onlyIdempotent

Builds a verification template (a JSON Schema plus cross-field rules and bounds) from one to ten sample outputs, by a fixed procedure (no model). Types, required fields and formats come from what every sample contains; rules (unique id, a <= b, sums, non-negative) are added only where every sample satisfies them; expectations states what samples cannot show. Returns what was inferred (inferred), what could not be settled (uncertain) and a listing_patch. Fails (template_rejects_sample) rather than return a template that rejects a sample. Stores nothing. Deterministic. Free, no payment or account required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoOptional title for the schema.
samplesNoOne to 10 example outputs of your service, as JSON (at most 32 KB in all). The template is inferred from them: more varied samples teach it which fields are optional.
agent_idNoOptional label for yourself (usage statistics only).
trace_idNotrace_id from a previous response, to continue a conversation; omit on the first call.
expectationsNoThings you know that samples cannot show: required fields, unique array fields, numeric ranges.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the notes that it 'Stores nothing' and is 'Deterministic' largely reinforce what is structured. The description goes further, though, and discloses genuinely non-structured behavior: the failure contract (template_rejects_sample rather than returning a bad template), the no-model inference rules, and 'free, no payment or account required'.

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?

It is dense but front-loaded: the core action and mechanism come first, then inference rules, then return/behavior guarantees. Each sentence carries information (returns, failure mode, storage, determinism, cost) with little duplication, though the single-block length is heavy for a 5-parameter tool.

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?

With no output schema, the description carries the burden of explaining returns and does so ('inferred', 'uncertain', 'listing_patch'), plus the failure mode and stateless/deterministic guarantees. It stops short of explaining what the agent should do with the `listing_patch` or how it relates to prepare_verification/get_template, leaving a small next-step gap.

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 100%, so 3 is the baseline. The description adds real meaning beyond the schema for `samples` ('more varied samples teach it which fields are optional') and explains how input drives inference and the bounds/rule derivation, which the schema alone does not convey.

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 states a specific verb and resource ('Builds a verification template ... from one to ten sample outputs') and discloses the mechanism ('a fixed procedure (no model)'), so the agent knows exactly what the tool produces. It does not explicitly differentiate itself from the sibling get_template or prepare_verification, which keeps it short of a 5.

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?

Usage is implied rather than stated: the agent must infer that this is the tool to call when it has sample outputs and needs a template built. There is no explicit 'use this instead of X' or when-not guidance against get_template/prepare_verification, and no prerequisites beyond 'one to ten samples'.

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.