Skip to main content
Glama

Buy plan

buy_plan

Buy a plan: starter (25 more pages), pro (100 more pages), agency (300 more pages). Each purchase lasts 30 days, with no automatic renewal. Answers 402 with the price; pay with x402 or prepaid credit and repeat. Each purchase lasts 30 days, with no automatic renewal. Without payment, the answer is 402 with the price. Pay with prepaid credit (X-Credito) or x402 (PAYMENT-SIGNATURE v2 or X-PAYMENT v1). Without an account, the verified paying wallet owns the purchase. Use wallet agent authentication to read its plan, or claim it after account sign-in. The compra mark prevents repeat credit debits. An x402 nonce can settle only once; keep the receipt after a delivery error.

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": {
      "plan": "<plan>"
    },
    "name": "buy_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
planYes`starter` (25 more pages), `pro` (100 more pages), `agency` (300 more pages)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A3.9/5.0
Behavior5/5

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

Annotations only declare non-readonly, non-idempotent, non-destructive; the description layers on material behavior the agent could not infer: the 402-with-price negotiation, the 30-day non-renewing term, the `compra` mark that prevents duplicate credit debits, x402 nonce single-settlement, and the instruction to keep the receipt after a delivery error. That is exactly the kind of charge/retry semantics an agent needs before spending money.

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

Conciseness2/5

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

The core (which tiers, what they cost in pages) is front-loaded, but the text repeats itself almost verbatim: "Each purchase lasts 30 days, with no automatic renewal" appears twice and the 402-with-price statement appears twice. That duplication bloats a one-parameter tool and dilutes the genuinely useful payment details.

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 single-enum payment tool with no output schema, the description covers price negotiation, payment channels, ownership/claim flow and retry safety, which is nearly everything needed. The gap is that it never says what a successful purchase returns (receipt shape, new page quota), leaving the agent to discover the success payload at runtime.

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 enum already documents starter/pro/agency with page counts, so the schema carries the burden. The description merely restates the same tier-to-page mapping verbatim rather than adding constraints or defaults, so the baseline 3 applies.

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?

States a specific verb+resource ("Buy a plan") and enumerates the three purchasable tiers, so an agent can separate it from list_plans, cancel_plan, pricing and billing without opening a schema. It never names those siblings explicitly, which is the only thing keeping it from a 5.

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?

Gives concrete usage context: pay via prepaid credit or x402, unauthenticated purchases are owned by the verified paying wallet, and the plan can be claimed after account sign-in. It does not state when the tool should not be used or route the agent to list_plans/cancel_plan as alternatives, so no exclusions are present.

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.