Skip to main content
Glama

request_payment

お金を使う前に必ず呼ぶツール。支払先・金額・理由を財布番に申請し、許可が出たかを返す。status が approved のときだけ支払ってよい。pending_approval は持ち主の承認待ちで、まだ支払ってはいけない(持ち主のスマホに通知が届く)。denied や expired のときは支払わず、reason をユーザーに伝える。 / Call this BEFORE spending any money. Pay only when status is approved. pending_approval means the owner must approve on their phone — do not pay yet. When approved, the result includes payment_token: a single-use token that payment tools can verify, so payments made without approval can be refused. If the payment is a subscription or renews automatically, set recurring. Before buying something you may already have paid for, call list_payments. If you get pending_approval, poll check_payment_status instead of calling request_payment again (a repeat of a pending request returns the same request).

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": {
      "merchant": "<merchant>",
      "amount": "<amount>",
      "reason": "<reason>"
    },
    "name": "request_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountYes支払う金額(税込) / amount to pay, tax included
reasonYesなぜこの支払いが必要か。持ち主が承認するときに読む / why this payment is needed (the owner reads this)
currencyNoamount の通貨。省略すると持ち主の通貨 / currency of amount; defaults to the owner's currency
merchantYes支払先のサービス名や店名 / merchant or service name (e.g. OpenAI API, AWS)
recurringNoサブスク・定期購入・自動更新なら、その間隔を必ず指定する。定期購入は金額に関係なく持ち主の承認が必要 / If this starts or renews a subscription or any recurring charge, set the billing interval. Recurring charges always need the owner's approval, whatever the amount
idempotency_keyNo同じ支払いをやり直すときは同じ値を渡す。新しい申請は作られず、前の申請が返る / Pass the same value when retrying the same payment; the earlier request is returned instead of creating a new one
wait_for_approval_secondsNo承認待ちのとき待つ秒数(最大45秒) / seconds to wait for approval

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "同じ支払いをやり直すときは同じ値を渡す。新しい申請は作られず、前の申請が返る / Pass the same value when retrying the same payment; the earlier request is returned instead of creating a new one",
      +  "maxLength": 200,
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / recurring
      Added value: +{
      +  "description": "サブスク・定期購入・自動更新なら、その間隔を必ず指定する。定期購入は金額に関係なく持ち主の承認が必要 / If this starts or renews a subscription or any recurring charge, set the billing interval. Recurring charges always need the owner's approval, whatever the amount",
      +  "enum": [
      +    "none",
      +    "week",
      +    "month",
      +    "year"
      +  ],
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false and destructiveHint=false; the description carries the real behavioral payload — the approval gate, the single-use payment_token that downstream tools verify and can refuse, the rule that recurring charges always need owner approval regardless of amount, and that repeating a pending request returns the same request rather than duplicating it. Nothing here contradicts the annotations.

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 critical constraint (pay only when approved) is front-loaded, but the body is a dense bilingual block where the Japanese and English versions are only partially parallel, leaving genuine repetition and a long run-on of edge cases. The retry/idempotency point is made twice, once in prose and once in the schema.

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 does the work of explaining that the result carries a status and a payment_token, and it names the status values an agent must branch on (approved, pending_approval, denied, expired). It would be fully complete if it also characterized the remaining response fields, but nothing decision-critical is missing.

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 is 3, but the description adds decision-level meaning: it tells the agent to set recurring when a charge renews and to reuse the same idempotency value instead of re-submitting. It does not elaborate on currency defaulting or wait_for_approval_seconds beyond what the schema already states, so it stops short of a 5.

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?

"Call this BEFORE spending any money" plus "支払先・金額・理由を財布番に申請し、許可が出たかを返す" states a specific verb (request approval), a specific resource (a payment), and the pre-spend ordering constraint. It is immediately distinguishable from siblings list_payments (already-paid lookup) and check_payment_status (polling), both of which are named.

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?

Explicit routing rules: call list_payments before buying something that may already be paid for, poll check_payment_status rather than re-calling on pending_approval, and pay only on approved. The when-not case (do not pay on pending/denied/expired) is spelled out with the concrete fallback action of relaying reason to the user.

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.