Skip to main content
Glama
Payware MCP Server

Payware MCP Server

Official
by payware

payware_products_get_delivery

Read-onlyIdempotent

[Merchant] Read a product's delivery overrides: the countries it is not delivered to and the countries where it costs extra.

Instructions

[Merchant] Read a product's delivery overrides: the countries it is not delivered to and the countries where it costs extra.

Endpoint: GET /products/{productId}/delivery

Warn the merchant when the answer carries noDeliveryInCurrency: true: the product is shippable, its shop has a delivery table, and none of it is in the product's currency, so it cannot be delivered anywhere until prices in that currency are added to the shop.

Answers {"productId":"pr...","countries":[{"country":"RO","excluded":true},{"country":"BG","excluded":false,"surchargePerUnit":"3.00"}]}. The surcharge is in the product's currency (so the product's currency cannot change while it has one: ERR_PRODUCT_CURRENCY_HAS_SURCHARGES). Any surcharge makes a quantity required when an institution processes the product (ERR_QUANTITY_REQUIRED). The overrides only narrow the shop's table: a surcharge on a country the shop does not list has no effect until the shop serves it.

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": {
      "productId": "<productId>"
    },
    "name": "payware_products_get_delivery"
  }
}

Input Schema

NameRequiredDescriptionDefault
productIdYesThe product's ID: pr + 8 letters or digits, e.g. pr7e4rCToG
useSandboxNoUse the sandbox (the default) rather than production

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.3.0

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: it discloses the 403 plan refusal with its error code, that changes are audit-logged, that the surcharge pins the product's currency (ERR_PRODUCT_CURRENCY_HAS_SURCHARGES), that a surcharge forces quantity on institutional processing (ERR_QUANTITY_REQUIRED), and that overrides are inert for countries the shop does not serve. This is exactly the behavioral context structured fields 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?

Purpose is front-loaded in the first sentence, then endpoint, then a sample response, then edge cases. Dense but ordered. The middle currency/surcharge paragraph stacks several error conditions in one block, which is slightly heavy but each clause carries distinct decision-relevant 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?

No output schema exists, so the description supplies the response shape by example (countries with excluded/surchargePerUnit and the noDeliveryInCurrency flag) along with failure modes and gating. For a two-parameter read tool, an agent has everything needed to call it and interpret the result.

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% and both parameters are fully documented in the schema, so the description need not re-explain them. It reinforces the domain meaning of productId by anchoring the call to a product's overrides, but adds no format or usage detail beyond the schema, which is the expected baseline.

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 specific verb and resource ("Read a product's delivery overrides") and immediately defines the two things returned: excluded countries and surcharge countries. The word "overrides" implicitly distinguishes it from the shop-level payware_shops_get_delivery table, which the description also references explicitly.

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 operating context: it is a read of product-level overrides that only narrow the shop's table, it requires a Standard/Premium (shippable) plan, and it tells the caller to warn the merchant on noDeliveryInCurrency. It stops short of naming an explicit alternative to use instead (e.g. the shop-level getter or the setter), so it lacks true when-not guidance.

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