Skip to main content
Glama
AskBase

AskBase

Official

get_document_chunks

Retrieve a document's text chunks in order by document ID, with an optional limit, to inspect or process its content.

Instructions

The text chunks of one document, in order.

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_id": "<document_id>"
    },
    "name": "get_document_chunks"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
document_idYesDocument ID

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and largely drops it. It reveals one useful trait — chunks are returned in order — but says nothing about read-only safety, pagination via limit (default 50, max 200), behavior when a document has more than 200 chunks, or what happens for an unknown or unindexed document_id.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is a single short sentence with zero waste and the scope is front-loaded, which is good. But brevity here crosses into under-specification: the fragment omits the verb and any operational detail, so concision is achieved at the cost of completeness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/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-value structure need not be restated. That said, for a two-parameter tool with no annotations and an undocumented pagination parameter, the description leaves too much unstated — notably whether limit truncates results and whether ordering is guaranteed across pages.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 50%, and the one documented parameter (document_id) is described only as 'Document Id', which is tautological. The description's 'one document' maps loosely to document_id but adds no format or type detail, and the limit parameter is never mentioned, so callers get no hint that results may be truncated at a default of 50.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The phrase 'The text chunks of one document, in order' identifies the resource (text chunks), the scope (one document), and the ordering guarantee, so an agent can infer what comes back. However it is a noun phrase with no verb, and it does not distinguish this from the sibling get_document, which plausibly returns the document itself rather than its chunks.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use guidance at all: nothing says to prefer this over get_document when the caller needs raw chunk text for retrieval or citation, and no prerequisites or error conditions are mentioned. The only implicit signal is 'one document', which at least implies this is a per-document call rather than a listing tool.

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