Skip to main content
Glama

upload_attachment

Idempotent

Hosted-chat file upload: ingest a chat-attached file supplied by the host via file.download_url directly into private workspace storage using OpenGen SSRF-safe public HTTPS import, returning a reusable assetKey without passing file bytes through LLM tokens.

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": {
      "file": "<file>",
      "type": "<type>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "upload_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileYesHosted chat file reference parameter.
typeYesExpected media category ("image", "video", or "audio").
idempotencyKeyYesStable caller-generated unique key (1–200 chars).

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.7/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: the import is SSRF-safe and fetches from public HTTPS only, the file lands in private workspace storage, and file bytes never transit LLM tokens. Annotations already cover read-only=false, destructive=false, idempotent=true, so this is supplementary context rather than the only disclosure. It stops short of stating size limits, failure modes, or what happens on an idempotencyKey replay.

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?

A single front-loaded sentence with no filler, opening with the resource and context before the mechanism. It is dense with internal jargon ('OpenGen SSRF-safe public HTTPS import') that costs a little readability, but every clause carries information.

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 3-required-parameter mutation with a nested object and no output schema, the description does the important work: it names the returned assetKey, which compensates for the absent output schema, and explains the storage destination. Remaining gaps are operational details — size/format limits, idempotency conflict behavior — rather than anything needed to make a correct first call.

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%, so the baseline is 3; the nested file.download_url, file_id, type enum, and idempotencyKey are all documented in-schema. The description adds only one meaningful constraint beyond the schema — that download_url must be a publicly reachable HTTPS URL because the import is SSRF-safe — while idempotency semantics for the key and the type enum's relevance are left to 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 ('Hosted-chat file upload: ingest a chat-attached file supplied by the host') plus the mechanism (via file.download_url) and the outcome (returns a reusable assetKey). It distinguishes itself contextually from upload_asset by framing the input as a host-supplied hosted-chat attachment, but never names the sibling or states the boundary 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?

Usage is only implied: the agent can infer this is for files the host attaches in chat with a download_url, rather than local byte uploads. There is no explicit when-to-use vs. upload_asset, no prerequisite statement, and no exclusion for cases where a download_url is unavailable.

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