Skip to main content
Glama

totem_eval_tool

Evaluate context ranking against golden cases or an auto-generated smoke set, using recall@k, MRR, baseline regression tolerance, and P95 latency gates to validate retrieval quality.

Instructions

Evaluate context ranking on a golden case file (or an auto smoke set).

Args: cases_file: JSON file of cases; omitted means derive cases from memories k: Cutoff for recall@k baseline_file: Optional prior report to gate against tolerance: Allowed recall/MRR regression p95_ms: Latency budget for the gate project: Optional project root path

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "totem_eval_tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
kNo
p95_msNo
projectNo
toleranceNo
cases_fileNo
baseline_fileNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.11.0

TDQS

B3.3/5.0
Behavior2/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, and it leaves key traits unstated: whether the tool is read-only, whether it writes a report to disk, what happens when the gate fails (error vs. report), and whether it is expensive or long-running. 'Gate against' hints at a pass/fail semantic but never states it explicitly. An output schema exists, so return-value detail is not required, but side effects and failure modes are absent.

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?

The purpose sentence is front-loaded and the Args block is scannable with no filler prose; every line maps to a real parameter. Repetition of 'Optional' and the slightly clipped phrasing ('Cutoff for recall@k', 'Latency budget for the gate') read as docstring shorthand rather than wasted space.

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?

For a six-parameter evaluation harness with no annotations, the description gives purpose and per-parameter meaning but omits workflow context: what the run does with results, how gating behaves on regression, and whether memory state is required to derive the smoke cases. The presence of an output schema covers the return shape, so the remaining gap is behavioral rather than structural.

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 do all the work, and it does cover all six parameters: cases_file, k, baseline_file, tolerance, p95_ms, and project each get a short gloss. The glosses are terse and leave ambiguity — 'tolerance: Allowed recall/MRR regression' does not specify fraction vs. percent (default 0.02), and 'project: Optional project root path' does not say what changes when it is omitted.

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 opening sentence names a specific verb and resource: 'Evaluate context ranking on a golden case file (or an auto smoke set).' It distinguishes the tool from the memory_* siblings by framing it as an offline evaluation harness rather than a memory operation. It stops short of saying what an evaluation produces or what 'context ranking' is measured against, which keeps it out of 5 territory.

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 only implied through the parameter list: 'baseline_file: Optional prior report to gate against' and 'p95_ms: Latency budget for the gate' suggest a CI/regression-gating scenario, and 'cases_file ... omitted means derive cases from memories' signals the zero-config smoke path. There is no explicit when-to-use statement, no prerequisites (e.g. must the project be initialized?), and no comparison to nearby tools such as memory_quality_tool or memory_audit_tool.

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