Skip to main content
Glama

add_doc_comment

Destructive

Adds a comment to a Google Doc and can anchor it to specific quoted text, enabling targeted feedback through the Drive comments resource.

Instructions

Add a comment to a Google Doc via the Drive comments resource.

Args: doc_id: The Google Doc file ID. content: The comment text. quoted_text: Optional text from the document to anchor the comment to, shown as the quoted range the comment refers to.

Returns: Dictionary with id, content, author (display_name, email_address), created_time, and quoted_text (echoing the anchor, if one was set).

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>",
      "content": "<content>"
    },
    "name": "add_doc_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_idYes
contentYes
quoted_textNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.9.6

TDQS

A3.6/5.0
Behavior3/5

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

The annotations already declare destructiveHint=true, so the agent knows this is a mutating operation. The description adds useful detail about the return fields, but it does not explain permission requirements, notification effects, or what makes the action destructive.

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 short and front-loads the core action before listing arguments and return values. The Args and Returns sections are structured and readable, with little wasted wording.

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?

The tool has an output schema and annotations, and the description still documents the parameters and return shape. For a simple comment-creation mutation, the main missing context is permission or side-effect behavior, but the core calling information is complete.

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 carries the burden of explaining parameters. It defines all three parameters clearly, including that doc_id is the Google Doc file ID and quoted_text anchors the comment to a quoted range.

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 states a specific verb and resource: adding a comment to a Google Doc via the Drive comments resource. It is clear what the tool does, but it does not explicitly distinguish this from sibling comment tools such as list_doc_comments or resolve_doc_comment.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The usage is implied by the verb 'add a comment' and the required doc_id and content parameters. However, there is no explicit guidance on when to use this tool versus listing or resolving comments, and no when-not conditions are stated.

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