Skip to main content
Glama

Delete comment

delete_comment
Destructive

Delete one of your own Google Classroom comments by specifying the post or assignment, comment ID, and visibility.

Instructions

Delete 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>"
    },
    "name": "delete_comment"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYesPost/assignment id, or its classroom.google.com link
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

B3.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is known. The description adds genuinely new behavioral context the annotations cannot express: the write format was reverse-engineered from the Classroom web client and is unverified, so the agent should validate the outcome. It does not say what state is left behind or whether deletion is reversible, but the reliability caveat is a real value-add.

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?

Two short sentences, front-loaded with the action and immediately followed by the reliability caveat. No filler; the only weakness is that "check the result" is vague about what to check.

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 destructive tool with no output schema, the definition covers purpose and flags the unverified request format, which is the most important risk. It leaves two of four parameters undocumented and gives no guidance on interpreting a failure or confirming the comment is gone, so it is adequate but not complete.

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 coverage is only 50%: comment_id and the visibility enum have no schema descriptions, and the description mentions neither. In particular the meaning of visibility values "class" vs "private" — which likely selects between two different comment stores — is left entirely unexplained in both places.

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?

"Delete one of your own comments" gives a specific verb and resource plus an ownership scope, so an agent can distinguish it from edit_comment and the post_* siblings. It stops short of explicitly naming the nearest sibling (edit_comment) as the non-destructive alternative.

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 phrase "one of your own comments" implies a usage boundary (you cannot delete others' comments), which is useful. However, there is no explicit when-to-use versus edit_comment or remove_attachment, and no stated preconditions such as permissions or how to obtain a comment_id.

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