Skip to main content
Glama

PayPing: create invoice

payping_create_invoice
Destructive

Create an invoice for a saved customer and get its code, pay code, and payment URL; confirm customer, items, and prices before generating it. It does not send the invoice.

Instructions

Create an invoice for a saved customer; returns code, payCode, url (pay page). Not sent: use payping_send_invoice or share the url. Confirm customer, items and prices with the user first.

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": {
      "customer_code": "<customer_code>",
      "items": "<items>"
    },
    "name": "payping_create_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
notesNoShown to the customer.
titleNo
due_dateNoPay by this day (YYYY-MM-DD).
customer_codeYesFrom payping_create_customer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changedv0.2.0
    • removedInput schema / $defs / InvoiceItem / properties / amount_toman / title
      Removed value: -"Amount Toman"
    • removedInput schema / $defs / InvoiceItem / properties / description / title
      Removed value: -"Description"
    • removedInput schema / $defs / InvoiceItem / properties / has_tax / title
      Removed value: -"Has Tax"
    • removedInput schema / $defs / InvoiceItem / properties / quantity / title
      Removed value: -"Quantity"
    • removedInput schema / $defs / InvoiceItem / properties / title / title
      Removed value: -"Title"
    • removedInput schema / $defs / InvoiceItem / title
      Removed value: -"InvoiceItem"
    • removedInput schema / properties / customer_code / title
      Removed value: -"Customer Code"
    • removedInput schema / properties / due_date / title
      Removed value: -"Due Date"
    • removedInput schema / properties / items / title
      Removed value: -"Items"
    • removedInput schema / properties / notes / title
      Removed value: -"Notes"
    • removedInput schema / properties / title / title
      Removed value: -"Title"
    • removedInput schema / title
      Removed value: -"payping_create_invoiceArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "payping_create_invoiceDictOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false, so the safety bar is partly met. The description adds genuinely new behavioral context: the created invoice is a draft that is not delivered, and it must be sent separately or the url shared manually. It does not warn that repeated calls create duplicate invoices, which matters given non-idempotency.

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 compact sentences, front-loaded with the action and its key return fields, followed by the send-elsewhere distinction and the confirmation rule. 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?

With no output schema, the description compensates by naming the returned `code`, `payCode`, and `url` (pay page), which is exactly what an agent needs to chain into send_invoice or a share step. Nested item pricing and the required-vs-optional split are left to the schema, which is acceptable here.

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 60%, with customer_code, due_date, notes, has_tax and amount_toman documented inline. The description reinforces 'saved customer' and 'items and prices', matching the schema's documented fields but adding no new format, unit, or constraint detail beyond it. Baseline 3 is appropriate where the schema carries most of the meaning.

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?

States a specific verb and resource ('Create an invoice') plus a crucial scope qualifier ('for a saved customer'), and explicitly names the boundary with the sibling payping_send_invoice. The agent can distinguish it from send_invoice and create_payment_link without opening either schema.

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

Usage Guidelines4/5

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

Explicitly says the invoice is not sent and routes the agent to payping_send_invoice or the returned url as alternatives, and adds a confirmation prerequisite ('Confirm customer, items and prices with the user first'). It stops short of covering when to prefer an invoice over payping_create_payment_link, so it is strong but not exhaustive.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.