Skip to main content
Glama
Payware MCP Server

Payware MCP Server

Official
by payware

payware_shops_list

Read-onlyIdempotent

Retrieve valid shop codes to use in subsequent payment, product, or POI operations. Prevents invalid code errors and ensures transactions target the correct merchant outlet.

Instructions

[Merchant] List the merchant outlets (shops) the caller can act on.

Endpoint: GET /shops

Use this before any call that takes a shop / shopCode. Creating a transaction, creating a product, creating a POI and batching POIs all take one, and an invalid code is a 400 (ERR_INVALID_SHOP_CODE). Omitting it falls back to the merchant's default shop, which is a reasonable guess for a single-outlet merchant and the wrong outlet for everyone else - the sale lands against the wrong shop, and nothing about the response says so.

Returned per shop (server ShopDTO): code (the value to pass as shop / shopCode), name, isDefault, ecommerce, country, tipsAllowed and the shop's label, image and terms URLs. tipsAllowed: true means the payer's bank may add a tip to this shop's payments, with or without lines: the payer pays the amount plus the tip, and payware records it on the payment as tip (never a line), in the callback and the history. Without it the payer pays exactly the amount. The merchant switches it in the portal's shop form; it is off by default. A merchant's own tip (tip on create) needs no such setting.

⚠️ Requires Standard or Premium. A Basic merchant gets 403.

Note on financial institutions: banks do not own shops. A bank principal calling this gets 403, not an empty list.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "payware_shops_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
partnerIdNoPartner ID from the payware dashboard. Uses PAYWARE_PARTNER_ID env var as default.
privateKeyNoRSA private key for JWT signing. Uses the environment-specific key as default.
useSandboxNoUse sandbox environment for testing

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true, idempotentHint=true and destructiveHint=false, so safety is covered. The description adds real value beyond that with the Standard/Premium entitlement gate (Basic merchants get 403) and the note that bank principals get 403 rather than an empty list - both are behavioral facts an agent cannot infer from annotations. The remaining gap is that it does not say whether the list is paginated or how large it can get, which matters for an openWorldHint list operation.

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 core guidance is front-loaded and the bolded 'Use this before...' line is the highest-value sentence. The tipsAllowed paragraph is well written but disproportionate to the tool's purpose of retrieving shop codes - it explains a payment-routing flag in detail when the agent mainly needs `code` and `isDefault`.

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?

With no output schema, the description correctly enumerates the returned ShopDTO fields and explicitly identifies which value to pass back as `shop`/`shopCode`, which is the critical bit. It is nearly complete, though it could state result ordering or whether a merchant with many shops is truncated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and all three parameters (partnerId, privateKey, useSandbox) are auth/transport plumbing already documented in the schema. The description adds no parameter-level meaning, which is acceptable here since there is nothing domain-specific to clarify. Baseline 3 applies.

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?

"List the merchant outlets (shops) the caller can act on" gives a specific verb and resource, plus the permission scope and the underlying endpoint GET /shops. It is immediately distinguishable from sibling shop tools like payware_shops_get_delivery or payware_shops_set_delivery, which act on a single shop rather than enumerate them.

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?

The description explicitly mandates ordering: "Use this before any call that takes a shop / shopCode," and enumerates the concrete consumers (transaction, product, POI creation, POI batching). It also explains the failure mode of skipping it (400 ERR_INVALID_SHOP_CODE) and the silent consequence of omitting the code (default-shop fallback that misattributes the sale), so the agent knows both when to call and why.

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