Skip to main content
Glama

Create a subscription

create_subscription
Destructive

Creates an auto-renewable subscription in an App Store Connect group with a USA price, optional free trial, and automatic territory availability, so agents can add monetization products idempotently.

Instructions

Create (idempotently) an auto-renewable subscription inside a group, with USA price and an optional free trial. Sets territory availability automatically. 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>",
      "group_reference_name": "<group_reference_name>",
      "group_display_name": "<group_display_name>",
      "product_id": "<product_id>",
      "reference_name": "<reference_name>",
      "display_name": "<display_name>",
      "description": "<description>",
      "period": "<period>",
      "price_usd": "<price_usd>"
    },
    "name": "create_subscription"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesApp Store Connect app ID
localeNoLocalization locale (default en-US)
periodYesBilling period
confirmNoRequired. This creates a real product on your App Store Connect account.
price_usdYesUSA price in dollars, e.g. 4.99
free_trialNoFree-trial length. Omit for no trial.
product_idYesSubscription product ID, e.g. com.app.plus.monthly
descriptionYesCustomer-facing description (max 45 chars)
group_levelNoRank within the group (1 = top tier; default 1). Higher-value plans get a lower number.
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 subscription (default false).
group_display_nameYesCustomer-facing group name
group_reference_nameYesSubscription group reference name (created if absent)

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

A3.7/5.0
Behavior4/5

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

Beyond the destructiveHint=true annotation, the description discloses three non-obvious behaviors: idempotent creation, automatic territory availability setup, and a Pro-plan requirement. It does not explain what happens on a repeat call (return existing vs. error) or that the schema's 'confirm' flag is expected despite not being in the required array.

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, front-loaded with the verb and resource, then side effects, then the access caveat. No filler and nothing buried at the end.

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

Completeness3/5

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

For a 15-parameter, 9-required destructive creation tool with no output schema, the description covers side effects and gating but says nothing about what is returned (product/group identifiers) or what an idempotent re-invocation yields. Adequate context, with clear remaining gaps.

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 all 15 parameters are already documented with patterns, enums and defaults. The description only reinforces price_usd, free_trial, and group placement at a high level, adding no syntax or constraint detail beyond the schema; baseline 3 applies.

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 ('Create ... an auto-renewable subscription inside a group') plus the key scope details (USA price, optional free trial). The noun 'subscription' plus 'inside a group' distinguishes it from the sibling create_iap, though it never names that sibling explicitly.

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

Usage Guidelines3/5

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

'Pro feature' signals an access prerequisite, and 'idempotently' implies it is safe to retry. But there is no explicit when-to-use vs. when-not guidance and no pointer to create_iap or set_app_price as alternatives for adjacent tasks.

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