Skip to main content
Glama

Set country availability

set_app_availability
Destructive

Set an app's App Store country/region availability by listing territories, enabling all territories with exclusions, or passing an empty list to remove it from sale worldwide.

Instructions

Set the app's country/region availability. Requires an explicit choice: a territories list, or all_territories:true (optionally with except_territories), or [] to take the app off sale worldwide. 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>"
    },
    "name": "set_app_availability"
  }
}

Input Schema

NameRequiredDescriptionDefault
app_idYesApp Store Connect app ID
confirmNoNeeded to turn territories off on an app that already has availability set: it stops sales there at once.
territoriesNoTerritory ids to enable, e.g. ["USA","GBR"]; everywhere else is turned off. Pass [] to take the app off sale worldwide. Omit only if you pass all_territories.
all_territoriesNoPut the app on sale in every App Store territory. Required when territories is omitted, so an app_id alone can never widen where an app is sold.
except_territoriesNoWith all_territories:true, leave these out, e.g. ["CHN"] (mainland China needs an ICP filing, an AIGC declaration and a security assessment).
available_in_new_territoriesNoAuto-include future new territories (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.13.0
    • addedInput schema / properties / except_territories
      Added value: +{
      +  "description": "With all_territories:true, leave these out, e.g. [\"CHN\"] (mainland China needs an ICP filing, an AIGC declaration and a security assessment).",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed1 schema field changedv1.10.3
    • addedInput schema / properties / confirm
      Added value: +{
      +  "description": "Needed to turn territories off on an app that already has availability set: it stops sales there at once.",
      +  "type": "boolean"
      +}
  3. Added

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the destructiveHint annotation, the description adds the important safety detail that an explicit choice is required, describes the worldwide off-sale outcome for [], and notes that this is a Pro feature. It does not mention the confirm safeguard or immediate effect on existing territories, but the added context is meaningful for a destructive mutation.

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?

The description is compact, front-loaded with the tool's purpose, and then enumerates the explicit choices without unnecessary wording. Every sentence contributes to correct invocation or important context.

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 six-parameter destructive tool with full schema descriptions and no output schema, the definition is largely complete: purpose, mode requirements, destructive outcome, and Pro-feature constraint are covered. The main omission is that the confirm safeguard is left entirely to the schema rather than surfaced in the description.

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 100%, so the baseline is 3, and the description adds useful semantics about the mutually exclusive modes: a territories list, all_territories:true with optional exclusions, or [] for worldwide removal. It does not explain every parameter such as confirm, but it clarifies the intended calling pattern beyond individual field descriptions.

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 description states a specific verb and resource: setting the app's country/region availability. It is clearly distinct from sibling tools such as set_app_price and set_app_metadata, though it does not explicitly name alternatives or draw the contrast itself.

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?

The description gives clear operational guidance for the required parameter choice, including the empty-list case for removing worldwide availability. However, it does not say when an agent should choose this tool over related app-setting siblings or under what circumstances availability changes are appropriate.

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