Skip to main content
Glama

Field Service Business Platform by Doing Work

invoices_send

Destructive

Send an invoice (or the next part of it) and get a single-use pay link. Who may send is shops.sendPermissions: the owner always may, office for any job, a lead for jobs on their crew, and a field worker for jobs assigned to them, until the owner turns that off. Lines an agent drafted stay unsent until a person who may send invoices sends them. An agent token cannot send those lines. Earlier pay links stop working. Refused with conflict on a Doing Work deposit invoice whose booking ended (shop cancel or no-show). payments_ready false means the shop has no active payments account yet (after a hand-off, connect one with payments.connectLink); the link shows payment isn't available until it does.

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": {
      "invoice_id": "<invoice_id>"
    },
    "name": "invoices_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
percentNoProgress billing: ask for this percent of the invoice total now (capped at the balance). Use instead of amount_minor.
invoice_idYes
amount_minorNoAmount to ask for now. Defaults to the deposit on the first send, then the balance.
email_customerNoAlso email the customer a branded email with their own pay link, from the shop. Default false: you share pay_url yourself.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / email_customer
      Added value: +{
      +  "description": "Also email the customer a branded email with their own pay link, from the shop. Default false: you share pay_url yourself.",
      +  "type": "boolean"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

The annotations declare destructiveHint=true, and the description justifies that by disclosing that earlier pay links stop working, which is a real side effect an agent must know before retrying. It adds behavior the annotations cannot express: single-use links, permission enforcement, the agent-token restriction, the conflict refusal condition, and the payments_ready/payments.connectLink hand-off.

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?

Purpose and the returned pay link are front-loaded, and nearly every sentence carries operational weight. There is mild redundancy between "Lines an agent drafted stay unsent until a person who may send invoices sends them" and the following "An agent token cannot send those lines," and the single dense paragraph mixes permissions, side effects, and failure modes that would read better as distinct sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive, open-world mutation with no output schema, the description covers permissions, revocation of prior links, refusal conditions, and even a response field (payments_ready) with its remediation path. An agent has enough to decide whether it may call this and how to react to the common failures.

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?

With 75% schema description coverage, the schema already explains percent vs amount_minor defaults and the email_customer default. The description adds only indirect meaning, such as "the next part of it" implying repeated sends of the balance; it does not clarify precedence among percent, amount_minor, and the deposit default. Baseline 3 is appropriate.

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 opens with a specific verb and resource plus the outcome: "Send an invoice (or the next part of it) and get a single-use pay link." That sentence alone separates it from read-oriented siblings like invoices_get and from quotes_send, and the parenthetical clarifies that repeat sends act on the remainder of the same invoice.

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 gives strong when-to-use gating: the exact permission model (owner, office, lead, field worker), the rule that agent-drafted lines stay unsent until an authorized person sends, and the explicit exclusion that an agent token cannot send them. It also names the failure paths (conflict on an ended Doing Work deposit invoice, payments_ready false) and routes the payments case to payments.connectLink. It stops short of naming when a sibling such as invoices_createFromQuote should be preferred, so it is not a full alternative-routing statement.

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.