Skip to main content
Glama

Edit comment

edit_comment
Idempotent

Update the text or visibility of one of your own Google Classroom comments on a post or assignment, identified by course and item ID or link.

Instructions

Edit one of your own comments. NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.

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": {
      "item": "<item>",
      "comment_id": "<comment_id>",
      "visibility": "<visibility>",
      "text": "<text>"
    },
    "name": "edit_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYesPost/assignment id, or its classroom.google.com link
textYes
courseNoCourse id, link or name. Optional when `item` is a full Classroom link (the course is read from it)
comment_idYes
visibilityYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare non-destructive, idempotent, open-world behavior; the description adds genuinely new context by disclosing that the write payload was reverse-engineered from the web client and is unverified, which tells the agent to confirm the outcome. It stops short of saying what an edit does to prior text or how a visibility change affects an existing private comment.

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?

Two short sentences, the operation stated first and the risk caveat immediately after; nothing redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter mutation with 40% schema coverage and no output schema, the description is only partially sufficient: the unverified-format warning is valuable, but the semantics of text, comment_id and visibility, plus what the agent should inspect to 'check the result', are left unstated.

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

Parameters2/5

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

Schema description coverage is only 40%, and the description compensates for none of it: it never explains whether 'text' replaces the existing body, what 'comment_id' addresses, or how 'visibility' interacts with the original posting scope. With low coverage the description should carry this burden and does not.

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?

States a specific verb and resource ('Edit ... comments') and adds a scope qualifier ('one of your own'), which distinguishes it from delete_comment and the post_*_comment siblings. It does not make explicit whether it applies to class comments, private comments, or both, leaving that to the visibility enum.

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 'your own comments' phrasing implies the ownership precondition for use, and the caution to check the result implies a verify-after-write workflow. However, there is no explicit statement of when to prefer this over delete_comment plus post_*_comment when rewriting a comment, and no stated prerequisites.

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