Skip to main content
Glama

tmh_verify_evidence

Verify a file:line or file:start-end citation against a repository and return the exact source lines. Use it to catch hallucinated references before trusting code claims.

Instructions

Anti-hallucination source citation verifier: check a file:line or file:start-end reference against the repository and return exact lines.

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": {
      "ref": "<ref>"
    },
    "name": "tmh_verify_evidence"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesSource reference in file:line or file:start-end format.
repoPathNoLocal repository path (optional if server started with --repo).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the core behavior (returns the exact lines from the repository) and implies a read-only check, but does not state what happens when the ref is invalid, the file is missing, or the line range is out of bounds, nor whether repoPath defaults are applied.

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?

A single front-loaded sentence with the label-then-action structure, and no wasted clauses. The 'anti-hallucination source citation verifier' label is mildly redundant with the following action but earns its place by conveying purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and no annotations, the description must cover both behavior and return shape; it only partially does so by saying it returns exact lines. Failure modes and repoPath precedence are left unstated for a two-parameter verification tool.

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?

Schema coverage is 100%, so both parameters are already documented in the schema. The description restates the ref format but adds no syntax examples, no guidance on relative vs absolute paths, and does not mention repoPath at all. Baseline 3 is appropriate.

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 gives a specific verb and resource: it checks a file:line or file:start-end reference against the repository. The 'anti-hallucination citation verifier' framing makes the intent distinct from a plain file reader. It does not name a sibling tool to contrast with, so it stops short of 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?

Use is implied: verify a citation before trusting it. There is no explicit when-to-use/when-not guidance and no pointer to alternatives such as tmh_read for reading files or tmh_search for locating lines. The agent must infer the selection rule.

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