Skip to main content
Glama

ai_document_qa

Read-onlyIdempotent

AI Document Q&A: answer a question from up to five documents given as text. Returns the answer plus verbatim quoted passages that were checked against the text. Requires a plan with AI access. AI-generated: review before use.

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>",
      "documents": "<documents>"
    },
    "name": "ai_document_qa"
  }
}

Input Schema

NameRequiredDescriptionDefault
questionYesQuestion as text.
documentsYesList of documents.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive behavior, so the safety profile is covered. The description adds genuinely new behavior: the return includes verbatim quoted passages verified against the text, access requires an AI-enabled plan, and output is AI-generated and should be reviewed — all of which matter to an agent composing a call and trusting the result.

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 compact sentences, each carrying distinct information: capability and limit, return shape, and precondition/trust caveat. Nothing is padded and the key scope constraint is front-loaded.

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

Completeness5/5

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

With no output schema, the description still explains what comes back (answer plus verified quoted passages), plus the plan requirement and the AI-generated review caveat. For a two-parameter read-only tool with full schema coverage, this covers everything an agent needs to invoke it correctly.

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%, with each parameter already documented including examples. The description only restates the practical limit ('up to five documents') that the schema encodes as maxItems, adding no new semantics for the question field or the name/text pair. Baseline 3 is appropriate when the schema does the work.

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?

States a specific verb and resource ('answer a question from up to five documents given as text') with the scope constraint (five documents, text input) built into the first sentence. The 'given as text' qualifier separates it from document/file-oriented siblings, so an agent can identify the right tool without opening the schema.

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?

Gives a clear usage context — question answering over supplied plain-text documents, capped at five — which implicitly tells the agent when this applies. It does not name an alternative tool or state when not to use it, so the guidance stops short of explicit routing.

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