Skip to main content
Glama

ios_archive

Archive a scheme for devices (an .xcarchive) on this Mac, signed with the project's signing settings. Runs as a background job and returns its jobId; poll ios_build_status with it. Nothing is uploaded; ios_testflight archives and uploads.

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_archive"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyIdNoApp Store Connect API key ID; the key file stays in ~/.appstoreconnect/private_keys. With it, Xcode may update signing profiles
schemeYes
teamIdNoApple Developer team ID for signing, when the project has none (DEVELOPMENT_TEAM)
projectYes.xcodeproj or .xcworkspace path from ios_projects
deviceIdNoComputer name or id
issuerIdNoApp Store Connect issuer ID; remembered on this Mac after the first TestFlight upload
buildNumberNoSets CURRENT_PROJECT_VERSION
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.4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true), the description discloses that this runs as a background job, returns a jobId rather than a completed artifact, uploads nothing, and inherits the project's signing settings. It does not say where the .xcarchive lands or what failure looks like, so it falls short of a 5.

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 tight sentences: what it does and how it signs, how it returns work, and how it differs from ios_testflight. The distinguishing constraint is front-loaded and no sentence is filler.

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 correctly explains the return value (jobId) and the polling contract, which is the key gap it needed to close for an async tool. Minor omissions remain, such as archive output location and the permission/profile-update implications of keyId, but nothing blocks correct invocation.

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 78%, near the threshold where the schema already carries the load, so 3 is the baseline. The description adds no parameter-level meaning (it never mentions the optional keyId, teamId, buildNumber, or configuration), leaving the marginal value to the prose about signing and job behavior.

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 names a specific verb and artifact ("Archive a scheme for devices (an .xcarchive) on this Mac") and immediately distinguishes it from the closest sibling by noting that ios_testflight is the tool that also uploads. An agent can choose between them without opening either schema.

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

Usage Guidelines5/5

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

It states the use case (local archive only, nothing uploaded), explicitly routes uploads to ios_testflight, and gives the follow-up procedure (poll ios_build_status with the returned jobId). When-to-use, when-not, and the alternative are all present.

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