Skip to main content
Glama

Pinpai1 Press Release

create_order

下单发稿(会产生实际扣款)。必须先以 confirm=false 调用获取报价,向用户完整展示金额、媒体和余额,并得到用户明确同意后,才能以 confirm=true 且 confirm_amount 等于报价金额再次调用。系统约束固定为:单笔金额上限 5000 元、单笔最多 10 个媒体,余额不足或命中敏感词会被拒绝。注意:用户口头给出的预算(如“预算 500 元”)只是筛选媒体的条件,不是系统下单上限,不得据此声称单笔上限为 500 元或要求用户拆单;只有待发媒体数量超过 10 个时才需要拆单。

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": {
      "title": "<title>",
      "content": "<content>"
    },
    "name": "create_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
khmcNo客户名称,可选
titleYes稿件标题,不超过120字
remarkNo备注/发布要求,可选
confirmNofalse 只做报价预检;true 才真正下单扣款
contentYes稿件正文,支持 HTML,不超过 200KB
fromlinkNo来源链接,可选
media_idsNo兼容旧参数:媒体数字ID列表(优先用 media_keys)
media_keysNo要发布的媒体凭证列表,来自 search_media 的 media_key;不要在回复里展示这些凭证
confirm_amountNo用户已确认的订单总额,必须与预检金额一致
idempotency_keyNo幂等键,同一批下单请沿用同一个值,防止重复扣款

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it discloses real charging, the two-step confirmation gate, hard limits (5000 yuan, 10 media per order), rejection conditions (insufficient balance, sensitive words), and guards against a specific misreading of user budgets. It stops short of saying what a successful call returns or how partial failures are handled.

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?

The description is front-loaded with the cost warning and the mandatory call sequence, then closes with constraints and a targeted guardrail against budget confusion. It is long, but nearly every sentence prevents a concrete misuse; the budget caveat is verbose yet justified.

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 10-parameter mutation tool with no annotations and no output schema, the description covers the workflow, limits and failure modes thoroughly. The one gap is that it never describes the return payload (e.g. an order ID usable with get_order_detail), which matters given the absence of an output schema.

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 real meaning by explaining the confirm/confirm_amount coupling as a quote-then-charge contract rather than two independent flags. It does not add detail on idempotency_key or media_keys beyond what the schema already states.

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 opens with a precise verb+resource ('下单发稿') and immediately flags the critical consequence ('会产生实际扣款'). It also distinguishes the tool from read-only siblings like get_order_detail and list_my_orders by framing it as the only charging, two-phase action.

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 spells out the exact call sequence (confirm=false for a quote, then confirm=true with a matching confirm_amount), the prerequisites (show amount, media and balance to the user, obtain explicit consent), and even the when-not case (do not split orders merely because the user mentions a 500 yuan budget).

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.