Skip to main content
Glama
Zenskar MCP Server

Zenskar MCP Server

Official
by zenskar

getPaymentById

getPaymentById

Retrieve a payment’s details by its unique ID to verify status, amount in cents, and related information. Use it when you need specific payment records for billing or reconciliation.

Instructions

Retrieve details for a specific payment by its ID. 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": {
      "paymentId": "<paymentId>"
    },
    "name": "getPaymentById"
  }
}

Input Schema

NameRequiredDescriptionDefault
paymentIdYesThe unique ID of the payment to retrieve.
__userContextNoInternal user context for multi-tenant authentication and approval workflow

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.4

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full behavioral burden; "retrieve" implies a read but that is never stated. It does add one genuinely useful behavioral detail beyond the schema: amounts are denominated in cents. It omits permission requirements, not-found behavior, and what fields the "details" include.

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?

Two short sentences with zero filler; the core action is front-loaded and the unit caveat follows immediately. Nothing could be removed without losing information.

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 simple single-record read with one required parameter this is close to adequate, and the cents disclosure is valuable. However, with no output schema and no annotations, the description is the only source of information about the response shape and error behavior, and it addresses neither.

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 is already fully documented in the schema and the internal __userContext object is handled by the framework. The description adds no format, source, or example guidance for the ID beyond restating "by its ID," which makes the 3 baseline correct.

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?

"Retrieve details for a specific payment by its ID" gives a specific verb (retrieve) and resource (payment) with a clear lookup key. It does not distinguish itself from nearby siblings such as getInvoicePaymentsById or getInvoiceByExternalId, so an agent must infer that this tool is the single-payment-by-ID lookup.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description contains no when-to-use or when-not-to-use guidance and names no alternative. It does not say how this differs from listing payments for an invoice or retrieving by external ID, leaving routing entirely to inference from the name.

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