Skip to main content
Glama
gworkspace-mcp
by ctschak

Read document text

docs_read

Reads a Google Doc's plain text, optionally sliced by index range or capped, and returns per-run index boundaries when requested to target precise edits.

Instructions

Plain text of a document, optionally sliced by index range and capped. Set withIndices to get per-run index boundaries for targeting edits.

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": "<document>"
    },
    "name": "docs_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabNoTab id or title, for documents with several tabs. Reads default to the first tab; writes to a multi-tab document REQUIRE this rather than guessing. Get ids from docs_describe.
accountNoGoogle account to act as. Optional when one is authorised or a default is set.
documentYesDocument URL or file id. Both accepted.
endIndexNoEnd of the slice, exclusive.
maxCharsNoCharacter cap. Default 50000.
startIndexNoStart of the slice to return. Default: the whole body.
withIndicesNoAlso return per-run index boundaries, for targeting later edits precisely.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the burden. It discloses the default cap (in the schema, not the prose) and that reads default to the first tab, plus the warning that writes to multi-tab documents require the tab parameter. It does not state truncation behavior when maxChars clips text, auth requirements, or error conditions for a read operation.

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?

Two tight sentences, front-loaded with what is returned. Slightly compressed to the point of terseness — 'capped' and 'sliced' assume the reader maps them to maxChars and index params — but no wasted wording.

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 read tool with full schema coverage and no output schema, the description covers the key behavioral facts: text output, slicing, capping, tab defaults, and the withIndices option for edit targeting. Missing only truncation/formatting detail, which is a minor gap for a read-only operation.

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 baseline is 3; the description adds genuine value by explaining the intent behind withIndices ('for targeting edits') and by noting reads default to the first tab, which clarifies the tab parameter's meaning beyond its schema text. It adds little for startIndex/endIndex, but those are self-explanatory with exclusive-end documented in the schema.

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: 'Plain text of a document', with the scope qualifiers (sliced by index range, capped). It distinguishes itself from docs_describe indirectly by referring to it as the source of tab ids, and the name/description pair is unambiguous about retrieving text rather than metadata.

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

Usage Guidelines3/5

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

Implies usage contexts — reading text, and setting withIndices when you intend to target edits — but gives no explicit when-to-use vs. alternatives such as docs_find or docs_describe. The one actionable hint is the withIndices-to-edit workflow.

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