Skip to main content
Glama

Agentalog — Agent Auto Log

Buy plan

buy_plan

Buy a plan: vaga (1 more tool), equipe (50 more tools and up to 10 private projects), empresa (500 more tools and up to 10 private projects). 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`vaga` (1 more tool), `equipe` (50 more tools and up to 10 private projects), `empresa` (500 more tools and up to 10 private projects)

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?

Goes well beyond the annotations: 30-day term with no auto-renewal, the 402 challenge-response protocol, accepted payment headers (X-Credito, PAYMENT-SIGNATURE v2, X-PAYMENT v1), wallet ownership without an account, the `compra` mark preventing double credit debits, and the single-settlement x402 nonce with receipt retention. These are exactly the mutation risks an agent needs and are not derivable from destructiveHint/idempotentHint flags.

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?

Markedly redundant: 'Each purchase lasts 30 days, with no automatic renewal' appears twice verbatim, and the 402-with-price statement is repeated in two separate sentences. The useful payment-protocol details are buried after the duplicated material, hurting front-loading.

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?

With no output schema, the description supplies enough of the protocol (402 response carries price, repeat after payment, receipt handling) for an agent to complete a purchase and recover from errors. It could say more about what a successful response returns to confirm entitlement, but the essential behavior is covered.

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 single `plan` enum is already fully documented in the schema; the description restates the same tier benefits without adding format, default, or validation detail. Baseline 3 applies since the schema carries the parameter meaning.

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 ('Buy a plan') and immediately enumerates the three purchasable tiers with what each grants, so an agent knows exactly what this tool transacts. It is clearly separable from siblings like list_plans, cancel_plan, and get_bundle.

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

Usage Guidelines3/5

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

The description conveys the purchase flow (get a 402 with price, then pay and repeat) but never states when to choose this over cancel_plan, list_plans, or api_access_buy, nor any prerequisite such as checking plans first. Usage is implied rather than directed.

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.