Skip to main content
Glama

Email invoice

email_invoice
Destructive

Emails the document to the client from Decknote on the user's behalf (replies go to the user), with a link to it; a draft takes the next number, becomes sent and its link is published. One plain address: the document's or to. Limited to 20 emails an hour per person and one email per document every 10 minutes. A new address beyond the plan's allowance (2 addresses in all on the free plan, 25 new ones a day on Pro) must first confirm that it wants the user's emails: it gets a link from Decknote and the call fails with code unconfirmed until it confirms. On the free plan the message cannot carry links or web addresses. Needs confirm: true and amount equal to the total; without them the result is a preview with the exact email.

Input Schema

NameRequiredDescriptionDefault
toNoAnother address than the one on the document.
amountNoThe document's total in the currency's main unit, repeated from the preview (e.g. 220 or "220.00"). Must equal the total or nothing is done.
localeNo
confirmNotrue performs the action. Without it (or with any value other than the boolean true) nothing changes and the result is a preview of the effects.
messageNoA few personal lines at the top, up to 2000 characters.
reminderNoA reminder for a sent invoice with a balance.
invoiceIdYesThe invoice or estimate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing rate limits (20 emails/hour per person, one per document per 10 minutes), plan allowance caps, the unconfirmed-address failure code, and free-plan restrictions on links. The destructive, non-read-only nature implied by annotations is reinforced with concrete consequences.

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?

Dense but front-loaded with the core action and side effects, then constraints. Every sentence carries operational information (limits, confirm rule, plan restrictions) with little filler, though the block is long.

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 7-param mutation tool with no output schema, the description covers the action, side effects, rate limits, plan gating, confirmation flow, and failure mode. An agent has everything needed to call it correctly.

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 already 86%, but the description adds real meaning: `to` must be a single plain address, `amount` must equal the total or nothing happens, and `confirm: true` is what distinguishes preview from execution. Adds value beyond the schema descriptions.

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 (emails the document to the client on the user's behalf, replies go to the user) plus the concrete side effects (draft takes next number, becomes sent, link published). This distinguishes it from a plain send_invoice status change and clearly identifies the email action.

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?

The two-step workflow is spelled out: needs confirm: true and an amount equal to the total, otherwise you get a preview. It also explains when to use the document's own address versus `to`. It does not explicitly contrast with siblings like send_invoice or get_invoice_email_draft, so it falls short of a full 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.

Resources