Skip to main content
Glama

独行录 / opcmenu

准备次票或组织年票付款

create_payment_order
DestructiveIdempotent

【需登录】买本场次票、所属组织年票,或组织允许的活动结束后补差升级。年票仅覆盖该组织;补差=发布年票价-次票实付,零差额直接履约。默认预览项目/金额/座位/渠道;确认后同参+previewHash、preview=false执行。auto选已开放渠道;App渠道返回入口和原订单号,让本人继续付款,不返回支付密串;网站渠道返回收银台。创建待付单不扣款,get_payment_order核验PAID且fulfilled。升级须本场sourceTicketId,不能换全价。报价变化重确认;失败查原单,勿重复付款。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYes
channelNoauto
previewNo
companionsNo
activityRefYes
previewHashNo
sourceTicketIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the annotations (which only flag non-read-only, idempotent, destructive), the description discloses that login is required, that creating a pending order does not deduct funds, that behavior differs by channel (auto picks an open channel, app returns an entry point and original order number without the payment secret, web returns a cashier), and that price changes force re-confirmation. That is substantive behavioral context an agent cannot get from 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.

Conciseness4/5

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

It is a single dense block with 【需登录】 marking the precondition and the core purpose front-loaded, and nearly every clause carries unique information (formula for top-up, channel returns, failure handling). It sacrifices scannability by packing workflow, constraints, and return semantics into one unsegmented paragraph, but there is little filler.

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 7-parameter mutation tool with no output schema, the description covers the workflow, channel-dependent return payloads, and the verification path well. The gaps are the undocumented companions parameter and the absence of any note on activityRef formatting, but the essential call-and-verify loop is complete.

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?

With 0% schema description coverage across 7 parameters, the description carries the burden and largely succeeds: it explains kind's three modes, the preview/previewHash confirmation handshake, channel's auto/app/wap/page semantics, and sourceTicketId's upgrade constraint. It leaves companions (likely guest/companion list) and the activityRef format entirely undocumented.

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 opening clause names a specific verb (buy/prepare payment) and enumerates the three distinct resources: this activity's single ticket, the organization's annual pass, and the post-event top-up upgrade. It also distinguishes itself from the verification sibling by naming get_payment_order explicitly, so an agent can separate it from the other payment_order tools.

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?

It states the default preview flow, the exact confirm condition (same params + previewHash + preview=false), the upgrade precondition (must use this activity's sourceTicketId, cannot switch to full price), and what to do on failure (check the original order, do not re-pay). It routes to get_payment_order for verification, but never mentions cancel_payment_order or resume_payment_order, so the full alternative set is not spelled out.

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