Skip to main content
Glama

set_audio_bitrate

Change the bitrate of an audio file to a specified value (e.g., 128k, 192k) and save the result to a new path.

Instructions

Sets the bitrate for an audio file.

Args: input_audio_path: Path to the source audio file. output_audio_path: Path to save the audio file with the new bitrate. bitrate: Target audio bitrate (e.g., '128k', '192k', '320k'). Returns: A status message indicating success or failure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bitrateYes
input_audio_pathYes
output_audio_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

There are no annotations, so the description carries the full burden. It states the operation, the parameters, and that it returns a status message. However, it does not disclose whether the output file overwrites existing files, supported audio formats, or any potential side effects (e.g., re-encoding). This is a moderate gap for a mutation tool.

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?

The description is well-structured with an Args section and a Returns section. Each sentence serves a purpose: defining the operation, listing parameters with explanations, and indicating the return value. There is no wasted text, and the format is easy to scan.

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?

Given the simple nature of the tool (3 parameters, no nested objects), the description covers the required inputs and return type. However, it omits details about accepted audio formats, behavior when the output file already exists, and potential errors. These omissions are not severe but prevent it from being fully complete, especially with no annotations.

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

Parameters5/5

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

Schema coverage is 0% (no parameter descriptions in the schema). The description explicitly explains each parameter: input_audio_path, output_audio_path, and bitrate, including an example ('128k', '192k', '320k'). This adds significant semantic meaning beyond the schema, which only provides property names and types.

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 clearly states the tool's function: 'Sets the bitrate for an audio file.' This is a specific verb (sets) and resource (audio file bitrate), and it is easily distinguished from sibling tools like set_audio_sample_rate or set_audio_channels.

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 description provides clear context that this tool is for changing audio bitrate, with input and output paths. However, it does not explicitly mention when to use it over alternatives like convert_audio_properties, nor does it state exclusions. It is clear enough for most agents, but lacks explicit when-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kevinten-ai/mcp-ffmpeg'

If you have feedback or need assistance with the MCP directory API, please join our Discord server