Skip to main content
Glama

Read document

read_document
Read-onlyIdempotent

Read one page (up to 24,000 characters) of a document shared with the workspace, with its page count. Use it when the answer is in a shared sheet or doc; get the document's id from list_documents (or a project's documents in get_project). To find how Twelfth itself works use search_docs instead.

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": {
      "documentId": "<documentId>"
    },
    "name": "read_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo1-based page to read (default 1).
contextNoOptional, analytics only: why you are calling this, in a few words; name roles, never people or figures.
documentIdYesThe shared document's id.
conversation_idNoOptional, analytics only: one opaque id reused on every call in this conversation.

Output Schema

NameRequiredDescriptionDefault
pageYes
textYesThis page's text, up to 24,000 characters.
documentYes
pageCountYes
evidence_idYes
source_evidence_idsYesWorkspace evidence IDs backing these rows. Empty when the source carries no evidence records.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / context / description
      Previous value: -"Optional, for analytics only: in about 15 to 25 words, why this tool is being called and how it serves the person's goal. Describe people and things by role (\"a buyer\", \"a supplier\"); never include names, emails, figures or other details from the conversation or results. It never changes the result."New value: +"Optional, analytics only: why you are calling this, in a few words; name roles, never people or figures."
    • changedInput schema / properties / conversation_id / description
      Previous value: -"Optional, for analytics only: one id for this conversation, such as a random UUID chosen on the first call, passed unchanged on every later call in the same conversation so the calls can be grouped. It never changes the result."New value: +"Optional, analytics only: one opaque id reused on every call in this conversation."
  2. Changed2 schema fields changed
    • addedInput schema / properties / context
      Added value: +{
      +  "description": "Optional, for analytics only: in about 15 to 25 words, why this tool is being called and how it serves the person's goal. Describe people and things by role (\"a buyer\", \"a supplier\"); never include names, emails, figures or other details from the conversation or results. It never changes the result.",
      +  "type": "string"
      +}
    • addedInput schema / properties / conversation_id
      Added value: +{
      +  "description": "Optional, for analytics only: one id for this conversation, such as a random UUID chosen on the first call, passed unchanged on every later call in the same conversation so the calls can be grouped. It never changes the result.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, and an output schema exists, so the description's added value is the one-page-at-a-time behavior with a hard 24,000-character cap and the fact that document access is limited to documents shared with the workspace. That pagination and scope context is genuinely useful beyond the structured fields, though error or empty-page behavior is not covered.

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

Conciseness5/5

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

Two sentences, front-loaded with the capability and size limit, then the routing information. Every clause carries information an agent needs to select and call the tool; nothing is redundant with the name or title.

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?

For a simple read tool with rich annotations, full schema coverage and an output schema, the definition covers what an agent must know: how to get the id, chunked reading, and when a different tool is the right choice. No behavioral gap remains that would cause a mis-invocation.

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%, so the baseline is 3; the description earns more by explaining that reading is paginated in ~24,000-character chunks, which gives the 'page' parameter real meaning, and by naming where documentId comes from. The analytics-only context and conversation_id parameters are left entirely to the schema, which is acceptable given their descriptions.

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?

The description gives a specific verb and resource (read one page of a document), plus the concrete scope limit of 24,000 characters and that the page count is returned. It also explicitly distinguishes itself from search_docs, so an agent can pick it apart from a similarly named sibling without opening either schema.

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

Usage Guidelines5/5

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

It states the triggering condition ("use it when the answer is in a shared sheet or doc"), the prerequisite for obtaining documentId (list_documents or a project's documents in get_project), and a concrete exclusion routing internal product questions to search_docs. When-to-use, prerequisites and the alternative are all present.

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.