Skip to main content
Glama

Pressmark

Record Invoice Payment & Issue Receipt

record_payment
Read-onlyIdempotent

Record a full or partial payment against an invoice and instantly generate an official Receipt or updated partial-payment Invoice with remaining balance tracking.

Input Schema

NameRequiredDescriptionDefault
documentYesThe current invoice payload.
paid_dateNoDate payment was received (YYYY-MM-DD).
amount_paidNoAmount received. Defaults to grand total (marks PAID IN FULL). If less, records partial payment.
payment_methodNoMethod of payment, e.g. Stripe, Apple Pay, Bank Wire.
transaction_referenceNoTransaction or checkout reference ID.

Output Schema

NameRequiredDescriptionDefault
documentYesUpdated receipt or partial-payment invoice state.
pdf_base64YesBase64-encoded vector PDF.
compile_time_msYesVector compilation latency in milliseconds.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior1/5

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

The description clearly describes a write operation ('Record a payment', 'generate an official Receipt'), yet annotations declare readOnlyHint=true. That is a direct contradiction about whether the tool mutates state, and it is the single most important behavioral fact for the caller.

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 well-formed sentence with the action front-loaded and no redundant restatement of the name. Mild promotional padding ('instantly', 'official') costs it a point but does not obscure meaning.

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?

An output schema exists, so return values need not be explained. However, for a mutation with a nested 'document' payload, the description omits prerequisites (invoice must already exist), overpayment handling, and whether the source document is modified in place — and the readOnly annotation actively misleads.

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% and each parameter already explains itself, including the amount_paid default behavior. The description adds only 'remaining balance tracking' and does not supplement anything the schema lacks, so baseline 3 applies.

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+resource ('Record a full or partial payment against an invoice') plus the outcome (receipt or updated invoice). It is distinguishable from siblings like preview_document and generate_document, though it never names them explicitly to sharpen the boundary.

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 full-vs-partial distinction is described, which implies when to use it, but there is no explicit when-not guidance and no reference to alternatives such as preview_document or calculate_totals. An agent must infer the routing.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.