Skip to main content
Glama

Rag retrieval evaluation tuning — Atom

Rag retrieval evaluation tuning

rag_retrieval_evaluation_tuning
Read-onlyIdempotent

Submit a retrieval-system evidence manifest (corpus and chunking, hybrid retrieval, reranking and filters, index hygiene, evaluation, serving and privacy); get a deterministic RAG_EVALUATION_SOUND / RAG_EVALUATION_UNSOUND / INSUFFICIENT_EVIDENCE verdict across six sections, including computed recall@k, MRR and nDCG against per-query declared thresholds and scope-leakage checks, with per-check evidence. Declared evidence only; no live index is queried.

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": "rag_retrieval_evaluation_tuning"
  }
}

Input Schema

NameRequiredDescriptionDefault
evaluationNoEvaluation evidence: golden queries with declared relevance, retrieved lists and per-query thresholds; scope-leakage declarations.
index_hygieneNoIndex-hygiene evidence (incremental updates, tombstones, rebuild drill, versioning).
hybrid_retrievalNoHybrid retrieval evidence (lexical + vector, declared combination weights, pinned embedding model).
corpus_and_chunkingNoCorpus and chunking evidence (inventory, freshness, dedup, provenance, chunking discipline).
serving_and_privacyNoServing and privacy evidence (latency budgets, caching, fallback, query-time scopes).
reranking_and_filtersNoReranking and filter evidence (reranker budget, bounded top-N, context token budget).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, non-destructive, closed-world), so the description's real contribution is behavioral: the verdict is deterministic, thresholds are per-query declared, metrics (recall@k, MRR, nDCG) are computed rather than taken on faith, scope-leakage is checked, and per-check evidence is returned. That is substantive beyond the annotations. It does not say how partial manifests are handled even though zero parameters are 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?

Front-loaded with the action and the outcome, and every clause carries information (sections, verdicts, metrics, evidence-only constraint). It is, however, a single sprawling semicolon-chained sentence that would scan better split into purpose and scope sentences.

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 six-section audit tool with no output schema, the description supplies the verdict vocabulary, the fact that per-check evidence is returned, and the evaluation semantics, which is what an agent needs to call it correctly. The remaining gap is the zero-required-parameters situation: it does not say whether a partial manifest is accepted or simply yields INSUFFICIENT_EVIDENCE, and it defers field detail to an external SERVICE.md the agent may not have.

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% and every one of the six object parameters carries its own description, so the schema does the heavy lifting. The description's six-part enumeration largely restates those property names; its only added nuance is that evaluation thresholds are per-query and evidence is declared, which the schema also states. Baseline 3 is appropriate.

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 names a specific verb and resource ('Submit a retrieval-system evidence manifest'), then states exactly what comes back ('deterministic RAG_EVALUATION_SOUND / RAG_EVALUATION_UNSOUND / INSUFFICIENT_EVIDENCE verdict across six sections'). An agent can tell this is an offline evidence-audit tool, not a query tool, from the first clause.

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?

'Declared evidence only; no live index is queried' establishes a clear boundary condition for when this tool applies, and the submit-then-verdict framing implies its trigger. It stops short of explicit exclusions or a named alternative for agents that want to actually run retrieval, so it falls one step below the top band.

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.