Skip to main content
Glama

set_audio_sample_rate

Set the sample rate of an audio file to a desired Hz value. Provide input and output audio paths and the target sample rate to convert files for playback or editing compatibility.

Instructions

Sets the sample rate 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 sample rate. sample_rate: Target audio sample rate in Hz (e.g., 44100, 48000). Returns: A status message indicating success or failure.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sample_rateYes
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?

With no annotations provided, the description must disclose behavioral traits. It states that the output is saved to output_audio_path and that a status message is returned, but it does not mention whether existing files are overwritten, whether the input file is modified in place, or any format limitations. This is minimal but not entirely absent.

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 and concise: a one-line summary, a clear Args block, and a Returns line. Every sentence adds value, with no redundant or unnecessary text.

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 a simple tool, the description covers all required parameters and the return value, making it largely complete. Minor gaps include lack of information about overwrite behavior and supported audio formats, but these are edge cases for a straightforward operation.

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?

The input schema contains no parameter descriptions (0% coverage), but the description's Args section fully explains each parameter: input_audio_path, output_audio_path, and sample_rate with example values (44100, 48000). This thoroughly compensates for the schema's lack of descriptive information.

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 opens with 'Sets the sample rate for an audio file', using a specific verb and resource that directly matches the tool name. It clearly distinguishes this tool from siblings like set_audio_bitrate or set_audio_channels by focusing on the sample rate property.

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?

The description implies usage when a user needs to change the sample rate of an audio file, but provides no explicit guidance on when to choose this tool over alternatives such as convert_audio_properties. No exclusions or alternative tool recommendations are mentioned.

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