Skip to main content
Glama

verify_retrieval

Verify a candidate answer against source facts: checks each claim, returns confidence (HIGH/MEDIUM/LOW), verified and unverified claims, and per-claim source pointers.

Instructions

Adversarially verify an answer is grounded in a specific set of facts. An independent Coach LLM call checks each material claim in the answer against the supplied source facts and returns confidence (HIGH / MEDIUM / LOW), verified + unverified claim lists, and per-claim source_pointers. Never raises; failures return LOW + error populated. v0.12.12.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesThe user query the answer responds to
answerYesThe candidate answer under verification
fact_idsYesIDs of facts the caller believes ground the answer. Missing IDs are silently dropped.
verification_modelNoOptional Coach model override. Defaults to config.verification_model (Haiku 4.5).
Behavior4/5

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

Discloses key behaviors: uses independent Coach LLM, never raises exceptions (returns LOW with error), returns confidence levels and claim lists. No annotations, so description carries burden well, though could mention idempotency.

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 concise sentences with front-loaded purpose and no fluff. Version number is minor but acceptable.

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?

Covers main behavior and return structure given no output schema. Could add more detail on return format (e.g., type of lists) but sufficient for most use cases.

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 covers 100% of params. Description adds value: 'Missing IDs are silently dropped' for fact_ids and default model info for verification_model.

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?

Description uses specific verb 'verify' and resource 'answer grounded in facts', with unique approach 'Adversarially' and 'Coach LLM'. It clearly distinguishes from sibling tools like find_contradictions.

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?

Implied usage for thorough verification, but no explicit when-to-use or when-not-to-use guidance compared to alternatives like find_contradictions or query_fact.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SaravananJaichandar/world-model-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server