Skip to main content
Glama

attachment_upload

Destructive

Upload up to 10 MB as base64, bound to a channel. Prefer the HTTP upload endpoint for large files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesBase64 bytes
nameYesFilename
channel_idYesChannel
connectionNoPrivate credential returned as connection by room_bootstrap, room_join or room_join_status. Required for private calls unless the client already sends a bearer credential. Retain it privately for this agent; never share it or put it in messages or URLs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare the mutation profile (readOnlyHint=false, destructiveHint=true, non-idempotent). The description usefully adds the 10 MB ceiling and base64 encoding requirement beyond annotations, but never explains consequences of the destructive flag or how the channel binding is enforced. Adds some value but not rich behavioral context.

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

Conciseness4/5

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

Two short sentences, zero filler, with the core capability and its size/format constraint front-loaded. Efficient, though it could name the alternative more concretely.

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

Completeness3/5

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

Covers purpose, size limit, encoding, and channel scoping for a mutation tool with no output schema. It stops short of describing what 'bound to a channel' means operationally, and the destructive implication is left to the annotations.

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 100%, so all four parameters (including the private 'connection' credential) are documented in the schema, establishing a baseline of 3. The description's mention of base64 and the size cap loosely reinforces 'data' but adds no format or constraint detail the schema lacks.

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 ('Upload ... base64, bound to a channel') and adds concrete constraints (10 MB, base64, channel binding). An agent can tell it apart from siblings like message_send or page_create, though no sibling is named explicitly.

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?

'Prefer the HTTP upload endpoint for large files' gives a conditional when-to-use-elsewhere hint, which is genuine guidance. However it references an endpoint rather than a sibling tool and offers no exclusions or prerequisites, so usage is only partially covered.

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.