Skip to main content
Glama

Upload and attach file

upload_and_attach_file

Upload a local file to your class Drive folder and attach it to an assignment submission without turning it in. Use it to add work files before submitting.

Instructions

Upload a local file into your class Drive folder and attach it 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>",
      "path": "<path>"
    },
    "name": "upload_and_attach_file"
  }
}

Input Schema

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

A4.2/5.0
Behavior4/5

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

Annotations already declare write/openWorld/non-destructive, and the description adds real value beyond them: the file lands in the class Drive folder, the submission is not turned in, and the request format is unverified because it was derived from the web client, with an instruction to check the result. It does not cover required permissions, overwrite behavior, or size limits.

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?

Three short sentences, front-loaded with the core action and its boundary, then the risk note. The unverified-format caveat earns its space because it changes how an agent should treat the result.

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 4-parameter write tool with annotations but no output schema, the description covers what it does, what it does not do, and a reliability caveat. The remaining gaps — return value shape after an unverified call, and the `name` parameter's role — are modest but real.

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 75%, so the schema already explains item, path, and course. The description reinforces that path is local and item refers to assignment work, but adds nothing about the undocumented `name` parameter or accepted id/link formats beyond what the schema says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific compound verb and resource: upload a local file into the class Drive folder and attach it to assignment work. The clause 'Does not turn it in' sharply delimits it from turn_in, and the upload+attach combination distinguishes it from upload_to_drive and add_drive_file_attachment without naming them.

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?

Gives clear usage context (attaching a file to your work on an assignment) plus one explicit exclusion ('Does not turn it in'). It stops short of naming alternatives such as upload_to_drive or add_drive_file_attachment for the cases where the agent only wants one half of the operation.

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