Skip to main content
Glama

set_subscription_definition

Report whether the app sells an in-app subscription, and describe every plan it sells. Send { appId, enabled: false } when the project has no paywall. Send { appId, enabled: true, iosSdkKey } as soon as you know the app sells one — the purchase plugin and that key are compiled into the native build. When the app sells more than one plan (for example monthly and annual), send them all in the products array — never describe an extra plan in reviewNotes, it will not be created. A single plan may also be sent with the flat productId/displayName/description/duration/price fields. Read the real paywall code — do not invent a price or a product id. Duration must be ONE_WEEK, ONE_MONTH, TWO_MONTHS, THREE_MONTHS, SIX_MONTHS or ONE_YEAR, and each plan needs its own product id and duration. The display name is limited to 30 characters and the description to 45, because that is what the App Store purchase sheet shows.

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": {
      "appId": "<appId>"
    },
    "name": "set_subscription_definition"
  }
}

Input Schema

NameRequiredDescriptionDefault
appIdYes
priceNoPlain number in the base currency, e.g. 3.99
enabledNoWhether the app sells an in-app subscription at all. Send false when the project has no paywall.
durationNoONE_WEEK, ONE_MONTH, TWO_MONTHS, THREE_MONTHS, SIX_MONTHS or ONE_YEAR
productsNoEvery plan the app sells. Each entry has its own productId, displayName, description, duration, price and optional freeTrialDays/reviewNotes.
iosSdkKeyNoRevenueCat iOS public SDK key found in the project, starts with appl_
productIdNoApp Store product id, e.g. app.myapp.diy.premium.monthly
descriptionNoOne line on the purchase sheet, 45 characters max
displayNameNoPlan name on the purchase sheet, 30 characters max
reviewNotesNoNote for the App Store reviewer about the subscription
androidSdkKeyNoRevenueCat Android public SDK key found in the project, starts with goog_
freeTrialDaysNoFree trial length in days, omit or 0 for none
reviewScreenshotUrlNoPublic https URL of a paywall screenshot Apple requires against the product. Never invent one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does meaningful work: it explains that the plugin and SDK key are compiled into the native build, that a plan described only in reviewNotes will not be created, and that the 30/45 character limits exist because of the App Store purchase sheet. It does not explicitly say whether the call is destructive to existing plans or what it returns, so there is a residual gap.

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?

The critical 'when to send' instruction is front-loaded and most sentences carry actionable constraints. There is some duplication of the schema (the duration enum and the 30/45 character limits are stated twice in substance), which makes it longer than strictly necessary.

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?

For a 13-parameter mutation tool with no annotations and no output schema, the description covers the decision logic, the two payload shapes, and the fields that are commonly gotten wrong. The SDK keys and review screenshot parameters are left to the schema, which does describe them adequately.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already high at 92%, so the baseline is 3, but the description adds real semantics on top: it enumerates the allowed duration values, explains the products-array versus flat-field trade-off, and repeats the per-plan limits. It leaves iosSdkKey and androidSdkKey unaddressed beyond the schema's own notes.

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?

The first sentence gives a specific verb and resource: report whether the app sells an in-app subscription and describe every plan it sells. It is clear that the tool covers the full set of plans rather than a single one, but it never names a sibling (e.g. set_subscription_code_check) to disambiguate against other subscription-related tools.

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 gives explicit conditional guidance: send { appId, enabled: false } when there is no paywall, and { appId, enabled: true, iosSdkKey } as soon as you know the app sells one. It also states the alternative encoding (flat productId/displayName/description/duration/price for a single plan vs the products array for multiple) and the precondition to read the real paywall code rather than inventing values.

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