Skip to main content
Glama

Get an address to upload files for a change request

upload_task_files

An upload address for the files a change request will carry, in one project: a design's own files (HTML, CSS, scripts, fonts, pictures) as ONE .zip of the folder, which CodeGene checks (files that hold passwords or keys, source maps and anything not part of a design are left out, with the reason) and its Builder unpacks beside its work; or a picture, PDF or recording. PUT each file to uploadUrl before expiresAt (the curl field; add ?name= to name it). Each upload answers attachment.id (att_...): pass the ids as request_change attachments, for the same project. Treat uploadUrl like a password until it expires.

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": {
      "project_id": "<project_id>"
    },
    "name": "upload_task_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYesThe project the change is for (list_projects gives ids).
workspace_idNoWorkspace id from whoami; omit when there is one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations only say the call is non-read-only, closed-world, and non-destructive; the description adds far more — the URL is time-limited, must be treated as a secret, uploads are scanned and files holding passwords/keys or non-design content are dropped with a stated reason, and the Builder unpacks the zip. That is exactly the kind of behavioral context an agent cannot get from the structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded, but the body is a single dense run-on held together by semicolons and nested parentheses, which makes the PUT instructions and the ?name= convention easy to miss. The content earns its place; the packing does not.

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?

With no output schema, the description carries the return contract and does so — uploadUrl, expiresAt, and attachment.id (att_...) with their downstream use. Accepted file types, the scanning/exclusion behavior, and the secrecy requirement are all covered; only limits such as size or address lifetime length are absent.

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% and both parameters are documented in the schema itself (project_id sourced from list_projects, workspace_id from whoami with an omit-when-single rule). The description reinforces the single-project scope but adds no syntax or constraint detail beyond the schema, so the baseline of 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 states a concrete outcome — an upload address for the files a change request will carry — and enumerates exactly what can be uploaded (a design folder as one .zip, or a picture/PDF/recording). The change-request scope implicitly separates it from the report-file sibling, but no sibling is named, so the agent must infer the boundary rather than read it.

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?

It gives a usable procedure: PUT each file to uploadUrl before expiresAt, add ?name= to name it, then pass the returned attachment ids to request_change for the same project. That is clear sequencing guidance, but it never states when to choose this tool over the report-file upload path or what happens if the address expires mid-upload.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources