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. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already flag readOnlyHint=false and destructiveHint=true, and the description reinforces this by labeling it a write operation needing user confirmation and noting external calls execute directly under the apikey identity — a meaningful auth/execution caveat not in the annotations. It also notes cost is free and that payment settlement happens on the platform side, though it does not explain what, if anything, is irreversible about the purchase.

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

Conciseness4/5

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

Front-loaded with a bracketed category tag, then purpose, then parameters, then side effects — a sensible order with no filler sentences. It loses a point for redundancy: the write-operation warning appears twice and the parenthetical cost/free tag adds visual noise.

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 only three flat parameters, no output schema, and annotations covering the safety profile, the description supplies enough: required vs optional fields, allowed values, where plan_id comes from, and the downstream payment step. The only gap is what the call returns or how to follow up after the order is created.

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 the baseline would be 3, but the description adds real value the schema lacks: it enumerates period values (day/week/month/year) and payment_method values (chain/x402) even though the schema declares no enums, and it states plan_id originates from platform_plans. That is genuine meaning beyond the structured fields.

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 (purchase a platform plan / subscribe) and adds what it actually produces: a payment order with payment completed on the platform. It also implicitly distinguishes itself from platform_plans by naming it as the source of plan_id, so an agent can separate buying a plan from browsing plans or checking subscription status.

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?

Clear usage context: it is a write operation requiring user confirmation, and plan_id must come from platform_plans, which routes the agent to the right prerequisite tool. It does not explicitly contrast with platform_subscribe_guide or platform_user_subscription, so exclusions are implied rather than stated.

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.