Skip to main content
Glama

Confirm the renewal key of a Tempo subscription

shop.subscription.confirm_pull
Destructive

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.

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": {
      "subscription_id": "<subscription_id>",
      "tx_hash": "<tx_hash>"
    },
    "name": "shop.subscription.confirm_pull"
  }
}

Input Schema

NameRequiredDescriptionDefault
tx_hashYes
subscription_idYes

Output 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.4/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint false, destructiveHint true, openWorldHint false), the description discloses the validation the platform performs, three concrete 400 error codes (keychain_not_authorized, keychain_expired, keychain_limit_too_low), the post-condition pull_mode = tempo_keychain, and the durable consequence that the merchant renews each period with its own key and pays gas while the caller never signs again. It also names the two escape hatches, cancel and revoke, which matters for a tool that grants recurring pull rights.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The content is dense and mostly earns its place, but the prose is telegraphic and run-on ('shop.subscription.get then carries pull_setup {...}'), mixing jargon, an embedded object literal, and error codes into long sentences. The single actionable instruction (call this with the tx_hash) sits mid-paragraph rather than being front-loaded.

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 two-parameter, high-consequence confirmation step, the description covers prerequisites, external tooling, validation rules, error codes, resulting state, and reversal options. An output schema exists, so return-value detail is correctly omitted.

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 carries the burden. It explains tx_hash precisely (the hash of the accessKey.authorize transaction, with key address derived from pull_setup.key_id), and subscription_id is inferable from the surrounding flow and the 404 note, though it is never explicitly defined as the Tempo subscription identifier.

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 definition states a specific verb and resource: it confirms the renewal key of a Tempo subscription by submitting the authorize tx_hash so the platform can read the keychain. It distinguishes itself from shop.subscription.get, shop.subscription.cancel and accessKey.revoke by role in the flow. The purpose is clear but is delivered as a workflow narrative rather than a front-loaded statement, so the agent must read several clauses before knowing what the call does.

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 an explicit prerequisite chain (call shop.subscription.get, read pull_setup, authorize the key with viem/tempo accessKey.authorize using key_id as the key address and limit as the amount, then call this with the tx_hash). It also states exclusions and alternatives: cancel via shop.subscription.cancel, revoke via accessKey.revoke, Tempo only, active or past_due only, and 404 for another identity's subscription.

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.