Skip to main content
Glama

audio_compress

Read-onlyIdempotent

Compress audio toward a target file size (targetFileSize such as "2MB"; default half the original)

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": {
      "fileBase64": "<fileBase64>"
    },
    "name": "audio_compress"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileBase64YesThe input file as a base64 string, without a data: prefix.
targetFileSizeNoWanted size of the result, for example: 2MB or 500KB. Best effort.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / fileBase64 / description
      Added value: +"The input file as a base64 string, without a data: prefix."
    • addedInput schema / properties / targetFileSize / description
      Added value: +"Wanted size of the result, for example: 2MB or 500KB. Best effort."
  2. Changed2 schema fields changed
    • addedInput schema / properties / targetFileSize
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / targetPercent
      Removed value: -{
      -  "default": 0.5,
      -  "maximum": 1,
      -  "minimum": 0,
      -  "type": "number"
      -}
  3. First observed

TDQS

A4.1/5.0
Behavior3/5

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

The annotations already establish read-only, non-destructive, and idempotent behavior. Beyond them, the description indicates approximate targeting and a default of half the original size, but it does not explain output encoding or possible effects on audio quality and format.

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 compact sentence front-loads the operation and purpose. The parenthetical efficiently supplies the parameter name, example, and default without unnecessary wording.

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?

Together with the fully described schema and annotations, the description is sufficient for basic selection and invocation. Because there is no output schema, the absence of any explanation of the returned representation, format preservation, or quality tradeoffs leaves meaningful contextual gaps.

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?

Schema coverage is 100%, so both fileBase64 and targetFileSize are already documented and the baseline is 3. Although the size example repeats schema information, the description adds the useful and otherwise undocumented default of half the original file size.

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?

The description uses a specific verb and resource, "Compress audio," and narrows the operation to reducing file size toward a target. This clearly distinguishes it from general audio processing and from compression tools for other media.

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 target-size wording supplies a concrete use case: reducing an audio file toward a desired size, with a default when no target is provided. It does not explicitly state when not to use the tool or name alternatives for other audio-processing goals.

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