Skip to main content
Glama

ai_qa_batch

Read-only

Ask many questions of one document (grounded) — Answer up to 12 questions from one context text (up to 15,000 chars) in a single call. questions = JSON array or questions separated by ||. Each answer comes with the exact supporting quote, and every quote is located offline in the context: exact or close (80%+ word overlap) = GROUNDED, weaker = UNVERIFIED, and questions the text cannot answer = NOT_IN_CONTEXT (answer null). Returns a tally and a verdict OK / REVIEW / NO_ANSWERS. Good for form filling, due diligence checklists and RAG evaluation. Workers AI (Llama 3.3 70B). Price: $0.012 USDC (Base, via x402).

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": {
      "context": "<context>",
      "questions": "<questions>"
    },
    "name": "ai_qa_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
contextYese.g. Refunds are available within 30 days of purchase. Shipping costs $5 for orders under $50 and is free above that. Support is open Monday to Friday, 9am to 5pm Eastern.
questionsYese.g. How long is the refund window?||How much is shipping on a $30 order?||Who is the CEO?

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, so safety is covered. The description still adds real value beyond them: the grounding verification scheme (GROUNDED / UNVERIFIED / NOT_IN_CONTEXT), the verdict rollup, model, and price. The unannotated pricing and offline quote-location behavior are the useful additions, not a restatement of the hints.

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 core action and limits, then the status vocabulary, then model/price. Dense but nearly every clause carries information; the price and model sentence is borderline marketing but still operationally relevant.

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?

No output schema exists, yet the description fully characterizes the response: per-question quote, grounding status tiers, answer null on NOT_IN_CONTEXT, plus an overall tally and OK / REVIEW / NO_ANSWERS verdict. Input limits, cost, and model are all disclosed, leaving nothing an agent needs to call it correctly.

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 coverage is 100% and both properties carry illustrated examples, so the schema does heavy lifting. The description still adds syntax the schema only demonstrates implicitly: questions may be a JSON array or a '||'-separated string, and context has a hard 15,000-char ceiling.

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?

Names a specific verb+resource ('Answer up to 12 questions from one context text in a single call') and separates itself from a single-question tool by emphasizing 'many questions' and 'batch'. It never explicitly names ai_qa as the alternative, so the sibling differentiation is implied 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear context for when to reach for it ('Good for form filling, due diligence checklists and RAG evaluation') and sets hard operating limits (12 questions, 15,000 chars). It stops short of stating when NOT to use it or naming the single-question alternative for one-off asks.

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