Skip to main content
Glama
Payware MCP Server

Payware MCP Server

Official
by payware

payware_products_set_delivery

DestructiveIdempotent

[Merchant] Replace a product's delivery overrides. Whatever you do not send is removed, so read them first with payware_products_get_delivery.

Instructions

[Merchant] Replace a product's delivery overrides. Whatever you do not send is removed, so read them first with payware_products_get_delivery.

Endpoint: PUT /products/{productId}/delivery

Each row is either {"country":"RO","excluded":true} (not delivered there; no surcharge) or {"country":"BG","excluded":false,"surchargePerUnit":"3.00"} (delivered, with an extra amount per unit in the product's currency). The product is useful here when it is shippable. Unknown product or one outside an ISV's shops: 404 ERR_MISSING_PRODUCT.

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>",
      "countries": "<countries>"
    },
    "name": "payware_products_set_delivery"
  }
}

Input Schema

NameRequiredDescriptionDefault
countriesYesThe complete list of overrides, one row per country. Empty clears them
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.8/5.0
Behavior5/5

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

Annotations already flag destructiveHint and idempotentHint, and the description reinforces the semantics by stating 'whatever you do not send is removed' — the crucial replace-not-merge behavior. It also discloses the 404 ERR_MISSING_PRODUCT and 403 ERR_METHOD_NOT_ALLOWED_FOR_CURRENT_USER_PLAN cases and that changes are audit-logged.

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 destructive replace warning, then endpoint, then row format, then error/plan constraints. Dense but nearly every sentence carries actionable information; slightly sprawling across four paragraphs with mixed formatting.

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, plan-gated replacement over a nested array, the description covers warning, prerequisites, error codes, audit logging, and row semantics. No output schema exists, but none needs explaining for a setter returning success/failure.

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 bar is baseline 3; the description adds value by giving the two concrete row shapes and clarifying that an excluded row carries no surcharge while surchargePerUnit is per unit in the product's currency. It does not restate the useSandbox default or the ID pattern, but the examples are genuinely useful.

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 in bold ('Replace') plus the exact resource ('a product's delivery overrides') and the endpoint PUT /products/{productId}/delivery. It is immediately distinguishable from the read sibling payware_products_get_delivery.

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?

Explicitly instructs reading current overrides first with `payware_products_get_delivery` before replacing, names the plan prerequisite (Standard or Premium, Basic refused), and notes the product must be shippable. Both the when-to-use and the prerequisite conditions are spelled out.

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