Skip to main content
Glama
Zenskar MCP Server

Zenskar MCP Server

Official
by zenskar

getInvoicePaymentsWithoutRefunds

getInvoicePaymentsWithoutRefunds

Retrieve original payment records for an invoice while excluding refund payment rows. Use it to inspect invoice payments even when original payments were refunded or partially refunded.

Instructions

Get original payment records for an invoice, excluding refund payment rows. Refunded or partially refunded original payments may still appear here. 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": "getInvoicePaymentsWithoutRefunds"
  }
}

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.7/5.0
Behavior3/5

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

With no annotations provided, the description carries the full behavioral burden. It discloses important nuances: refund payment rows are excluded, refunded original payments may still appear, and amounts are in cents. It does not disclose pagination, ordering, permissions, or response structure.

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?

The description is three concise sentences with no wasted wording. Purpose is front-loaded, followed by the refund nuance and the amount unit.

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?

The tool is a simple read operation with one business parameter, and the description covers the key filtering nuance and payment amount unit. Because there is no output schema, it should do more to explain the return shape or pagination behavior, which is a clear gap.

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%, and the only business parameter is invoiceId, already documented in the schema as the invoice ID. The description adds no parameter-level detail beyond the schema, so the baseline score of 3 applies.

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 states a specific verb and resource: get original payment records for an invoice. It also scopes the result by excluding refund payment rows, which clearly differentiates it from a broader invoice-payments retrieval.

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 exclusion behavior implies the tool is appropriate when original payment records without refund rows are needed. However, it does not explicitly say when to use this instead of sibling tools like getInvoicePayments or getInvoicePaymentsById.

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