Skip to main content
Glama

Open file

get_state
Read-onlyIdempotent

Inspect the open audio file's current state to see its length, rate, channels, selection, markers, slices, playback status and available undo history.

Instructions

The open file: its name and path, length, rate, channels and which of them are lit (what edits, the selection and playback are on), the selection, markers, slices, whether it plays, and what History can undo. Its length and every position count the file's own frames, at the rate named beside them: the file's own, whatever rate the audio device runs at.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_state"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds real value by stating that lengths and positions are in the file's own frames at the file's own rate, independent of the audio device rate — a semantic trap it defuses. It does not say what happens when no file is open or how large/expensive the snapshot is.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the resource and free of filler, but it is one long multi-clause sentence with a nested parenthetical ("which of them are lit (what edits, the selection and playback are on)") that is harder to parse than it needs to be. Splitting the frame/rate caveat into its own sentence would help.

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?

With no output schema, the description carries the full burden of describing return values and does so thoroughly, including units and rate semantics. The one gap is the empty/no-file-open case, which an agent needs in order to interpret a null or error response.

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?

The tool takes zero parameters, so the schema-based baseline of 4 applies. The description correctly adds no parameter discussion and instead spends its budget on return semantics.

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

Purpose4/5

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

Names the resource precisely ("the open file") and enumerates the state it exposes: name/path, length, rate, channels and lit states, selection, markers, slices, playback, undo history. However, it uses a noun phrase with no verb and never distinguishes itself from siblings that appear to expose subsets of the same state (file, channels, history, markers, playback, slices).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit when-to-use guidance and no named alternatives, despite a sibling set containing several likely per-aspect accessors. The only implied guidance is that this returns the whole snapshot at once, which the agent must infer from the enumeration of contents.

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