Skip to main content
Glama

create_bookmark

Destructive

Create a named anchor at a chosen position in a Google Doc so you can look up that location later without hardcoding raw indices; the underlying range updates as edits occur.

Instructions

Create a lightweight, named anchor point at a single position in a Google Doc.

The Docs API has no dedicated bookmark-creation endpoint (Docs UI bookmarks can only be inserted by hand). This is a convenience wrapper around create_named_range that spans the single character at index, giving you a named position you can look up later without hardcoding raw indices — the range's bounds shift automatically as the API tracks surrounding edits.

Use get_doc_structure to find a suitable index.

Args: doc_id: The Google Doc file ID. name: Name for the bookmark. Not required to be unique; 1-256 UTF-16 code units. index: Document position to anchor at (the character at this index is included in the underlying named range).

Returns: Confirmation with docId, namedRangeId, name, index.

Note: This is not a Docs UI bookmark: it won't appear in Insert > Bookmark and cannot be used as an internal hyperlink target (the Link object only supports UI-created bookmarks and headings, not named ranges). Use create_named_range directly for an anchor spanning more than one character.

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": {
      "doc_id": "<doc_id>",
      "name": "<name>",
      "index": "<index>"
    },
    "name": "create_bookmark"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
indexYes
doc_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the destructiveHint=true annotation, the description discloses non-obvious behavior: it is a wrapper over create_named_range spanning exactly one character, the range bounds shift as the API tracks edits, and names need not be unique (1-256 UTF-16 code units). It also warns the result is not a Docs UI bookmark and cannot serve as an internal hyperlink target, which is exactly the kind of caveat an agent cannot infer from structured fields.

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?

The core definition is front-loaded in the first two sentences, followed by Args/Returns/Note sections that are each informative rather than padded. It runs longer than strictly necessary and the Note could be tightened, but no sentence is redundant with structured data.

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 three-required-parameter mutation with no schema descriptions, the definition covers purpose, index sourcing, name constraints, the underlying mechanism, and the semantic limits of the result. An output schema exists, yet the Returns line still orients the agent on what confirmation fields come back.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must carry the full burden, and it does: doc_id is identified as the Google Doc file ID, name gets length and uniqueness semantics, and index is defined as the document position whose character is included in the underlying named range. That is substantive meaning beyond the bare string/integer types in the schema.

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 first sentence gives a precise verb and resource ("Create a lightweight, named anchor point at a single position") and the second explicitly frames the tool as a wrapper around create_named_range because the Docs API lacks a bookmark-creation endpoint. This makes it distinguishable from create_named_range 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 where to get the input ("Use get_doc_structure to find a suitable index") and routes the agent away when the span exceeds one character ("Use create_named_range directly for an anchor spanning more than one character"). The Note adds a clear when-not-to-use case around hyperlink targets.

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

Deploy Server

Other Tools