Skip to main content
Glama

Rag answer

rag_answer
Read-only

Answer a question grounded ONLY in the studio's knowledge base, with numbered citations back to the sources. Says so if the answer isn't in the data.

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": {
      "question": "<question>"
    },
    "name": "rag_answer"
  }
}

Input Schema

NameRequiredDescriptionDefault
top_kNoDefault 6.
questionYes

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=true, openWorldHint=false and destructiveHint=false, so the safety profile is covered. The description adds genuine behavior beyond that: responses must be grounded strictly in the knowledge base, must carry numbered source citations, and must explicitly disclose when the answer is absent. Return shape and top_k handling remain undisclosed.

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?

Two short sentences with zero filler; the grounding constraint and citation requirement come first, and the fallback behavior follows. Every clause carries information an agent needs.

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 a read-only, two-parameter tool and no output schema, the description covers the essentials: scope of grounding, citation format, and abstention behavior. The only real gap is top_k semantics, which the schema also leaves thin.

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 50%: 'top_k' has only 'Default 6.' and 'question' has no schema description at all. The description partially compensates by constraining what 'question' means (it must be answerable from the studio's knowledge base), but it adds nothing about retrieval breadth, top_k behavior, or how loosely the question may be phrased.

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 ('Answer a question grounded ONLY in the studio's knowledge base') plus the output contract ('numbered citations back to the sources'). It does not name or contrast with siblings such as graph_answer or rag_search, so differentiation is inferred from the knowledge-base scoping rather than stated.

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: this is the tool for answering questions from the studio's own data, and the abstention clause signals questions outside that data are handled rather than redirected. There is no explicit when-to-use/when-not statement and no pointer to graph_answer or rag_search for other question types.

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.

Resources