Skip to main content
Glama

PayPing: invoice detail

payping_get_invoice
Read-onlyIdempotent

Retrieves a PayPing invoice by its code, including items, customer, status, and the public payment URL.

Instructions

One invoice by code with items, customer, status and url (public pay page).

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": {
      "code": "<code>"
    },
    "name": "payping_get_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • removedInput schema / properties / code / title
      Removed value: -"Code"
    • removedInput schema / title
      Removed value: -"payping_get_invoiceArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "payping_get_invoiceDictOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds one genuinely useful behavioral detail — that `url` is a public pay page — but says nothing about failure modes for invalid codes or about the shape/size of returned line items.

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?

One short, front-loaded fragment with zero filler; the returned fields are listed compactly. It is slightly telegraphic — the sentence has no verb — but nothing is wasted.

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 must carry the return-value burden, and it does list the meaningful payload parts (items, customer, status, public url). For a one-parameter read tool this is close to sufficient, with only the code format and error behavior left unstated.

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 0%, so the description is the only source of meaning for the single `code` parameter, and it only tells us the code selects an invoice. It does not clarify whether the code is the invoice id, a human-readable number, or the public-page token — a real gap given the maxLength 100 string.

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?

The description names a specific resource and scope: a single invoice retrieved by its code, and enumerates what comes back (items, customer, status, url). The word 'One' implicitly contrasts with payping_list_invoices, so differentiation is present but lightly implied rather than stated.

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?

Usage is only implied: fetch this when you already hold an invoice code. There is no explicit statement of when to prefer this over payping_list_invoices or payping_get_payment, and no mention of what happens if the code is unknown.

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