Skip to main content
Glama

Upload local files through a secure MixerAI page

aimixer_media_upload_session

Browser upload fallback when the host cannot access file bytes or outbound HTTPS. First try aimixer_media_upload_prepare and run its command for a real local file. If that is unavailable, use aimixer_media_upload_open in MCP Apps or action=create here and show its upload page; the user chooses the file once. Poll action=status with token, or with opaque upload_id from aimixer_media_upload_prepare (no secret needed), for a completed managed_id. Photo maximum 30 MiB; video/audio 100 MiB; format, duration and model-specific limits apply. For Canvas use destination=canvas with project_id from Canvas create/read; for unattached media use library. Never ask for another chat attachment or fabricate its bytes. No generation/debit; Canvas graph nodes must be attached separately.

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": {
      "action": "<action>"
    },
    "name": "aimixer_media_upload_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttlNo
tokenNoUpload-session token returned by action=create. Required for status.
actionYes
familyNoSelected model family: the session then takes exactly that model's maximum reference files for media_family.
valuesNo
max_filesNo
upload_idNoOpaque owner-bound ID from prepare; check action=status without the upload key.
project_idNoOwned Canvas project to upload into; implies destination=canvas when omitted.
destinationNoCanvas needs project_id; omitting destination selects canvas when project_id exists, otherwise library.
media_familyNoOptional typed session, strict media family and canonical per-kind size cap.
max_file_bytesNoOmit to use the shared product default for media_family (photos 30 MiB, video/audio 100 MiB).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / max_file_bytes / default
      Removed value: -104857600
    • addedInput schema / properties / max_file_bytes / description
      Added value: +"Omit to use the shared product default for media_family (photos 30 MiB, video/audio 100 MiB)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  2. Changed3 schema fields changed
    • removedInput schema / properties / destination / default
      Removed value: -"library"
    • addedInput schema / properties / destination / description
      Added value: +"Canvas needs project_id; omitting destination selects canvas when project_id exists, otherwise library."
    • addedInput schema / properties / project_id / description
      Added value: +"Owned Canvas project to upload into; implies destination=canvas when omitted."
  3. Changed3 schema fields changed
    • addedInput schema / properties / family
      Added value: +{
      +  "description": "Selected model family: the session then takes exactly that model's maximum reference files for media_family.",
      +  "maxLength": 128,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • changedInput schema / properties / max_files / default
      Previous value: -5New value: +10
    • addedInput schema / properties / values
      Added value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  4. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=false), it discloses that this costs no generation or debit, that status can be polled with an opaque upload_id without the secret key, and that Canvas graph nodes must be attached separately afterwards. Size caps (30 MiB photo, 100 MiB video/audio) and model-specific limits are surfaced. It does not explain what happens if the session expires or the effect of the ttl parameter.

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?

The description is front-loaded with the fallback condition and every sentence carries operational content; nothing is filler. However, several sentences are semicolon-chained clauses that pack multiple rules together, making it denser to parse than necessary for a tool an agent may call repeatedly.

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 an 11-parameter, two-action tool with an output schema, the definition covers the end-to-end flow: fallback trigger, session creation, user file selection, polling, and destination routing. Gaps remain on ttl expiry behavior and on the values/max_files parameters, which no part of the definition explains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 64% schema coverage across 11 parameters, the description meaningfully supplements the schema: token comes from action=create, upload_id comes from prepare and needs no secret, project_id comes from Canvas create/read and implies destination=canvas. It leaves ttl, values, max_files and family's interaction with max_file_bytes largely to the schema, so the added coverage is good but not complete.

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 concrete capability: a browser-mediated upload session that shows an upload page and is polled via action=status for a completed managed_id. It explicitly positions itself as a fallback and distinguishes itself from aimixer_media_upload_prepare and aimixer_media_upload_open. The core verb is split across two conditional sentences, which costs a point versus a single front-loaded statement of purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a strict ordering: first try aimixer_media_upload_prepare, and only if that is unavailable use aimixer_media_upload_open or action=create here. It also names the conditions that change behavior (destination=canvas requires project_id from Canvas create/read, otherwise library) and states a negative rule: never ask for another chat attachment or fabricate its bytes.

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