Skip to main content
Glama
Payware MCP Server

Payware MCP Server

Official
by payware

payware_poi_set_price

DestructiveIdempotent

Sets a pending price on a point of interaction (POI) so a customer can scan and pay the specified amount, currency, and optional tip until the TTL expires.

Instructions

[Merchant] Set a pending price on a POI for customer payment.

Authentication: your own JWT (an ISV makes the same call on your behalf). Endpoint: PUT /poi/{poiId}/price Use Case: Set the amount a customer should pay when they scan the POI.

The POI moves to READY and waits for a scan until the TTL expires. The scan creates the transaction and the POI is BUSY until the sale is final.

Only amount, currency, ttlSeconds and tip are accepted. There is no description, callback URL or passback field on a price - the callback URL is set on the POI when it is created, and a POI without one sends no callbacks.

Tip (optional): the merchant's tip, INSIDE amount (amount = bill + tip), e.g. a waiter's tip on a table's QR or NFC tag. The payment created at the scan records it as the merchant's tip, and the payer's bank offers no second one. Leave it out to let the payer add a tip in the bank app, where the shop allows tips.

Keep the returned sessionToken until the sale has a final status: pass it to payware_poi_get_status to read that sale's transaction and outcome.

Required: POI ID, amount, currency.

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": {
      "poiId": "<poiId>",
      "amount": "<amount>",
      "currency": "<currency>"
    },
    "name": "payware_poi_set_price"
  }
}

Input Schema

NameRequiredDescriptionDefault
tipNoOptional merchant tip, included in amount (e.g. amount '22.00' with tip '2.00' for a 20.00 bill). Above 0, at the currency's scale, at most the amount before it.
poiIdYesThe POI identifier (format: pi + 8 alphanumeric chars, e.g., piABC12345)
amountYesPayment amount (e.g., '25.50'), positive and no finer than the currency's smallest unit
currencyYesISO 4217 currency code (e.g., 'EUR', 'USD', 'GBP')
ttlSecondsNoSeconds until the price expires if nobody scans it (60-600). Defaults to the POI's own ttlSeconds.
useSandboxNoUse sandbox environment for testing

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.5.0
    • addedInput schema / properties / tip
      Added value: +{
      +  "description": "Optional merchant tip, included in amount (e.g. amount '22.00' with tip '2.00' for a 20.00 bill). Above 0, at the currency's scale, at most the amount before it.",
      +  "type": "string"
      +}
  2. First observedv2.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only flag it as a mutating, idempotent, open-world call; the description goes well beyond that by disclosing the POI lifecycle (READY on set, BUSY after scan until the sale is final, price expires at TTL), the authentication requirement (own JWT, or ISV on your behalf), and the fact that no callback URL or passback can be set here. It also tells the agent to retain the returned sessionToken and hand it to payware_poi_get_status, which is behavior nothing in the structured fields conveys.

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?

Bold-labeled sections (Authentication, Endpoint, Use Case, Tip, Required) make it easy to skim and the operation is front-loaded in the first line. It is longer than strictly necessary — the tip paragraph and the callback-URL caveat could be tightened — but nearly every sentence carries operational information.

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?

With no output schema, the description compensates by naming the returned sessionToken and what to do with it, and it covers everything needed to call correctly: auth, endpoint, accepted fields, TTL-based expiry, and post-call POI state. Nothing an agent needs to invoke and follow up on this mutation 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 real meaning beyond it: tip is INSIDE amount (amount = bill + tip) with a concrete framing, and it states explicitly that only amount, currency, ttlSeconds and tip are accepted and that no description/callback/passback field exists. ttlSeconds and useSandbox behavior are left largely to the schema, which keeps it off a 5.

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?

Opens with a bracketed audience tag plus a specific verb and resource: "[Merchant] Set a pending price on a POI for customer payment." That wording separates it from the read/status siblings and from cancel_price without needing either schema, and the Use Case line restates the outcome in customer terms.

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?

Gives clear when-to-use context ("Set the amount a customer should pay when they scan the POI") and practical guidance on the tip decision: include it as merchant tip, or omit it to let the payer tip in the bank app. It does not name when to prefer payware_poi_cancel_price or how a re-set interacts with an outstanding price, so it stops short of full when/when-not coverage.

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

Deploy Server

Other Tools