Skip to main content
Glama

SendQuoteNow — AI Quote Engine for Contractors

Undo mark as paid

mark_invoice_unpaid

Reverse a manually recorded payment and clear paid_at/method/reference. Payments collected through Stripe cannot be undone here (refund them in the dashboard). Idempotent.

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_unpaid"
  }
}

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

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 supplied, the description carries the full burden and does substantial work: it names the fields that get cleared, discloses idempotency, and rules out Stripe-sourced payments. It stops short of saying what happens on an already-unpaid invoice or whether an error or a no-op is returned.

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 tight sentences with the core action first, followed by the key exclusion and the idempotency guarantee. Nothing is redundant and no sentence is filler.

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 two-parameter mutation with a fully described schema and no output schema, the description covers action, side effects, the main exclusion, and idempotency. Only edge-case behavior (already unpaid, nonexistent id) is 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 100%, and both the id and kind parameters are documented in the schema with the quote_invoice versus converted distinction. The description adds no further meaning about those parameters, so the baseline of 3 applies.

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?

The description gives a specific verb and resource ("Reverse a manually recorded payment") plus the exact state it mutates ("clear paid_at/method/reference"), which maps directly onto the inverse of the mark_invoice_paid sibling. An agent can distinguish this from marking paid 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?

It clearly states a when-not condition: payments collected through Stripe cannot be undone here and must be refunded in the dashboard. That is real routing guidance, though it doesn't explicitly name mark_invoice_paid as the counterpart operation or state prerequisites such as the invoice currently being paid.

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