Skip to main content
Glama

购买平台套餐

platform_subscribe_plan
Destructive

【账户与额度】购买平台套餐(写操作,需用户确认):plan_id 必填(来自 platform_plans),period 可选 day/week/month/year,payment_method 可选 chain/x402。创建支付订单,支付在平台完成。(cost: free)(写操作,外部调用将以 apikey 身份直接执行)

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_id": "<plan_id>"
    },
    "name": "platform_subscribe_plan"
  }
}

Input Schema

NameRequiredDescriptionDefault
periodNo订阅周期(可选)
plan_idYes套餐 ID(必填)
payment_methodNo支付方式(可选,默认 chain;仅支持加密货币)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added
  4. Removed
  5. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=true, so the bar is lower; the description still adds meaningful context: user confirmation required, cost is free, payment is completed on the platform, and external calls execute directly under apikey identity. It doesn't say what happens on failure or whether the order can be cancelled – though a sibling cancel_order exists.

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?

Front-loaded with the category tag and the crucial write-operation and user-confirmation warnings, which is good. However, there is redundancy: '(写操作,需用户确认)' appears at the start and '(写操作...)' is repeated at the end, bloating an otherwise compact definition.

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?

Annotations supply safety profile, schema supplies parameter types, and the description adds confirmation requirement, cost, default, and source constraints. No output schema exists, so the description could say more about the created order (e.g., an order id returned), but the critical call-correctly information is present.

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 100% so baseline is 3, but the description adds value: it declares plan_id's source (platform_plans), constrains period to day/week/month/year (schema's period description is just '订阅周期(可选)' with no enum), and states payment_method defaults to chain and crypto-only. This meaningfully exceeds the schema.

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?

Specific verb and resource: '购买平台套餐' with the constraint that plan_id comes from platform_plans, and it distinguishes itself as a write/payment operation rather than a read of plans. Explicitly states it creates a payment order with payment completed on the platform.

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?

States it is a write operation requiring user confirmation and directs plan_id to come from platform_plans, which implies a prerequisite lookup. But it does not explicitly say when to use this vs platform_subscribe_guide or platform_subscribe_strategy siblings, which would be the likely confusion points.

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.