Skip to main content
Glama

Pay style topup

pay_style_topup

Pay style topup. Pay the pending style-tier difference for order_pack_id using request_id; returns completion with charged_cents, or a pending_action_id for an AI. requires the member's own approval. 付款数补差。用 order_pack_id 和 request_id 付待结清的款数档位补差;返回完成状态及 charged_cents,AI 调用时返回 pending_action_id。要本人点同意。

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": {
      "request_id": "<request_id>",
      "order_pack_id": "<order_pack_id>"
    },
    "name": "pay_style_topup"
  }
}

Input Schema

NameRequiredDescriptionDefault
request_idYes
order_pack_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations only declare mutation and non-idempotency; the description adds real value by disclosing the two possible outcomes (immediate completion with charged_cents, or a pending_action_id for AI callers) and the fact that the member's own approval is required. It does not restate idempotencyHint=false or clarify whether request_id acts as a deduplication key, which is the one behavioral gap a money-moving call would benefit from.

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?

Short and front-loaded: purpose first, then inputs, then return shapes, then the approval constraint. The only waste is the fully duplicated Chinese rendering, which adds tokens without adding information for a single-language agent.

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 2-parameter mutation with no output schema, the description covers what matters: what is charged, both return branches, and the human-approval gate. Remaining gaps are minor — units of charged_cents, behavior when nothing is owed, and which sibling resolves a returned pending_action_id.

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 description coverage is 0%, so the description carries the full burden; it does place both parameters in context (order_pack_id identifies the pack, request_id drives the payment), which is more than the bare schema. But request_id's origin and purpose — client-generated, uniqueness, reuse behavior on a non-idempotent call — is never explained, so meaningful ambiguity remains.

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?

Names a specific verb (pay) and a specific resource (the pending style-tier difference on an order pack), and identifies both inputs. It is distinguishable from siblings like mark_deposit_paid or get_buy_credits_link, though it never explicitly contrasts itself with them, and 'style topup / 款数档位补差' leans on internal domain jargon an agent may not fully resolve.

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?

Usage is implied by 'Pay the pending style-tier difference', so an agent can infer this is only for an outstanding topup, not a general payment. However, there is no explicit when-not guidance (e.g., what to do if no difference is pending) and no pointer to related flows such as decide_pending_action even though the tool can produce a pending_action_id.

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.

Resources