Skip to main content
Glama

Post class comment

post_class_comment

Posts a public comment on a Google Classroom post or assignment so the entire class can see and follow the discussion.

Instructions

Post a public class comment on a post or assignment (visible to the whole class).

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>",
      "text": "<text>"
    },
    "name": "post_class_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)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true, so the write profile is covered. The description's real contribution is disclosing the audience scope ('public ... visible to the whole class'), which is not captured by any annotation and matters for a mutation. It says nothing about membership/permission requirements, failure modes, or whether the comment can be retracted afterwards.

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 single sentence that front-loads the verb and ends with the constraint that matters most for a public write. Nothing is 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 three-parameter mutation with no output schema, the definition covers what is posted and where, but leaves gaps: the caller's required class membership, what the response contains (e.g. the created comment id), and error behavior when the course cannot be resolved from the link. Adequate but not complete.

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?

With 67% schema coverage, `item` and `course` are already documented in the schema, and the description adds only that `item` may be a post or assignment. The `text` parameter has no schema description at all, and the description does not compensate by explaining its expected content, length, or formatting.

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?

Specific verb ('Post') plus resource ('class comment') plus target ('a post or assignment'), and the parenthetical 'visible to the whole class' distinguishes it in substance from the sibling post_private_comment. It does not name that sibling explicitly, so an agent must infer the contrast from the visibility wording rather than being routed by name.

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 public-visibility note implies the intended use case (broadcast to the class rather than a private thread), but there is no explicit when-to-use, when-not-to-use, or named alternative such as post_private_comment. The agent must derive the routing decision from a single adjective.

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