Skip to main content
Glama
Payware MCP Server

Payware MCP Server

Official
by payware

payware_products_update_schedule

DestructiveIdempotent

Updates an existing Payware product price schedule by applying only the fields you provide and preserving omitted values; requires a Premium merchant plan.

Instructions

[Merchant] Update an existing price schedule. Only provide the fields you want to change: payware keeps every stored value the request leaves out. With neither dateFrom nor dateTo the schedule's period stays as stored; with one of them the other is worked out as on create (dateFrom alone: the period runs one month from it; dateTo alone: it starts one month before dateTo, or today if that is later), and a start before today is refused (ERR_INVALID_ACTIVE_FROM_DATE). Premium (PRM) plan only: the server answers 403 on any other plan (for an ISV, the merchant's plan).

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>",
      "scheduleId": "<scheduleId>"
    },
    "name": "payware_products_update_schedule"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateToNoSchedule end date (YYYY-MM-DD format)
dateFromNoSchedule start date (YYYY-MM-DD format)
partnerIdNoMerchant partner ID (uses PAYWARE_PARTNER_ID env var as default)partner_12345
productIdYesProduct identifier (starts with 'pr')
privateKeyNoRSA private key for authentication (uses environment-specific private key as default)
scheduleIdYesSchedule identifier
useSandboxNoUse sandbox environment
descriptionNoSchedule description
correctionTypeNoPrice correction method
correctionValueNoCorrection value (positive number with max 2 decimals)
priceCorrectionNoPrice correction direction

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

A4.6/5.0
Behavior5/5

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

The annotations only flag destructiveHint=true and idempotentHint=true; the description goes well beyond them by explaining that omitted fields are retained, which materially softens the destructive profile. It also discloses the plan-gating failure mode (server answers 403 on any non-Premium plan, judged on the merchant's plan for an ISV) and a named error code (ERR_INVALID_ACTIVE_FROM_DATE) for a rejected start date.

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 mutation contract and the partial-update rule are front-loaded, and every clause adds real information. The date-derivation rules are packed into a single heavily parenthesized sentence, which is dense but still parseable and avoids repetition.

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 an 11-parameter mutation tool with no output schema, the description covers what an agent most needs to avoid a bad call: partial-update semantics, date derivation, plan gating, and the failure mode for an invalid start date. Authentication and correction-field details are adequately handled by the fully described schema.

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 already 100%, so the baseline is 3; the description earns above that by documenting the coupling between dateFrom and dateTo that the schema presents as two independent optional fields — one alone derives the other, and a start before today is refused. The correction fields (correctionType, correctionValue, priceCorrection) still get no narrative treatment and rely entirely on the schema.

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: 'Update an existing price schedule'. The word 'existing' plus the partial-update framing cleanly separates it from payware_products_create_schedule and payware_products_delete_schedule without needing to name them.

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?

It tells the agent how to call it correctly ('only provide the fields you want to change') and states a hard eligibility constraint (Premium/PRM plan only, 403 otherwise, including the ISV case). What it lacks is an explicit compare-and-route sentence pointing to create_schedule or delete_schedule for the other operations.

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