Skip to main content
Glama
Payware MCP Server

Payware MCP Server

Official
by payware

payware_products_create_product

Creates a new product with pricing, inventory metadata, and payment options for merchant inventory and payment processing.

Instructions

[Merchant] Create a new product for inventory management and payment processing.

Product Structure: šŸ“¦ PRODUCT METADATA: name, shortDescription, longDescription, sku, upc, shippable, active, shop šŸ’° PRODUCT DATA (prData object): type, regularPrice, currency, overlapPriority, timeToLive, activeFrom, activeTo, timeZone āš™ļø PRODUCT OPTIONS (prOptions object): imageUrl, termsUrl, termsText

Required: name Optional: All other parameters have sensible defaults

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

Input Schema

NameRequiredDescriptionDefault
skuNoStock Keeping Unit (SKU)
upcNoUniversal Product Code (UPC)
nameYesProduct recognizable name (required)
shopNoShop code (if not supplied, default shop is used)
activeNoIndicates if product can serve as payment sourceFALSE
activeToNoProduct active state ending date (YYYY-MM-DD format)
currencyNoPrice currency (3-character ISO code)EUR
imageUrlNoURL of the product image, fetched and checked by payware on save: JPG or PNG, at most 600 KB, at least 300 px wide and at most four times as wide as it is high (1200 x 630 px, about 300 KB, recommended). Banks, the payment page and chat previews show it.
termsUrlNoURL pointing to external terms and conditions resource
timeZoneNoProduct state scheduling timezone (IANA format, e.g., 'Europe/Sofia')GMT
partnerIdNoMerchant partner ID (uses PAYWARE_PARTNER_ID env var as default)partner_12345
shippableNoIndicates if product requires delivery addressFALSE
termsTextNoTerms and conditions text
activeFromNoProduct active state starting date (YYYY-MM-DD format)
privateKeyNoRSA private key for authentication (uses environment-specific private key as default)
timeToLiveNoTime allowed for product payment in seconds (60-2592000)
useSandboxNoUse sandbox environment
productTypeNoType of productITEM
regularPriceNoProduct regular price as a decimal string. Zero or positive, at most 12 integer digits, and no more decimals than the currency's minor unit (0 for JPY, 2 for EUR, 3 for KWD, 8 for BTC). Returned as a string too.0.00
longDescriptionNoLong product description
overlapPriorityNoPriority when overlapping price schedules existLOWEST
shortDescriptionNoShort product description

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.6.1
    • changedInput schema / properties / imageUrl / description
      Previous value: -"URL pointing to external product image resource"New value: +"URL of the product image, fetched and checked by payware on save: JPG or PNG, at most 600 KB, at least 300 px wide and at most four times as wide as it is high (1200 x 630 px, about 300 KB, recommended). Banks, the payment page and chat previews show it."
  2. First observedv2.2.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already disclose that this is a non-read-only, open-world, non-idempotent, non-destructive mutation, and the description does not contradict those hints. It adds that only name is required and the rest have defaults, but it does not explain duplicate handling, creation side effects, authentication, or what is returned.

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?

It is front-loaded with the purpose and organized into named field groups, useful for a 22-parameter tool. The emoji headings and repeated field lists add some noise, but the required/optional summary is compact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex create tool with no output schema, the definition covers the required field and defaults and groups the main product fields. It still omits operational details such as duplicate-name/SKU behavior, response shape, and why an agent would pick this over update_product.

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

Parameters2/5

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

The schema has 100% parameter description coverage, so the description's grouping is largely redundant. Worse, it refers to 'prData object' and 'prOptions object' even though the actual input schema is flat, which could mislead an agent about how to structure arguments.

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?

The description opens with a specific verb and resource: 'Create a new product for inventory management and payment processing.' It is clearly distinguishable from sibling get/update/delete/list product tools by its create action.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The create action implies when to use it, but the description does not explicitly say when to choose it over update_product, list_products, or other sibling tools. It also gives no guidance on duplicates or prerequisites beyond noting required vs optional parameters.

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