Skip to main content
Glama

Confirm the renewal key of a Tempo subscription

shop.subscription.confirm_pull

Tempo subscription of a merchant that runs its own renewal key: shop.subscription.get then carries pull_setup {key_id, token, limit, expiry, how}. Authorize that key address from the paying account (viem/tempo accessKey.authorize with expiry and limits [{token, amount: limit}], key address = pull_setup.key_id), then call this with the authorize tx_hash. The platform reads the keychain: the key must be authorized by the paying wallet, not revoked, not expired, and its remaining USDC limit must cover one period (400 keychain_not_authorized | keychain_expired | keychain_limit_too_low). On success pull_mode = tempo_keychain: the merchant renews each period with its key and pays the gas; you never sign again. Cancel with shop.subscription.cancel (the merchant then has nothing to pull) or revoke the key yourself with accessKey.revoke. Active or past_due, Tempo only; another identity's subscription is 404.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tx_hashYes
subscription_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
skuYes
statusYes
period_noYes
pull_modeYes
pull_setupNo
canceled_atNo
max_periodsYes
renewal_keyNo
access_untilNo
status_reasonYes
next_charge_atYes
subscription_idYes
current_period_endYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / renewal_key
      Added value: +{
      +  "type": "string"
      +}
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=false). The description adds substantial context beyond that: platform reads the keychain, three distinct failure codes (keychain_not_authorized | keychain_expired | keychain_limit_too_low), the post-success state pull_mode = tempo_keychain, who pays gas, and that no further signing is required. This is exactly the behavioral disclosure annotations cannot carry.

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?

Dense and front-loaded: the setup sequence is stated first, then preconditions, then success state, then cancel alternatives. It is long, but nearly every clause carries actionable information; a small amount of parenthetical notation could be tighter, keeping it just under a 5.

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?

For a chained, stateful, auth-dependent subscription operation this is complete: prerequisites, required prior calls, error codes, resulting state, and cleanup paths are all present. An output schema exists, so return values need not be described.

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 0%, so the description must compensate. It does: tx_hash is identified as the authorize tx_hash returned by accessKey.authorize, and subscription_id is the target subscription being activated. It stops short of restating the explicit type/format of each parameter, but the semantic origin of tx_hash is the key value an agent needs.

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 action (confirming the renewal key) on a specific resource (a Tempo subscription running its own renewal key) and distinguishes itself from shop.subscription.get, shop.subscription.cancel, and shop.subscription.preauthorize by name and role. An agent can select it without opening sibling schemas.

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?

Explicit preconditions are given (merchant must run its own renewal key, key must be authorized by the paying wallet, not revoked/expired, limit must cover one period), plus the required setup sequence (shop.subscription.get -> accessKey.authorize -> this call). Alternatives are named for the exit path: shop.subscription.cancel or accessKey.revoke.

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.