Skip to main content
Glama

Get PayPay Payment Details

get_payment_details
Read-only

Check the current status and details of a PayPay payment using its merchantPaymentId. Returns the payment state, such as CREATED, AUTHORIZED, COMPLETED, REFUNDED, FAILED, or CANCELED, for one-off verification.

Instructions

Fetch the current status and details of a payment by merchantPaymentId. Returns status: CREATED | AUTHORIZED | COMPLETED | REFUNDED | FAILED | CANCELED. Use this for one-off status checks. For active polling, prefer wait_for_payment.

merchantPaymentIdで指定した取引の現在のステータスと詳細を取得します。 ステータス: CREATED / AUTHORIZED / COMPLETED / REFUNDED / FAILED / CANCELED。 単発の確認に使用してください。継続的な確認は wait_for_payment を推奨します。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
merchant_payment_idYesThe merchantPaymentId used when creating the QR code. QR作成時のmerchantPaymentId。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the description doesn't need to repeat safety. It adds value by disclosing the return statuses and the polling-vs-one-off distinction, which is useful behavioral context. It doesn't contradict annotations and provides extra detail beyond them.

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

Conciseness5/5

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

Two compact paragraphs (English and Japanese) that front-load the purpose and statuses, then give usage guidance. No redundant sentences; every line earns its place.

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 one parameter, no output schema, and read-only annotations, the description covers the essential: what it does, the parameter source, and when to use it. It could mention the response structure beyond statuses, but for a simple status check it is sufficient.

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?

The schema description for merchant_payment_id is already present (100% coverage), and the description adds context by noting it's 'the merchantPaymentId used when creating the QR code', helping the agent locate the correct identifier. This goes beyond the schema's basic type definition.

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?

The description clearly states the action (fetch status and details) and the resource (payment by merchantPaymentId). It lists the exact possible statuses, distinguishing it from sibling tools like wait_for_payment. The purpose is unambiguous and specific.

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?

Explicitly states when to use it: 'Use this for one-off status checks. For active polling, prefer wait_for_payment.' This gives clear context and directs to an alternative, leaving no ambiguity about when to select this tool.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.