Skip to main content
Glama
gworkspace-mcp
by ctschak

Describe a document

docs_describe

Outline a Google Doc's structure—title, heading tree with index ranges, table positions, body length, named styles, and tabs—before reading or editing to see its shape.

Instructions

Outline of a Google Doc without its full text: title, heading tree with index ranges, table positions, body length, named styles, tabs. Call this first to see the shape of a document before reading or editing it.

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_describe"
  }
}

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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations exist, so the description carries the full behavioral burden. It does disclose a valuable behavioral fact — the response is an outline and deliberately omits the document body — which sets token/size expectations and implies a non-mutating read. However, it says nothing about permissions, error behavior on invalid ids, or how large documents are handled.

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, both dense with information: the first front-loads the return shape, the second front-loads the call-ordering advice. No filler or restatement of the title.

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?

With no output schema and no annotations, the description must carry both return values and safety posture, and it does describe the returned fields in useful detail. It is slightly incomplete in not stating error conditions or whether repeated calls are cheap, but an agent can call it correctly from this.

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

Parameters3/5

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

Schema description coverage is 100%, and the schema already explains the document, tab, and account parameters in detail, including the multi-tab write requirement. The description's mention of 'tabs' merely echoes a return field. Baseline 3 is appropriate since the schema does the heavy lifting.

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 names a specific resource (a Google Doc) and a specific operation (produce an outline, not the text), and enumerates what the outline contains: title, heading tree with index ranges, table positions, body length, named styles, tabs. The phrase 'without its full text' implicitly separates it from docs_read, though no sibling is named explicitly.

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 a clear directive with timing: 'Call this first to see the shape of a document before reading or editing it,' which establishes ordering relative to read/edit tools. It stops short of explicit when-not-to-use conditions or naming the alternative tool, so it is clear context rather than full routing guidance.

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