Skip to main content
Glama

Attach link

add_link_attachment

Attach a URL as a link attachment to a Google Classroom assignment or post without turning it in.

Instructions

Attach a link (URL) to your work on an assignment. Does not turn it 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>",
      "url": "<url>"
    },
    "name": "add_link_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
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)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already mark this as a non-destructive, open-world write, so the description's key contribution is the unusually valuable caveat that the request format was reverse-engineered from the web client and not verified against a live account, with an instruction to check the result. That is real risk context an agent would not otherwise have. It stops short of saying what a successful or failed result looks like.

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, front-loaded with the action and scope before the caveat. The NOTE is verbose but each clause adds decision-relevant information, so nothing feels padded.

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 three-parameter write with no output schema, the definition covers the action, the boundary against turn-in, and the reliability risk. An agent still lacks detail on return values and on failure modes specific to attachment limits, but the critical caveat is present.

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 description coverage is 67% and the schema already explains that 'item' accepts an id or Classroom link and that 'course' is optional for full links. The description only adds that the target is a URL, which the parameter name 'url' largely conveys on its own, so it does not meaningfully extend the schema.

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 ('Attach a link (URL) to your work on an assignment') and immediately bounds the scope with 'Does not turn it in,' which separates it from turn_in. It does not name the sibling attachments tools (add_drive_file_attachment, upload_and_attach_file), so the differentiation from those is left implicit.

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 'Does not turn it in' line implies a workflow where this precedes turn_in, which is useful context. However, there is no guidance on when to choose this over add_drive_file_attachment or upload_and_attach_file, nor are prerequisites (e.g., required scopes or enrollment) mentioned.

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