Skip to main content
Glama

audio-input

Set the microphone input an iOS Simulator app hears to an audio file, a tone, or the real microphone. Call it right before recording so the app captures the intended source.

Instructions

Set what apps in an iOS Simulator hear as microphone input: an audio file, a tone, or the real microphone. A file starts playing on this call, so call it right before the action that makes the app record.

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": {
      "udid": "<udid>",
      "source": "<source>"
    },
    "name": "audio-input"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoAudio file, required for source=file.
udidYesTarget iOS Simulator UDID from `list-devices`.
playsNosource=file only. Times the file plays. Default 1. Minimum: 1.
sourceYes`file` plays `path`, `tone` a sine wave, `microphone` restores the real microphone.
bundleIdNoApp under test; the result then reports `appReady`.
amplitudeNosource=tone only. Default 0.4. Range: 0.01 to 1.
frequencyHzNosource=tone only. Default 1000. Range: 20 to 20000.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior4/5

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

No annotations exist, so the description carries the burden, and it discloses the key non-obvious behavior that file playback starts immediately on invocation rather than at record time. It omits persistence (does the override survive across app relaunches?) and any prerequisite that the target simulator be booted, which are meaningful gaps for a state-changing 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?

Two tight sentences: the first defines the capability, the second delivers the timing constraint the agent would otherwise get wrong. Zero filler and the critical caveat is not buried.

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 seven-parameter, mutation-style tool with no annotations and no output schema, the description covers purpose, source modes, and the immediate-playback side effect, while the schema handles per-parameter detail. Missing only lifecycle details such as whether the input persists until changed and what happens if the simulator is not booted.

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 description coverage is 100%, so every parameter (path, plays, frequencyHz, amplitude, bundleId) is already documented with defaults and ranges. The description only restates the source enum in prose and adds no format or constraint detail beyond the schema, so baseline 3 applies.

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?

States a specific verb and resource: setting what apps in an iOS Simulator hear as microphone input, with the three source kinds (file, tone, real microphone) named. No sibling tool in the list does this, so the agent can place it immediately.

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?

Gives real sequencing guidance: a file begins playing on this call, so invoke it immediately before the action that triggers recording. It stops short of naming alternatives or stating when not to use it (e.g. versus restoring the real microphone), but the core when-to-use context is present.

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