Skip to main content
Glama
gworkspace-mcp
by ctschak

Delete content ranges

docs_delete

Deletes specified index ranges from a Google Doc, applying end-exclusive ranges back-to-front for safe edits. Use docs_find to get ranges and dryRun to preview requests.

Instructions

Delete index ranges, end-exclusive. Get the ranges from docs_find. Applied back-to-front. Supports dryRun.

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>",
      "ranges": "<ranges>"
    },
    "name": "docs_delete"
  }
}

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.
dryRunNoReturn the exact requests that would be sent, in the order they would be applied, and send nothing.
rangesYesRanges to delete, end-exclusive. Get them from docs_find or docs_read withIndices.
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

A4/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does reasonably well: it discloses that ranges are applied back-to-front (critical to avoid index-shift corruption) and that dryRun exists for previewing without sending. It does not state that deletion is irreversible, what permissions are needed, or what the response looks like, leaving real gaps for a destructive mutation.

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?

Four short clauses, each carrying unique information: scope, range source, application order, and dryRun. Nothing is wasted and the scoping constraint is front-loaded.

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 destructive, multi-parameter tool with no annotations and no output schema, the description covers the essentials an agent needs to invoke it safely-ish (range source, order of application, dryRun preview). It stops short of stating irreversibility and permission/authorization requirements, which is a meaningful omission for a delete operation.

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 coverage is 100%, so all five parameters are already documented in the schema, including dryRun and tab handling. The description only echoes end-exclusive semantics and the dryRun option without adding new syntax or format detail, so the baseline 3 applies.

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 gives a specific verb+resource ('Delete index ranges') and adds the end-exclusive semantics, which distinguishes it from insertion/replacement siblings. It does not explicitly name an alternative tool, so it falls short of a 5.

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 clearly routes the agent to docs_find to obtain the ranges before calling, which is a concrete prerequisite most definitions omit. It gives no explicit when-not-to-use guidance (e.g., preferring docs_replace_text for simple substitutions), so 4 rather than 5.

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