Skip to main content
Glama

Set the business collection QR code

set_payment_qr
Destructive

No money moves through LivePage: viewers scan your own code and funds go straight into your own collection account; the platform never places an order, collects or transfers funds. This tool only stores one QR-code image and shows it to viewers who submit a form that carries an amount. Replace this workspace's business collection QR code with the image you pass (base64 PNG or JPEG). After a viewer submits a form that carries an amount (set_form), they see the total due, this code and an “I have paid” button. COMPLIANCE: upload a BUSINESS collection code (merchant code) from WeChat Pay or Alipay, never a personal static code — under the barcode-payment rules in force since 1 March 2022, personal static codes may not be used to collect business payments. Replacing an existing code takes effect at once and the old image cannot be recovered; every change is written to the audit log and notifies the workspace owner on WeChat — this is the one setting where a mistake silently sends money elsewhere. Confirm with the user that it is their own merchant code before uploading; do not go and find an image or scrape a QR code off a web page. PNG or JPEG only, up to 2 MB, recognised by the image bytes themselves — a filename ending in .png proves nothing. Use remove_payment_qr to take it down.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameNo原文件名,只进审计留个线索;**认图不看它**(叫 .png 的 PDF 照样被拒)
image_base64Yes收款码图片的 base64(可带 data:image/png;base64, 前缀)。PNG 或 JPEG,2 MB 以内

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=false, and the description adds real context beyond that: replacement takes effect immediately, the old image cannot be recovered, every change hits the audit log and notifies the workspace owner on WeChat, and money could silently route elsewhere on error. This is exactly the extra behavioral detail annotations cannot carry.

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?

Front-loaded with the safety framing and the compliance rule, and the closing sentence routes to the alternative. It is long and slightly redundant ('no money moves' restated as 'never places an order, collects or transfers funds'), but the density is justified by the money-loss risk.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, non-idempotent mutation with no output schema, the description covers the full burden: what gets overwritten, irreversibility, side effects, audit/notification behavior, and the sibling that undoes it. Nothing an agent needs to call this safely 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 meaning: the image must be recognised by its bytes (a .png filename proves nothing), must be PNG or JPEG up to 2 MB, and must semantically be a merchant collection code rather than any QR. That reinforces and extends the schema's 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?

States a precise verb+resource: it stores exactly one QR-code image and replaces the workspace's business collection QR code. It also names the sibling it is not (remove_payment_qr) and the related set_form flow, so the agent can place it without opening any schema.

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 about when to use (viewers who submit a form carrying an amount will see this code), when not (use remove_payment_qr to take it down), and prerequisites (confirm it is the user's own merchant code; never scrape an image off a web page). The compliance rule on personal vs business static codes is spelled out with the effective date.

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