Skip to main content
Glama

Upload Local Media

beatra.assets.upload

Create a short-lived upload grant for an image, audio, or video file. Follow the returned HTTP PUT instructions; its response returns the artifact_id.

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": {
      "mime_type": "<mime_type>",
      "size_bytes": "<size_bytes>"
    },
    "name": "beatra.assets.upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
filenameNo
mime_typeYesExact media MIME type. Published aliases are accepted and normalized to their canonical MIME in the grant and artifact.
size_bytesYesExact local file byte length; the upload must match it.

Output Schema

NameRequiredDescriptionDefault
errorNo
uploadNo
grant_idNo
mime_typeNo
expires_atNo
media_typeNo
size_bytesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (non-read-only, open-world, non-idempotent, non-destructive), the description discloses the critical behavior that the call returns a grant plus HTTP PUT instructions rather than accepting bytes directly, and that the artifact_id comes from the PUT response. It does not state grant lifetime or what happens if size/mime mismatch at upload time, which are meaningful gaps for a non-idempotent two-phase flow.

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?

Two sentences, zero filler, with the core behavior front-loaded and the required follow-up action second. Every clause carries information the agent needs to call and complete the operation.

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 an output schema present, return-value detail needn't be spelled out, and the description still flags artifact_id as the key output. For a two-phase upload tool it is nearly complete, missing only grant expiry and failure semantics for size/MIME mismatch.

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 67%: mime_type and size_bytes already document alias normalization and exact-byte-matching in the schema, so the description adds little there. The description does bound the media domain ('image, audio, or video file'), which frames the enum, but it says nothing about filename, the one undocumented parameter, so it only marginally compensates for the coverage gap.

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 names a specific verb+resource pair ('Create a short-lived upload grant') scoped to image/audio/video files, and clarifies that the tool brokers an upload rather than performing the write itself. This distinguishes it implicitly from generation siblings like beatra.images.generate or beatra.videos.generate, though no sibling is named outright.

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?

The two-step workflow is stated ('Follow the returned HTTP PUT instructions'), which is real operational guidance for invoking it, but there is no explicit when-to-use/when-not framing — e.g. no statement that pre-existing remote assets should skip this tool, or which sibling to use for prompt-based creation.

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