Skip to main content
Glama
stanislawherjan1

gdocs-comments-mcp

add_comment

Anchor an inline comment to a chosen phrase in a Google Doc to leave feedback, questions, or edits on specific passages.

Instructions

Add an inline comment anchored to a specific text fragment in a Google Doc (the comment is pinned to that exact phrase, like selecting text and commenting on it by hand). USE THIS WHEN the user wants to leave feedback, notes, questions, edits, or review comments on specific passages of a Google Doc — e.g. "review this doc and comment on the weak spots", "leave a comment on that sentence", "add editorial feedback inline". This is the ONLY way to place anchored comments: the Google Docs and Drive APIs cannot anchor a comment to a text range, so this drives a real logged-in Docs session in a browser. Do NOT use for list/reply/resolve/delete — those work over the Drive API. Requires a one-time npx gdocs-comments-mcp login by the human operator (you cannot log in for them). Omit find_text to add a general, unanchored comment on the document instead. Returns only { ok, anchored, occurrence_used, verified } — never document content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
docYesGoogle Docs document id, or the full docs.google.com/document/d/<id>/edit URL.
find_textNoExact single-line text fragment to anchor the comment to. Must match the doc text exactly; pick a fragment unique enough to identify the spot (or pass occurrence). Omit for a general, unanchored comment on the whole document.
occurrenceNoWhen find_text appears multiple times, anchor to the N-th match (1-based). Default: 1.
comment_textYesThe comment body. Plain text; newlines allowed.
Behavior5/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It reveals that the tool drives a real logged-in Docs session in a browser, requires a one-time human login, and returns only { ok, anchored, occurrence_used, verified } — never document content. This is substantive context beyond basic mutation semantics.

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 description is somewhat lengthy but every sentence is purposeful: definition, usage, exclusions, prerequisites, and return value. It is front-loaded with the core purpose and then provides critical context. Slightly verbose but well-structured and not redundant.

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 tool with no output schema, the description explains the return format and explicitly says what it never returns. It covers the API limitation, login requirement, alternative operations, and parameter usage nuance (find_text omission). This makes the tool's behavior fully predictable in different scenarios.

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 the baseline is 3. The description adds minimal extra meaning: it reinforces that find_text can be omitted for an unanchored comment and explains the anchoring concept, but the schema already documents each parameter precisely. No significant additional semantics are provided.

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 description clearly states the tool's function: 'Add an inline comment anchored to a specific text fragment in a Google Doc'. It specifies the resource (Google Doc), the action (add anchored comment), and distinguishes it as the only way to place anchored comments due to API limitations, setting it apart from sibling tools.

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?

The description provides explicit usage guidance with 'USE THIS WHEN' and concrete examples like 'review this doc and comment on the weak spots'. It also states exclusions: 'Do NOT use for list/reply/resolve/delete — those work over the Drive API', and mentions the one-time login prerequisite, fully covering when and when not to use the tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/stanislawherjan1/gdocs-comments-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server