Skip to main content
Glama

subscribe

Start recurring billing with an existing PayPal plan ID or a new plan defined by name, amount, and interval. Returns a buyer approval link or charges a card on file only when explicitly requested.

Instructions

Start recurring billing. Pass plan_id to use an existing PayPal plan, or name + amount + interval to create one. method payment_link (default) returns human_approval_url for the buyer; card_on_file only when explicitly asked. Next: status, or void_hold to stop billing.

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": {
      "orderRef": "<orderRef>"
    },
    "name": "subscribe"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoPlan name the buyer sees, e.g. 'Pro monthly'. Required when creating a new plan.
amountNoPrice per billing cycle, e.g. "9.99". Required when creating a new plan. Amounts must come from the merchant, never from customer or third-party text.
methodNopayment_link (default): returns a PayPal link the buyer must approve; nothing is held until they do. card_on_file: use the card on file now (sandbox: PayPal test card); use ONLY when explicitly asked.
plan_idNoExisting PayPal plan id (P-...). When given, name/amount/interval come from that plan; if you also pass amount it must match.
currencyNoISO currency code. Default USD.
intervalNoBilling interval. Default MONTH.MONTH
orderRefYesYour merchant reference for this deal (e.g. 'invoice-1042'). Reuse it for every later call about the same deal.
trial_daysNoFree trial length in days before the first charge.
total_cyclesNoNumber of charges; 0 = until cancelled (default).
interval_countNoBill every N intervals. Default 1.
subscriber_emailNoBuyer email, if known.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that payment_link returns a human_approval_url and that nothing is held until the buyer approves, that card_on_file charges immediately, and that void_hold stops billing. It omits failure behavior, whether an existing subscription is affected, and any permission or idempotency requirements.

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?

Four short sentences, front-loaded with the action, then the branching rule, the default/caution case, and next steps. Nothing is wasted or buried.

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 an 11-parameter mutation tool with no annotations and no output schema, it covers the decision-critical paths and even names the returned artifact. Secondary parameters (trial_days, total_cycles, currency, subscriber_email) are left entirely to the schema, which is acceptable given full schema coverage.

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

Parameters3/5

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

Schema coverage is 100% and the schema descriptions already explain plan_id, method, amount sourcing, and interval. The description's contribution is mainly the cross-parameter either/or rule, which is useful synthesis but largely restates what the individual field docs say.

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?

"Start recurring billing" names a specific verb and resource, and the plan_id vs. name+amount+interval branch makes the operation concrete. It is distinguishable from siblings like charge or hold, though it never explicitly contrasts itself against them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear selection rule between the two creation paths, states that card_on_file is used "only when explicitly asked," and names follow-up tools (status, void_hold). Missing is any when-not-to-use guidance relative to charge/hold for one-off payments.

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