Skip to main content
Glama
Zenskar MCP Server

Zenskar MCP Server

Official
by zenskar

updatePayment

updatePayment

Updates a payment's invoice allocations using a required non-empty payment_parts array, so you can correct how the payment amount is distributed across invoices.

Instructions

Update a payment's invoice allocations. The API requires a non-empty request body with payment_parts.

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": {
      "paymentId": "<paymentId>",
      "payment_parts": "<payment_parts>"
    },
    "name": "updatePayment"
  }
}

Input Schema

NameRequiredDescriptionDefault
paymentIdYesThe unique identifier (UUID) of the payment to update.
__userContextNoInternal user context for multi-tenant authentication and approval workflow
payment_partsYesUpdated array of invoice allocations. Each element: {invoice_id: 'UUID', amount: 10000}, with amount in cents. This field is required by the API.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.4.2
    • changedInput schema / properties / payment_parts / description
      Previous value: -"Updated array of invoice allocations. Each element: {invoice_id: 'UUID', amount: 10000}. This field is required by the API."New value: +"Updated array of invoice allocations. Each element: {invoice_id: 'UUID', amount: 10000}, with amount in cents. This field is required by the API."
  2. First observedv2.2.4

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose a real API constraint (non-empty body, payment_parts required), which is useful context beyond the schema, but it says nothing about permissions, whether allocations are replaced or merged, or whether the change is reversible.

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?

Two short sentences, front-loaded with the purpose before the API constraint. Nothing is padded, though the second sentence could be folded into the first for tighter structure.

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 mutation tool with nested object payloads, no annotations, and no output schema, the description covers the core action and one precondition. It leaves out replacement semantics (full array versus partial update) and any note on what the response contains, which an agent would need for safe invocation.

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 description coverage is 100%, so paymentId and payment_parts are already well documented in the schema, and the baseline of 3 applies. The description adds only the 'non-empty' constraint on payment_parts, which is a small but genuine addition not present in the schema.

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?

States a specific verb and resource ('Update a payment's invoice allocations'), narrowing the scope to allocations rather than the payment record overall. It does not name any sibling such as editManualPayment or refundPayment, so differentiation must be inferred from names alone.

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?

Usage is implied by the scope ('invoice allocations'), and the note that the API requires a non-empty body with payment_parts is an invocation precondition. However there is no explicit when-to-use versus alternatives like editManualPayment or refundPayment, and no exclusion 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