Skip to main content
Glama

save_song

Save a Sonic Pi song to the library with an auto-incremented version number. Each song is stored as a new version in a folder named after the song.

Instructions

Save a full song to the songs library with auto-incrementing version number.

Creates songs/{name}/v{N}.rb where N is one higher than the current latest version.

Args: name: Song folder name in snake_case (e.g. "dark_pop_em", "aurora_borealis") code: The Sonic Pi Ruby code to save

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries full burden. It discloses the file path pattern and auto-incrementing versioning. It does not mention error handling or overwrite behavior, but the core behavior is clearly communicated.

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?

Three sentences, front-loaded with purpose, then path, then args. No fluff, each sentence adds value.

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

Completeness5/5

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

Given the tool's simplicity (2 params, no enums) and that an output schema exists, the description covers the essential aspects: what it does, the file naming convention, and parameter meanings.

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%, but the description adds meaningful detail: 'name: Song folder name in snake_case (e.g. examples)' and 'code: The Sonic Pi Ruby code to save'. This clarifies both parameters beyond the schema.

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 'Save a full song to the songs library with auto-incrementing version number', specifying the verb (save), resource (song to library), and distinguishing from siblings like load_song or save_pattern.

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 explains that it creates a new version by auto-incrementing, which implies when to use. However, it does not explicitly mention when not to use or provide alternatives, though the context of versioning gives good 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/AJBogo9/sonic-mcp'

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