Skip to main content
Glama

Create an in-app purchase

create_iap
Destructive

Creates a one-time in-app purchase in App Store Connect with a USA price; supports consumable and non-consumable products.

Instructions

Create (idempotently) a one-time in-app purchase (non-consumable or consumable) with USA price. Pro feature.

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": {
      "app_id": "<app_id>",
      "product_id": "<product_id>",
      "reference_name": "<reference_name>",
      "display_name": "<display_name>",
      "description": "<description>",
      "type": "<type>",
      "price_usd": "<price_usd>"
    },
    "name": "create_iap"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesPurchase type
app_idYesApp Store Connect app ID
localeNoLocalization locale (default en-US)
confirmNoRequired. This creates a real product on your App Store Connect account.
price_usdYesUSA price in dollars, e.g. 59.99
product_idYesIAP product ID, e.g. com.app.lifetime
descriptionYesCustomer-facing description (max 45 chars)
review_noteNoNotes for App Review: how to reach the paywall, test instructions
display_nameYesCustomer-facing name (max 30 chars)
reference_nameYesInternal reference name
family_sharableNoAllow Family Sharing of this purchase (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.10.3
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "Required. This creates a real product on your App Store Connect account.",
      +  "type": "boolean"
      +}
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the write/destructive annotations, 'idempotently' supplies useful retry and duplicate-request context, while 'Pro feature' suggests plan gating. It does not explain the idempotency key, its scope, or what happens when the product already exists.

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 compact sentences front-load the action, resource, idempotency, supported types, pricing scope, and plan availability. There is no filler, although 'Pro feature' is necessarily terse.

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?

Combined with the fully documented schema and annotations, the definition provides enough information for most correct invocations. Explicit sibling routing, clearer duplicate/idempotency behavior, and some indication of the creation result would improve completeness, particularly because there is no output schema.

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 the baseline is 3. The description reinforces the purchase-type and price scope but adds no parameter formats, constraints, or relationships beyond the schema, such as which parameter determines idempotency.

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 gives a specific action and resource: creating a one-time in-app purchase, limited to non-consumable or consumable types and USA pricing. The one-time scope also distinguishes it implicitly from the create_subscription sibling.

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?

The one-time purchase scope provides clear selection context, and 'Pro feature' signals an availability restriction. However, it does not explicitly direct recurring-purchase use cases to create_subscription or state other when-not conditions.

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