Skip to main content
Glama
Zenskar MCP Server

Zenskar MCP Server

Official
by zenskar

getInvoicePayments

getInvoicePayments

Retrieve successful payments linked to a specific invoice, excluding refunds and non-success states; amounts are returned in cents.

Instructions

Get successful payments currently associated with a specific invoice. This view may omit refund records and non-success payment states. 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": "getInvoicePayments"
  }
}

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

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

With no annotations, the description carries the full burden and does add real value: it discloses the filter (successful payments only), warns about excluded refund records and non-success states, and specifies units as cents. It says nothing about permissions/API-key requirements, ordering, pagination, or result size.

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 with no waste: purpose first, then the important omission caveat, then the units convention. Every sentence earns its place and the critical scoping fact is front-loaded.

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 single-parameter read tool with no output schema and no annotations, the description covers the two things an agent most needs to know (filtering behavior and amount units). It could still say more about the returned payment structure or ordering, but nothing essential is missing.

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%, so invoiceId is already documented and __userContext is a framework-injected object; the description adds no parameter-level meaning beyond the schema. The units note applies to returned values, not to an input parameter.

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') scoped to one invoice, and the qualifier 'successful' plus 'currently associated' narrows it beyond a generic payment listing. It does not name the near-identical siblings (getInvoicePaymentsById, getInvoicePaymentsWithoutRefunds), so the agent must infer the distinction from those 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?

The caveat that this view 'may omit refund records and non-success payment states' implies a sibling exists for the refund-inclusive view, but it never names it or states a use condition. There is no explicit when-not-to-use guidance despite three closely named siblings that would confuse an agent.

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