Skip to main content
Glama

Start an upload

create_media_upload

Step 1 of an upload: returns an address to PUT the file to (with exactly the returned headers). Then call confirm_media_upload. Only usable where you can send files, e.g. with curl.

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_name": "<file_name>",
      "content_type": "<content_type>",
      "size": "<size>"
    },
    "name": "create_media_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
sizeYesBytes.
sha256NoOptional hex digest of the file.
file_nameYesFile name including the extension, for example photo.jpg.
content_typeYesThe file's media type. It must match the file you are going to upload.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare the safety profile (not read-only, non-idempotent, not destructive, closed-world); the description adds the genuinely useful behavior: the call returns a PUT target, the PUT must be sent with exactly the returned headers, and a confirmation call is required afterward. It does not disclose whether the returned URL expires or what happens to unconfirmed uploads, which are the remaining behavioral gaps for a two-step upload.

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 with the core action front-loaded, followed by the required follow-up call and the environment caveat. Every sentence carries information the agent needs; there is no restatement of the title or schema.

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 takes on the burden of explaining the return value and does so ('an address to PUT the file to'), plus the header requirement and the follow-up step. What remains uncovered is URL lifetime/expiry and whether an abandoned upload is cleaned up, which matters for a non-idempotent two-step flow but is a secondary gap.

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 file_name, content_type, size and sha256 are already documented in structured form, including the enum and the 'must match the file' constraint. The description adds nothing about individual parameters beyond referring to 'the file', so the baseline 3 applies.

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 verb and resource ('Step 1 of an upload: returns an address to PUT the file to') and explicitly positions itself as the first half of a two-call flow, naming confirm_media_upload as the counterpart. An agent can distinguish it from confirm_media_upload and the create_* siblings without opening any schema.

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 sequencing ('Then call confirm_media_upload') and a real usage constraint ('Only usable where you can send files, e.g. with curl'), which effectively tells the agent when it cannot use this tool. It stops short of an explicit when-not statement for other cases (e.g. re-using an existing upload target), but the ordering guidance is unambiguous.

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