Skip to main content
Glama

Store Setup

store_setup
DestructiveIdempotent

Set up App Store Connect and RevenueCat from app.spec.json and listing.json, covering capabilities, subscriptions, prices, offers, age rating, legal URLs, and RC entitlements/offerings.

Instructions

Idempotent App Store Connect and RevenueCat setup from app.spec.json and listing.json (capabilities, subscriptions, prices, offers, age rating, legal URLs, RC entitlement/offerings).

Use when: the standard way to set up the store side. mode: plan (offline), check (live reads, simulated writes, reports CONFLICT), apply (live writes, needs human approval). Prefer this over the individual asc_* write tools; asc_create_app is still separate. Returns: {ok, mode, steps: [...], conflicts} or an approval_required refusal.

Input Schema

NameRequiredDescriptionDefault
modeNo'plan' (offline), 'check' (live reads, simulated writes, reports CONFLICT) or 'apply' (live writes, needs approval).plan
targetNoWhat to set up: 'capabilities', 'asc', 'rc' or 'all' (default).all
app_dirYesAbsolute path to the app project directory (contains app.spec.json), e.g. /Users/me/Apps/MyApp.
approval_idNoApproval id from a previous approval_required refusal; omit on the first call. The human approves out-of-band with `appfactory approve <id>`, then call again with the same arguments and this id.
rc_project_idNoRevenueCat project id (proj...) if it already exists.
rc_apple_notification_urlNoRevenueCat's Apple Server-to-Server notification URL, stored in app outputs.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.1.5
    • addedInput schema / properties / app_dir / description
      Added value: +"Absolute path to the app project directory (contains app.spec.json), e.g. /Users/me/Apps/MyApp."
    • addedInput schema / properties / approval_id / description
      Added value: +"Approval id from a previous approval_required refusal; omit on the first call. The human approves out-of-band with `appfactory approve <id>`, then call again with the same arguments and this id."
    • addedInput schema / properties / mode / description
      Added value: +"'plan' (offline), 'check' (live reads, simulated writes, reports CONFLICT) or 'apply' (live writes, needs approval)."
    • addedInput schema / properties / rc_apple_notification_url / description
      Added value: +"RevenueCat's Apple Server-to-Server notification URL, stored in app outputs."
    • addedInput schema / properties / rc_project_id / description
      Added value: +"RevenueCat project id (proj...) if it already exists."
    • addedInput schema / properties / target / description
      Added value: +"What to set up: 'capabilities', 'asc', 'rc' or 'all' (default)."
  2. First observedv0.1.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered structurally. The description still adds meaningful context beyond them: the human-approval loop for 'apply', the CONFLICT reporting behavior of 'check', the approval_required refusal, and the return shape. It does not, however, spell out what 'apply' actually mutates or what reverting looks like, given the destructive flag.

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 core action and its inputs, then the usage/mode guidance and return shape in short clauses. Dense but every line carries information; only the idempotency mention slightly overlaps the annotation.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a multi-mode, approval-gated setup tool this covers the sources, modes, approval flow, conflict reporting and return contract, and it routes the agent away from the granular asc_* siblings. With an output schema present, no further return-value explanation is required.

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% and every parameter is documented in the schema, including the mode, target values and the approval_id workflow. The description largely echoes the schema's mode definition rather than adding syntax or format detail, so the baseline of 3 is appropriate.

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 ('setup' of App Store Connect and RevenueCat store side) with the exact input artifacts (app.spec.json, listing.json) and the scope of what is configured. It explicitly distinguishes itself from sibling write tools ('Prefer this over the individual asc_* write tools; asc_create_app is still separate').

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?

Gives an explicit when-to-use statement ('the standard way to set up the store side'), enumerates the three modes with their semantics (plan/check/apply), and names the alternatives it supersedes as well as the one it does not (asc_create_app). Nothing about selection is left to inference.

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

Deploy Server

Other Tools