Skip to main content
Glama

show

Retrieve a specific document page or check whether a document is indexed. Use page_number to read full page text; omit it to get document metadata.

Instructions

Use to read a specific page, or to check whether a document is indexed.

Use to read a specific page, or to check whether a document is already indexed.

Without page_number: shows document metadata (pages, chunks, collection). With page_number: shows the full text for that page.

Args: document_name: Document filename (e.g., 'report.pdf'). page_number: Page number (1-indexed); nonpositive means metadata only. collection: Optional collection scope.

Returns: Document metadata (nonpositive page_number) or full page text. Missing documents/pages return ordinary not-found text, not an Error: result. Other failures return Error: ...; connection errors add recovery guidance.

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": {
      "document_name": "<document_name>"
    },
    "name": "show"
  }
}

Input Schema

NameRequiredDescriptionDefault
collectionNo
page_numberNo
document_nameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4/5.0
Behavior4/5

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

No annotations exist, so the description must carry the behavioral burden, and it does unusually well: it discloses that missing documents/pages return ordinary not-found text rather than an 'Error:' result, that other failures return 'Error: ...', and that connection errors add recovery guidance. What it omits is whether the call is strictly read-only/side-effect free and whether very long pages are truncated.

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?

The Args/Returns structure is clean and front-loaded, leading with the two usage modes before listing parameters. The main flaw is the near-duplicated opening line ('check whether a document is indexed' repeated with 'already indexed'), which wastes space without adding information.

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?

For a simple three-parameter reader with an output schema present, this covers the mode switch, all parameters, and error/not-found semantics, so an agent can call it correctly. The remaining gap is behavior on large pages and the precise meaning of the collection scope, neither of which is documented anywhere else.

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?

With 0% schema description coverage, the description must define all three parameters, and it does: document_name with a filename example, page_number as 1-indexed with the nonpositive convention lumped into metadata-only mode, and collection as an optional scope. The collection parameter is described only as 'Optional collection scope', which is thin given no schema text backs it.

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?

The description states a concrete verb and resource: read a specific page of a named document, or check whether a document is indexed, and it explains the metadata-vs-full-text split driven by page_number. That is far more specific than the bare name 'show'. It does not, however, distinguish itself from siblings such as 'find', 'list', or 'status', which an agent must infer from names alone.

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?

It gives clear usage contexts (reading a page, verifying indexing) and a conditional rule: without page_number you get metadata, with page_number you get full text. It stops short of explicit exclusions or naming an alternative tool for search/lookup scenarios, so an agent is left to guess when to prefer a sibling.

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