Skip to main content
Glama

get_ir_document_content

Read-only

The extracted text of one IR document, page by page — use it to open the pages an analysis cites, or to read a deck directly.

FLOW: take `document_url` from list_ir_documents or get_ir_document_analysis. A
`page_number_url` (document_url#page=N) works too: the `#page=N` is dropped before the
call and the whole document comes back, so read the page whose `page_number` is N.

Returns {"url", "count", "pages", "note"}. A page is {page_number, page_number_url,
char_count, content}. Cite a page's `page_number_url` when you repeat anything from its
`content`.

An empty result usually means the url is not a stored document_url (a `source_url`
will not match): `note` is set only then. A 422 means the url failed validation. A 401
means the sign-in expired (your MCP client re-runs OAuth). Requires auth (your MCP
client attaches the OAuth bearer automatically). Rate-limited 100/min per user; counts
toward plan quota.

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": {
      "url": "<url>"
    },
    "name": "get_ir_document_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesA document_url returned by list_ir_documents or get_ir_document_analysis (an http(s) URL with no whitespace, at most 2048 characters). Not the source_url.

Output Schema

NameRequiredDescriptionDefault
urlYesThe document_url sent to the backend.
noteNoSet only when no pages came back: what an empty result can mean.
countYesPages returned.
pagesYesOne entry per page of extracted text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

With only readOnlyHint supplied, the description carries real behavioral weight: fragment stripping on page_number_url, what an empty result means, 422 = validation failure, 401 = expired auth handled by the client, 100/min rate limit, and plan-quota consumption. None of this is recoverable from the annotations.

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 purpose sentence, then labeled FLOW / Returns / error blocks, which is easy to scan. Slightly verbose in the auth parenthetical ('your MCP client attaches the OAuth bearer automatically'), which repeats what the 401 sentence already conveys.

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?

Covers the acquisition path, fragment handling, response shape, citation convention, and error semantics for a single-parameter read tool. Even though an output schema exists, the field-level summary of {url, count, pages, note} and the per-page shape adds practical guidance for citing results.

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 the schema already states the http(s) pattern and the 'not source_url' constraint. The description adds genuinely new semantics — that a page_number_url with #page=N is accepted and the fragment is dropped, and where the url should come from — which is the meaningful delta.

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 ('The extracted text of one IR document, page by page') and immediately distinguishes the two use cases: opening pages cited by an analysis or reading a deck directly. The 'one IR document' scope plus the source_url exclusion makes it unambiguous against adjacent tools like list_ir_documents.

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 concrete upstream flow (take document_url from list_ir_documents or get_ir_document_analysis) and explains the #page=N shortcut and that the whole document comes back. It also implies a when-not case by noting a source_url will not match, though it never names an alternative tool for that situation.

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