Skip to main content
Glama

vibedgames

Upload a model input

generate_upload

Opens an upload slot for a model input that takes a file's URL (a reference image, an audio clip to transform). PUT the file's bytes to uploadUrl (on this server, valid 15 minutes) with the headers given, e.g. curl -T file.png -H 'Content-Type: image/png' "$uploadUrl", then pass fileUrl to the model.

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": {
      "contentType": "<contentType>",
      "fileName": "<fileName>"
    },
    "name": "generate_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNameYesThe file's name with its extension, e.g. `hero.png`, up to 255 characters
contentTypeYesThe file's MIME type, e.g. `image/png`; PUT the bytes with this Content-Type

Output Schema

NameRequiredDescriptionDefault
fileUrlYes
headersYes
uploadUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses that the slot is served on this server, expires after 15 minutes, requires the returned `headers`, and must be filled with a PUT of the raw bytes. The annotations only cover the safety profile (readOnly=false, destructive=false, openWorld=true); the description supplies the operational mechanics an agent actually needs.

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?

A single dense sentence that front-loads the action, then the mechanics, then the handoff, with a copy-pasteable curl example. No filler; 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 two-parameter tool with an output schema and full annotations, the definition covers the whole lifecycle: open slot, upload bytes, pass fileUrl. Minor gaps remain — no size limits, no statement of what happens if the PUT misses the 15-minute window, and no guidance on whether a slot can be reused.

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 `fileName` and `contentType` are already fully documented, including the note that contentType is the PUT Content-Type. The description adds workflow context (headers/uploadUrl come back, fileUrl is the handoff value) but little parameter-level meaning beyond the schema — baseline 3 is appropriate.

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 — 'opens an upload slot for a model input' — and immediately grounds it with concrete examples ('a reference image, an audio clip to transform'). An agent can tell this is the file-upload prerequisite step, not a generation call, without opening the 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?

The trigger condition is clear (any model input that takes a file's URL) and the follow-on action is explicit: 'then pass `fileUrl` to the model.' What is missing is any exclusion or named alternative — e.g. what to do for inputs that take inline text rather than a file.

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.