Skip to main content
Glama

SendQuoteNow — AI Quote Engine for Contractors

Mark an invoice paid

mark_invoice_paid

Record an offline payment (cash, check, Zelle, ACH, bank transfer, other) against an invoice, in full. Only invoices can be marked paid, not quotes. Idempotent: an already-paid invoice returns its current state. paid_at may be backdated. Deactivates the invoice's old Stripe payment link so the customer cannot pay twice.

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": {
      "id": "<id>"
    },
    "name": "mark_invoice_paid"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesInvoice id: a document_type "invoice" quote id (create_quote / list_quotes) or a converted invoice id (convert_quote_to_invoice)
kindNoWhich record type the id is. "quote_invoice" (default) = invoice created with document_type "invoice"; "converted" = from convert_quote_to_invoice
paid_atNoISO 8601 date or timestamp; defaults to now. Not in the future.
payment_methodNoDefaults to "other"
payment_referenceNoCheck number, Zelle/transaction id, or a note

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses idempotency ('an already-paid invoice returns its current state'), the side effect of deactivating the old Stripe payment link to prevent double payment, and that backdating is allowed. It omits permission/auth requirements and what happens on an invalid id or quote id.

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?

Four short sentences, each earning its place: action and scope first, then the invoice-only constraint, then idempotency, then the payment-link side effect. No filler or restatement of the name.

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?

For a 5-parameter mutation with no annotations and no output schema, the description covers the important behaviors, including a return-state note for the idempotent case. Remaining gaps are error/permission behavior, which are modest given full schema coverage.

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 100%, so the baseline is 3. The description adds one meaningful semantic point beyond the schema: payment is recorded 'in full', explaining the absence of an amount parameter, and it echoes the backdating allowance already stated on paid_at.

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?

Specific verb plus resource ('Record an offline payment ... against an invoice') with explicit scope qualifiers: 'in full' and 'Only invoices can be marked paid, not quotes.' The agent can immediately tell this apart from mark_invoice_unpaid and from quote-oriented siblings.

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?

Clear when-to-use (recording an offline payment method like cash/check/Zelle/ACH) and an explicit when-not ('not quotes'), plus the idempotent-call guidance. It does not name a specific sibling tool to use instead when the target is a quote (e.g., conversion), so guidance is strong but not fully routed.

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.

Resources