Skip to main content
Glama

Set the App Store provider token

set_store_provider_token
Idempotent

Save the App Store provider token an app's store links need (workspace owners only). The token belongs to the user's Apple developer account: ask the user for any campaign link they made in App Store Connect (Apps > Analytics > Campaign Generator) and pass it as campaign_link, or pass the number after pt= as provider_token. Returns the same as get_store_links, with each account's App Store link. The App Store Connect API key itself is connected in Sendhour's Analytics page or with the REST API, never through chat.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "set_store_provider_token"
  }
}

Input Schema

NameRequiredDescriptionDefault
appNoThe app ("main", or an app id or name from list_apps). Default: the main app.
campaign_linkNoA campaign link from App Store Connect, like https://apps.apple.com/app/apple-store/id123?pt=123456789&ct=x&mt=8
provider_tokenNoOr just the provider token, the number after pt=

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds real context beyond that: the workspace-owner authorization requirement, the return shape ('same as get_store_links'), and the explicit exclusion of API-key setup. It does not say what happens to a previously saved token when a new one is set, which is the one remaining behavioral 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?

Front-loaded with the action and the permission constraint, then the input-sourcing instructions, then the exclusion. Dense but every sentence carries information; the final sentence about the API key is slightly tangential to the tool's own operation but prevents a likely misuse.

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?

No output schema exists, and the description compensates by stating the return value matches get_store_links with each account's App Store link. Combined with the auth requirement, input sourcing, and the explicit out-of-scope note, an agent has everything needed to call this correctly.

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, but the description adds genuine meaning: it explains where campaign_link comes from and that provider_token is the number after pt=, clarifying that the two parameters are alternative ways to supply the same value. The app parameter's default is left to the schema.

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 ('Save the App Store provider token') plus the scope it serves ('an app's store links need') and the permission gate ('workspace owners only'). It is clearly distinguishable from the read-only sibling get_store_links, which it references.

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?

Explicitly tells the agent how to source the value: ask the user for a campaign link from App Store Connect and pass it as campaign_link, or pass the number after pt= as provider_token. It also states what must NOT be done here (the API key is connected in the Analytics page or via REST, never through chat), which is exactly the kind of routing guidance an agent needs.

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