Skip to main content
Glama
Zenskar MCP Server

Zenskar MCP Server

Official
by zenskar

getInvoicePaymentsById

getInvoicePaymentsById

Retrieve successful payments for a specific invoice ID to reconcile invoice status and amounts; results include only successful transactions, and payment amounts are in cents.

Instructions

Get successful payments associated with a specific invoice ID. This endpoint is success-only and may not show refund rows. Payment amounts are in cents.

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

Input Schema

NameRequiredDescriptionDefault
invoiceIdYesThe ID of the invoice.
__userContextNoInternal user context for multi-tenant authentication and approval workflow

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.4

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full disclosure burden and does well by stating the success-only filter, the possibility of missing refund rows, and that amounts are in cents. It still omits pagination, return shape, and auth/prerequisite details, but the core semantic caveats are disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with purpose, then caveat, then unit convention. Every sentence earns its place and nothing is redundant.

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

Completeness4/5

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

For a simple read tool with one meaningful parameter and full schema coverage, the description is largely complete and even preempts a common misinterpretation about refunds and cents. The main missing piece is sibling differentiation against getInvoicePayments and getInvoicePaymentsWithoutRefunds.

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 the only real parameter (invoiceId) is already documented as 'The ID of the invoice.' The description adds no syntax, format, or validation detail beyond the schema, so the baseline of 3 is appropriate.

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 ('Get successful payments associated with a specific invoice ID') with a clear scope qualifier ('successful'). However, it never names or distinguishes itself from close siblings such as getInvoicePayments or getInvoicePaymentsWithoutRefunds, leaving the agent to infer which variant to use.

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 caveat 'success-only and may not show refund rows' implicitly signals when this tool is insufficient, which is useful context. But it provides no explicit when-to-use routing or alternative tool for refunds, so the agent must infer the boundary from sibling names.

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