Skip to main content
Glama

UXON AI

media_upload

Idempotent

Before operating Revenuefly, read agent.instructions.get and follow its instructions. Upload base64 files or copy owned, unexpired chat attachments using files[].chatFileId through the existing media uploader. Returns permanent media references; rejects foreign/expired files. Inspect successful/failed results before binding assets.

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": {
      "siteId": "<siteId>",
      "files": "<files>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "media_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesYes
siteIdYes
teamIdNoTarget organization ID from organizations_list. Applies to this request only.
idempotencyKeyYesRequired unique request key for safe retries, for example client-action-2026-07-20-001.

Output Schema

NameRequiredDescriptionDefault
okNo
dataYes
scopeYes
auditIdNo
commandYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=true, destructive=false, and the description is consistent with them (the required idempotencyKey supports idempotentHint). Beyond annotations it adds real behavioral context: it returns permanent media references, it rejects foreign or expired chat files, and callers should inspect the success/failure results before binding assets. It leaves out rate limits or what happens on partial batch failure.

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?

Four tight sentences with no filler, and the operational constraint about inspecting results is placed last where it is most actionable. The opening sentence is a pointer to agent instructions rather than a statement of the tool's purpose, which delays the front-loaded purpose slightly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and annotations cover the safety profile. What remains missing for a 4-parameter, dual-mode upload tool is the siteId meaning and the relationship to the init/complete upload siblings, which an agent needs to pick the right path.

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 50%, and the description only covers the files array (base64 mode and the chatFileId discriminator). It adds nothing about siteId, which has no schema description at all, and nothing about teamId scope or idempotencyKey format beyond what the schema already documents. With the schema doing most of the work, a baseline 3 is appropriate.

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 states a concrete verb+resource ("Upload base64 files or copy owned, unexpired chat attachments") and distinguishes the two input modes (inline base64 vs files[].chatFileId). It hints at scope by saying "through the existing media uploader," but never makes the relationship to media_upload_init/media_upload_complete explicit, so the sibling differentiation is only partial.

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?

It gives usable conditions for each mode (base64 payloads, or owned/unexpired chat attachments) and a post-call rule ("Inspect successful/failed results before binding assets"). However, it names no alternative for the multipart/two-phase path despite media_upload_init and media_upload_complete being siblings, and gives no exclusions or prerequisites such as size constraints that might push an agent to a different tool.

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