Skip to main content
Glama

upload_chat_audio

Upload a chat audio message. Upload a supported audio file for a chat message. Supply raw Base64 in file, without a data URL prefix; max 6 MiB. API: POST /upload_file. Required scope: chat:write.

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": {
      "body": "<body>"
    },
    "name": "upload_chat_audio"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare this is a non-read-only, non-idempotent, non-destructive write. The description adds genuinely new behavioral context: the endpoint (POST /upload_file), the required chat:write scope, and the size ceiling, which tells the agent this is an authenticated mutating upload that can fail on size. It does not say what the upload produces (a message? an attachment id?) or whether retries would duplicate, which keeps it below 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first two sentences say the same thing twice ('Upload a chat audio message' / 'Upload a supported audio file for a chat message'), wasting the most prominent position. The remaining sentences are dense and useful, so the waste is limited but real.

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?

For a single-body-parameter write tool with no output schema, the description covers encoding, size, endpoint and scope, which is a reasonable minimum. It still leaves open what happens after upload — whether a message is created, what identifier comes back, and how this relates to send_message — and the 6 MiB vs. schema 8 MiB mismatch needs resolution.

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 reported at 0%, so the description carries the burden, and it does add real meaning for the `file` parameter: raw Base64 with no data URL prefix and a size cap. However, it says nothing about `filename` or which `content_type` values are accepted (the enum of seven audio types lives only in the schema), and the stated 'max 6 MiB' conflicts with the schema's maxLength of 8388608, leaving the agent unsure which limit applies.

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 opens with a specific verb+resource ('Upload a chat audio message') and narrows it to 'a supported audio file for a chat message', which is enough to distinguish it from a generic file upload or from upload_chat_image. It does not explicitly name a sibling it is not, so it stops short of the top band.

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?

Usage is only implied: the agent can infer this is the tool for pushing an audio clip into a chat. There is no explicit when-to-use vs. when-not guidance, no mention of transcribe_audio as an alternative for audio that needs converting to text, and no statement about preconditions beyond the required scope.

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