Skip to main content
Glama

docs_update

Edit or insert text in a Google Doc at a specified position to update document content.

Instructions

Update/edit text in a Google Doc

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>",
      "text": "<text>"
    },
    "name": "docs_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesText to add/replace
indexNoPosition to insert (1 = start)
documentIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.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 burden, yet it says nothing about whether existing content is overwritten, whether changes are reversible, what auth/permission scope is required, or what is returned. Only the bare implication of a mutation is conveyed.

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?

A single six-word sentence is maximally front-loaded and free of padding, but here brevity reads as under-specification rather than efficiency. There is no structure to speak of because there is almost no content.

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?

This is a mutation tool with no annotations, no output schema, and one of three parameters entirely undocumented. Given that complexity and the absence of structured safety signals, the description would need to do much more to be sufficient.

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 coverage is 67%: text and index have descriptions, but documentId is undocumented in both schema and description. The definition adds no meaning beyond the schema, and notably does not clarify how 'text to add/replace' interacts with 'index = 1 (start)' for an update operation.

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 description names a verb (update/edit) and a resource (text in a Google Doc), which is enough to know the general domain. However, 'update/edit text' is ambiguous between replacing existing content and inserting new text, and it draws no line against siblings like docs_read or docs_create. An agent can guess the purpose but not the precise operation.

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, no mention of prerequisites (e.g., document must exist, edit permissions), and no named alternative among docs_create/docs_read. The agent must infer the tool's place in the workflow from the name alone.

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