Skip to main content
Glama

ios_test

Run a scheme's tests on an iPhone simulator on this Mac. Runs as a background job and returns its jobId; poll ios_build_status with it. The status lists failing tests.

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": {
      "project": "<project>",
      "scheme": "<scheme>"
    },
    "name": "ios_test"
  }
}

Input Schema

NameRequiredDescriptionDefault
schemeYes
projectYes.xcodeproj or .xcworkspace path from ios_projects
deviceIdNoComputer name or id
destinationNoxcodebuild -destination; default the newest available iPhone simulator
configurationNo
workSessionIdNoFrom create_work_session

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id; optional with one computer or a default"New value: +"Computer name or id"
    • removedInput schema / properties / scheme / minLength
      Removed value: -1
  2. Changed2 schema fields changed
    • changedInput schema / properties / deviceId / description
      Previous value: -"Computer name or id from list_devices. Optional with one computer online or a default set."New value: +"Computer name or id; optional with one computer or a default"
    • changedInput schema / properties / workSessionId / description
      Previous value: -"Work session from create_work_session. Pass the same ID on every call in this conversation; omit for legacy unscoped work."New value: +"From create_work_session"
  3. Added

TDQS

A4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, and the description adds real context beyond them: asynchronous background execution, the returned jobId, and where failing test results surface. It doesn't cover runtime characteristics such as expected duration, whether a build is performed first, or simulator side effects.

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 short sentences with zero waste; the action, the async behavior, and the follow-up step are front-loaded in that order.

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 return-value burden and does so adequately by naming the jobId and describing what the status response contains about failing tests. Minor gaps remain around runtime expectations and how configuration affects the run, but nothing essential to invoking it is missing.

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 67%, so the schema already documents project, deviceId, destination, and workSessionId. The description adds only an implied 'scheme' framing and nothing about configuration or workSessionId, so it neither compensates for the coverage gap nor adds meaning beyond the schema.

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?

States a specific verb and resource ('Run a scheme's tests') plus scope ('on an iPhone simulator on this Mac'), which naturally separates it from the sibling ios_build (build vs. test) and ios_archive. It stops short of explicitly naming the sibling it replaces, so it is clear but not fully differentiated.

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 concrete follow-up guidance: the call runs in the background and the agent must poll ios_build_status with the returned jobId. It doesn't state prerequisites (e.g., that the project path should come from ios_projects) or when-not to use it versus a plain build, so no explicit exclusions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources