Skip to main content
Glama

Send invoice by email

send_invoice
Destructive

Email an ISSUED invoice or quote to the user's customer — as a PDF and, where possible, as an e-invoice. This goes to a third party and cannot be taken back: ask the user before calling this. Without to, subject and message it goes out as Invoice suggests; pass them only if the user wants something else. Drafts cannot be sent: issue_invoice first.

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": "send_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoAnother recipient address — only if the user names one.
messageNoAnother email text, complete, in the recipient's language.
subjectNoAnother subject line.
invoice_idYesThe website's id — from list_sites.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructiveHint and openWorldHint, but the description adds the operational consequence (irreversible delivery to a third party) and the required confirmation step before calling. It also documents default behavior for omitted optional params, which the annotations say nothing about.

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?

Front-loaded with purpose, then the risk and confirmation requirement, then the draft precondition — a strong ordering. The middle sentence about defaults is slightly compressed and takes a moment to parse, but 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 4-param irreversible send tool with annotations and no output schema, the description covers the key risks and defaults. It stops short of noting what confirms successful delivery or how sending is reflected on the invoice record, a minor gap given a high-coverage schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/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 goes further by explaining that omitting to/subject/message produces sensible invoice-derived defaults rather than empty values. It doesn't add format or validation detail for invoice_id beyond pointing at list_sites, which the schema already does.

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?

States a specific verb and resource (email an issued invoice/quote) plus the output formats (PDF, e-invoice where possible) and the recipient (the user's customer). The ISSUED qualifier and the 'Drafts cannot be sent: issue_invoice first' clause separate it cleanly from issue_invoice and create_invoice.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit preconditions and exclusions: only issued invoices, never drafts, must confirm with the user first because it reaches a third party. It also tells the agent when to pass optional params ('only if the user wants something else') rather than filling them by default.

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