Skip to main content
Glama

奇妙生产力 · Qimiao Productivity

pay_with_balance

DestructiveIdempotent

已绑定账号可直接余额付款,无须打开网页。先展示本单任务、金额及交付约定;用户在对话里明确说确认后,传user_confirmation={confirmed:true,amount_cents:本单分值,currency:"CNY"}即可直接扣款,不再要求原生表单或网页二次确认。若用户已明确确认当前这张冻结报价,可直接传确认;不得编造确认或沿用其他订单的同意。尚未确认时省略user_confirmation,旧客户端返回本单摘要及短时confirmation_token,让Agent在对话里询问,获得同意后带原参数和token重试。支持原生确认的客户端也可使用原生确认。金额变化须重新询问。成功或不确定时查原单,重试不重复扣款;网页支付仅为用户可选方式。

Input Schema

NameRequiredDescriptionDefault
credentialYes
service_idYes
contract_idYes
request_keyYes
connection_idYes
user_confirmationNo
confirmation_tokenNo
connection_credentialYes

Output Schema

NameRequiredDescriptionDefault
recoveryYes
next_stepYes
schema_versionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / confirmation_token
      Added value: +{
      +  "maxLength": 4096,
      +  "minLength": 32,
      +  "type": "string"
      +}
    • addedInput schema / properties / user_confirmation
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "amount_cents": {
      +      "exclusiveMinimum": 0,
      +      "maximum": 9007199254740991,
      +      "type": "integer"
      +    },
      +    "confirmed": {
      +      "const": true,
      +      "type": "boolean"
      +    },
      +    "currency": {
      +      "const": "CNY",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "confirmed",
      +    "amount_cents",
      +    "currency"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true; the description adds genuinely non-obvious behavior: retries do not double-charge, the original order must be checked on success or uncertainty, and amounts changing forces a fresh confirmation. It stops short of describing permissions or what exactly is debited if the frozen quote expired.

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?

The intent is front-loaded, but the remaining content is one dense block of prose covering confirmation flow, token retry, native confirmation, amount changes, idempotency and web payment fallback with no structure. Every clause carries information, yet the flow steps would be far easier to execute as a short ordered list.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists and annotations carry the safety/idempotency profile, so much of the burden is lifted. Still, a destructive payment tool should clarify where the required identifiers come from (quote_order output?) and what happens when user_confirmation is passed without a prior quote; those gaps matter for correct invocation.

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 0%, so the description must carry the load, and it does explain the two non-obvious parameters: the exact user_confirmation shape (confirmed:true, amount_cents = 本单分值, currency CNY) and confirmation_token obtained from an unconfirmed first attempt and replayed on retry. The six remaining identifiers (service_id, contract_id, connection_id, credentials, request_key) are never explained.

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?

The opening clause states a specific verb and resource: charge a bound account's balance without opening a web page, which distinguishes it from quote_order/create_order siblings. It never names a sibling tool directly, so differentiation relies on the reader inferring the ordering flow.

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

Usage Guidelines5/5

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

It lays out an explicit conditional flow: pass user_confirmation only after the user says 确认 in the conversation, omit it when unconfirmed so the client returns a summary plus confirmation_token, then retry with the token. It also states when not to proceed (编造确认, 沿用其他订单的同意, 金额变化须重新询问) and names alternatives (原生确认, 网页支付).

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