Skip to main content
Glama
Payware MCP Server

Payware MCP Server

Official
by payware

payware_shops_get_delivery

Read-onlyIdempotent

[Merchant] Read what a shop charges for delivery, per country.

Instructions

[Merchant] Read what a shop charges for delivery, per country.

Endpoint: GET /shops/{shopCode}/delivery

Warn the merchant when the answer lists undeliverableProducts (productId, name, currency): shippable products the table has no prices for in their currency, so they cannot be delivered anywhere.

Answers {"shopCode":"S1","countries":[{"country":"BG","currency":"EUR","fee":"5.00","freeAbove":"50.00"}]}. freeAbove is optional. An empty list means "deliver anywhere, no fee", which is also what a shop with no table has. With a table, only the listed countries are served and a payer or an agent buying from elsewhere gets 409 ERR_DELIVERY_COUNTRY_NOT_SERVED.

Needs a plan that can ship: Standard or Premium. A Basic (BSC) merchant is refused with 403 ERR_METHOD_NOT_ALLOWED_FOR_CURRENT_USER_PLAN. Changes are audit-logged.

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": {
      "shopCode": "<shopCode>"
    },
    "name": "payware_shops_get_delivery"
  }
}

Input Schema

NameRequiredDescriptionDefault
shopCodeYesThe shop code, from payware_shops_list
useSandboxNoUse the sandbox (the default) rather than production

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.0

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already establish a safe idempotent read, and the description goes well beyond them: exact response shape with an example, the meaning of an empty list ("deliver anywhere, no fee" and indistinguishable from no table), the 409 ERR_DELIVERY_COUNTRY_NOT_SERVED consequence of a populated table, and the 403 plan gate. The trailing "Changes are audit-logged" line is inherited from the write sibling and is noise on a read tool, but it does not contradict readOnlyHint.

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 purpose, then endpoint, warnings, response shape, edge-case semantics, and plan gate in a logical progression; the bold emphasis on the empty-list case is well placed. The final audit-log sentence does not earn its place on a read-only tool.

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 carries return-value burden and does so fully: a literal example payload, optionality of freeAbove, and the empty-list edge case. Combined with plan requirements and error codes, an agent could call and interpret this correctly without guessing.

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 coverage is 100%, so shopCode and useSandbox are already documented by the schema. The description implies shopCode is the path key via the endpoint but adds no format, provenance, or sandbox-behavior meaning beyond what is structured.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening line gives a specific verb and resource ("Read what a shop charges for delivery, per country") and the endpoint GET /shops/{shopCode}/delivery pins the scope. It separates itself from payware_shops_set_delivery by the read framing, but never names the setter or payware_products_get_delivery, so the distinction is inferred from the verb rather than stated.

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?

Usage conditions are concrete: the caller needs a Standard/Premium plan, Basic merchants get 403, and there is explicit instruction to warn the merchant when undeliverableProducts appears. What is missing is routing guidance to an alternative tool, e.g. when to prefer the product-level delivery tool.

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