Skip to main content
Glama
litsen

lfwin-payment-mcp

create_payment_order

Create a payment order with a merchant order number and amount in yuan. Returns a QR code for payment or a fallback link, and provides an order number for status polling.

Instructions

Create a cashier payment order. Amount is in yuan and merchant_order_no is the merchant's own unique order number. After success, display pay_qrcode_markdown, the returned image content block, pay_qrcode_image data URL, or pay_qrcode_base64 with pay_qrcode_mime_type as the QR code. If QR rendering fails, show pay_url/qrcode as the fallback payment link. Save order_no/query_order_no when present. If order_no is null, save merchant_order_no plus order_time and use both for query_payment_order polling.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
merchant_order_noYes
amountYes
notify_urlNo
Behavior4/5

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

With no annotations provided, the description carries full burden. It explains amount unit, merchant order uniqueness, multiple QR code display options, fallback behavior, and identifier saving for polling. This is substantial behavioral context beyond a simple 'create' statement.

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 description is a single paragraph with multiple sentences, conveying needed information but lacking structure (e.g., bullet points). It is moderately concise but could be better organized.

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?

Given 3 parameters, no output schema, and no annotations, the description covers purpose, parameters, and detailed post-creation behavior. It omits error handling and idempotency, but overall provides adequate context for using the tool.

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 description coverage is 0%, but the description explains two of three parameters: amount (in yuan) and merchant_order_no (unique identifier). Notify_url is not described. This adds value beyond the schema's type constraints.

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 starts with 'Create a cashier payment order', specifying a clear verb and resource. It distinguishes itself from sibling tools like query_payment_order and refund_payment_order, which serve different purposes.

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?

The description provides detailed post-creation instructions (display QR code, fallback, save identifiers) and implies polling with query_payment_order. However, it does not explicitly state when to use this tool versus its siblings or mention prerequisites.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/litsen/lfwin-payment-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server