Skip to main content
Glama

get_document

Fetch one object from the allowlisted S3 prefix.
Returns provenance + text when extractable. Does not persist into DecisionPen
(mode=cite_only|propose|persist_approved — MCP itself never Confirmed-writes).
item_id: full S3 object key (from list_sources / search_docs).
include_text: when true, attempt text extraction for cite-only 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": {
      "item_id": "<item_id>"
    },
    "name": "get_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
item_idYes
include_textNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does meaningful work: it declares the read-only allowlisted scope, notes text is only returned 'when extractable,' and states the tool does not persist into DecisionPen and never Confirmed-writes. Remaining gaps are failure behavior (what happens when extraction fails) and any size limits.

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 kept to a handful of short lines with no filler. The parenthetical 'mode=cite_only|propose|persist_approved' is somewhat cryptic and references modes absent from the schema, slightly muddying an otherwise tight statement.

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?

An output schema exists, so return values need not be spelled out, and both parameters are covered in text despite 0% schema coverage. Combined with the disclosed read-only and no-persist behavior, this is close to sufficient; only error and extraction-failure semantics are absent.

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 compensate and largely does: item_id is defined as the full S3 object key with its source tools, and include_text is explained as attempting extraction for cite-only use. Format specifics of the key (prefix conventions, encoding) are still left implicit.

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?

States a specific verb and resource -- 'Fetch one object from the allowlisted S3 prefix' -- and names the return payload (provenance + text when extractable). It does not explicitly contrast with siblings like search_docs or get_entity_evidence, but it does point to where item_id originates, which partially routes the agent.

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 usage context: item_id comes from list_sources or search_docs, include_text is for cite-only use, and the tool never persists into DecisionPen. It stops short of explicit when-not-to-use framing or naming a concrete alternative tool for full-text search.

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.