Skip to main content
Glama
DecisionPen MCP Server

DecisionPen MCP Server

Official
by DecisionPen

get_document

Fetch a single allowlisted S3 document and extract its text for cite-only use. Returns provenance and content without writing to DecisionPen, so answers stay evidence-backed.

Instructions

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 observedv0.1.0

TDQS

A3.8/5.0
Behavior3/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 it does disclose meaningful traits: it is a read/fetch, results are not persisted into DecisionPen, MCP itself never Confirmed-writes, and text is returned only "when extractable." It omits other behavioral facts an agent would want — permission/auth expectations, behavior on a missing or non-allowlisted key, and any size limits — leaving real gaps for a zero-annotation tool.

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-loads the action and the return shape, then covers non-persistence and the two parameters compactly. The terse "mode=cite_only|propose|persist_approved" shorthand is slightly cryptic but earns its place by ruling out writes.

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?

Two parameters, both explained, and an output schema exists so return values need not be spelled out. The one substantive gap is failure/permission behavior, which matters more here because no annotations cover it.

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 it does explain both parameters: item_id is the full S3 object key with its provenance, and include_text is a boolean that triggers extraction for cite-only use. It adds real meaning beyond the bare schema titles, though it could clarify the default (schema says true) and what happens when extraction fails.

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." The parenthetical noting item_id comes from list_sources / search_docs implicitly separates this single-object fetch from those listing/search siblings, though it never states the contrast directly.

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 operational context: use it with a key obtained from list_sources or search_docs, and set include_text when the text is needed for cite-only use. It offers no explicit "when not to use this" or routing to a sibling for bulk fetches, so it stops short of full alternative guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.