Skip to main content
Glama

Remove attachment

remove_attachment
Destructive

Deletes your own attachment from assignment work before it is turned in, using a material ID, Drive file ID, URL, or exact title to identify it.

Instructions

Remove one of your own attachments from your work on an assignment (match by material id, Drive file id, URL or title). Only possible while not turned in. 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>",
      "attachment": "<attachment>"
    },
    "name": "remove_attachment"
  }
}

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)
attachmentYesmaterialId, driveFileId, url or exact title

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and openWorldHint=true, so the safety profile is covered, and the description still adds meaningful context: ownership scoping ('your own'), the not-turned-in precondition, and an unusual reliability caveat that the write format was derived from the web client and is unverified. That last note is exactly the kind of behavior an agent cannot get from structured fields and should factor into retry/verification strategy.

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 sentences, both front-loaded with the highest-value information: what is removed and the hard precondition first, the reliability caveat second. No filler or redundancy.

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 destructive, open-world mutation with no output schema, the description covers ownership, the blocking precondition, and a verification warning. It could say a bit more about what a successful result looks like or whether the removal is reversible, but nothing essential to calling it correctly is missing.

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?

Schema coverage is 100%, so all three parameters are already documented, including the accepted identifier forms. The description restates the attachment matching modes (material id, Drive file id, URL, title) but adds no new syntax, format, or constraint beyond the schema, so baseline 3 applies.

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 gives a specific verb+resource ('Remove one of your own attachments from your work on an assignment') and clarifies the matching modes for identifying the attachment. It implicitly separates itself from the add_* attachment siblings and from delete_comment, but it never names an alternative explicitly, so it falls just short of the top band.

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?

'Only possible while not turned in' is an explicit precondition that tells the agent when the call will fail, which is real when-to-use guidance. It stops short of naming the alternative path (e.g., unsubmit first) that would resolve the blocked case.

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