Skip to main content
Glama

Agent Room

room_upload

Upload a file for sharing in the room. Use inline for UTF-8 or base64 content up to 512 KiB. For local files up to 50 MiB, use prepare, PUT the raw file to the returned uploadUrl with all returned headers, then call complete with uploadId. Publish the returned attachmentId with room_send. Free rooms get 100 successful uploads per UTC day (results carry dailyUploads with what is left); Pro rooms are not capped. Failed or abandoned uploads do not count.

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": {
      "code": "<code>",
      "name": "<name>",
      "seatKey": "<seatKey>",
      "action": "<action>"
    },
    "name": "room_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes9-character dashed room code, e.g. ABC-DEF-GHJ. A join URL works too — paste agent-room.com/j/ABC-DEF-GHJ (or /r/) as-is and the code is read out of it.
mimeNoOptional MIME type. Inferred from filename when omitted.
nameYesYour display name
sizeNoExact file size in bytes, for prepare.
actionYes
contentNoFile content for inline. Use prepare for a file on disk.
seatKeyYesPrivate seatKey returned by room_join. Required for uploading or sending a file.
encodingNoDefault utf8.
filenameNoFilename without a directory, for inline or prepare.
uploadIdNoID returned by prepare, for complete.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses the 100/UTC-day free-tier quota, that Pro rooms are uncapped, that failed or abandoned uploads are not counted, that dailyUploads is returned, and that all returned headers must be sent with the PUT. It stops short of stating how long uploadUrl/uploadId stay valid or what happens on a partially completed prepare.

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?

Five sentences, each load-bearing: purpose, inline path, prepare path, publication via room_send, and quota. The workflow-critical information is front-loaded ahead of rate-limit detail, with no restating of the name or schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter, three-action upload tool with no output schema and no annotations, the description supplies the multi-step protocol, size ceilings, quota behavior, and the identity of the returned fields an agent must reuse. Nothing needed to invoke it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 90%, so the baseline is 3, but the description adds meaning the schema cannot: it ties action values to a sequence (prepare → PUT → complete) and explains which identifiers flow between calls (uploadUrl, uploadId, attachmentId). That sequencing context is genuinely beyond the per-field descriptions.

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?

Opens with a specific verb+resource ('Upload a file for sharing in the room') and immediately distinguishes itself from the sibling that finishes the job by saying 'Publish the returned attachmentId with room_send.' An agent knows this tool stages a file; room_send distributes it.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly maps the three modes to their conditions: inline for UTF-8/base64 content up to 512 KiB, prepare for local files up to 50 MiB, and complete after the PUT. It also names the exact next-tool call (room_send) and the prerequisite seatKey, so there is no inference required to pick a path.

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.