Skip to main content
Glama
Google Workspace MCP Server

Google Workspace MCP Server

by mutallipp

Manage Document Comment

manage_document_comment
Destructive

Create, reply to, resolve, edit, or delete comments on Google Docs, with optional anchoring to specific text for precise margin discussions.

Instructions

Manage comments on a Google Document.

Actions:

  • create: Create a new comment. Requires comment_content. Pass anchor_text (literal text within one paragraph that occurs exactly once in the tab, table cells included) to anchor the comment to that text in the margin, as the Docs editor does; otherwise it is a document-level comment. tab_id picks the tab to search; the first tab by default.

  • reply: Reply to a comment. Requires comment_id and comment_content.

  • resolve: Resolve a comment. Requires comment_id.

  • update: Edit a comment's text. Requires comment_id and comment_content.

  • delete: Delete a comment. Requires comment_id.

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": {
      "user_google_email": "<user_google_email>",
      "document_id": "<document_id>",
      "action": "<action>"
    },
    "name": "manage_document_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes
tab_idNo
comment_idNo
anchor_textNo
document_idYes
comment_contentNo
user_google_emailYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.8.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true and idempotentHint=false, so the safety profile is covered externally. The description still adds real behavior beyond that: anchor_text must be literal text occurring exactly once within a single paragraph (table cells included) or the comment becomes document-level, and tab_id defaults to the first tab. It omits permission/auth requirements, whether delete or resolve is reversible, and what happens on ambiguity or no-match for anchor_text.

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?

A one-line purpose followed by a per-action bullet list, so structure mirrors the agent's decision path. The anchor_text explanation is long but every clause (single paragraph, occurs once, table cells, fallback behavior) changes how the parameter is supplied.

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 7-parameter multi-action mutation tool with an output schema present (so return shape need not be described), the description covers action dispatch and the tricky anchoring parameter well. Remaining gaps are credential/permission context and failure modes for unresolved anchors or invalid comment_ids.

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

Parameters4/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 load, and it does for most parameters: action gets its full value set and per-value prerequisites, anchor_text and tab_id get substantive semantics, and comment_id/comment_content are tied to specific actions. document_id and user_google_email are never explained, leaving two of seven parameters to inference.

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 states a specific resource (comments on a Google Document) and enumerates all five actions it supports with their required inputs. This clearly separates it from list_document_comments (read-only listing) and from the presentation/spreadsheet comment siblings by naming the document surface.

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?

Each action carries an explicit precondition ('Requires comment_id and comment_content', 'Requires comment_id'), which is exactly the guidance an agent needs to pick the right branch. It stops short of stating when to use this versus list_document_comments for retrieval, or when a reply is preferable to a new comment, so it is clear context without full exclusions.

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