Skip to main content
Glama

audio_pin

Downloads missing audio sources for a playing song, pins them, and updates each source's pins file; fails when a file cannot be fetched.

Instructions

Fetches what the songs play from their sources (pinned files, and new ones trusted as they come) and writes each source's pins file; fails when a file couldn't be fetched. Run it after a song starts playing notes its sources haven't pinned (a not_pinned finding); it downloads them.

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": {
      "script": "<script>"
    },
    "name": "audio_pin"
  }
}

Input Schema

NameRequiredDescriptionDefault
nowNothe wall clock at the video's first frame (Lua: f.now, seconds since 1970): an RFC 3339 time with its zone (2026-11-02T14:05:00Z, 2026-11-02T15:05:00+01:00) or seconds since 1970; preview --live runs on the system clock instead (default: 0, 1970-01-01T00:00:00Z)
setNoscript arguments (Lua: arg.K, a string) that also set props.K (a number when it looks like one); they win over a batch row, which wins over the props file
mediaNofonts, images and sounds (default: media/ beside the script)
propsNoa JSON object the script reads as the table props (props.title, ...)
scaleNooutput resolution factor, e.g. 0.5 for half resolution (rounded to an even size)
scriptYesthe video script (.lua)
softwareNodraw on the CPU instead of the GPU

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose meaningful behavior — it downloads remote content, writes pins files to disk (a mutation side effect), and fails when fetching fails — but says nothing about network access requirements, whether existing pins are overwritten, caching/trust rules for 'new ones trusted as they come', or rate/retry behavior.

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?

Only two sentences and the purpose is front-loaded, but the phrasing is convoluted ('Fetches what the songs play from their sources', 'new ones trusted as they come') where plainer wording would be clearer. The parenthetical asides add noise without adding precision.

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 seven-parameter tool with no annotations and no output schema, the description covers the workflow trigger and failure mode but omits what a successful call returns or produces (beyond 'writes pins files') and never connects its behavior to any of the parameters. Adequate, but real gaps remain for an agent deciding whether to invoke it.

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 coverage is 100%, so all seven parameters, including the nested 'set' object, are already documented in the schema. The description adds no parameter-level meaning (nothing about how script, media, props, or now interact with pinning), so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific action — fetching media that songs reference and writing each source's pins file — but leans on domain jargon ('pins', 'not_pinned finding') that is never defined. An agent can guess it downloads and caches media, yet cannot confidently distinguish it from siblings such as audio_analyze or probe based on the wording alone.

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?

It gives an explicit trigger: run it after a song plays notes whose sources aren't pinned (a not_pinned finding). It also flags a failure condition when a file can't be fetched. What's missing is any statement of when not to run it or which sibling to prefer for related media tasks.

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