Skip to main content
Glama
Zenskar MCP Server

Zenskar MCP Server

Official
by zenskar

generateInvoicePaymentLink

generateInvoicePaymentLink

Create a payment link for a specific invoice so customers can pay online; optionally set a custom amount in cents below the invoice amount due.

Instructions

Generate a payment link for a specific invoice.

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": "generateInvoicePaymentLink"
  }
}

Input Schema

NameRequiredDescriptionDefault
amountNoCustom amount to charge for the invoice, in cents. Must be less than the invoice's amount due, which is in major units.
invoiceIdYesThe ID of the invoice.
__userContextNoInternal user context for multi-tenant authentication and approval workflow

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.4.2
    • changedInput schema / properties / amount / description
      Previous value: -"Custom amount to be charged for the invoice (must be less than the amount due)."New value: +"Custom amount to charge for the invoice, in cents. Must be less than the invoice's amount due, which is in major units."
  2. First observedv2.2.4

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden and provides almost none: it does not say whether a payment record is created, whether the link expires, whether it is idempotent, or what permissions are required. 'Generate' hints at a write/side-effecting action but nothing confirms reversibility or scope.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though the terseness is part of why other dimensions are thin.

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

Completeness2/5

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

For a side-effecting tool with no annotations, no output schema, and a nested authentication/approval context object, the description omits return value shape (a URL?), link lifetime, and failure conditions. It is not complete enough for an agent to invoke confidently beyond the happy path.

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 the schema already documents invoiceId and the partial-amount option, making 3 the baseline. The description adds no clarification, notably not resolving the schema's confusing unit mismatch between cents for amount and major units for the invoice amount due.

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 ('Generate a payment link') scoped to 'a specific invoice', which an agent can distinguish from generic payment tools. It stops short of naming how it differs from close siblings such as payInvoice or createInvoiceCharge.

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?

There is no guidance on when to choose this over payInvoice, createInvoiceCharge, or createPayment, all of which sit adjacent to it in the catalog. The agent must infer the use case (shareable link vs. direct charge) entirely on its own.

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