Skip to main content
Glama

Send document

send_document

Email a document (invoice, quote, credit note, etc.) to its contact. Works on any document id. This actually sends the email — to flag a document as sent without emailing use mark_document_sent, and to log a payment against it use record_document_payment. Find the id yourself with list_documents (query by number or contact); never ask the user for an id. Its reply's destination is every address the email went to: say who received it from that, never a guess.

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

Input Schema

NameRequiredDescriptionDefault
ccNoExtra addresses to CC on this send, shown to every recipient. Each entry may hold one address or several split by , or ;. At most 10 addresses.
idYesId of the document (invoice, quote, credit note, etc.) to email (required).
emailNoOverride recipient address; defaults to the document contact's email on file.
messageNoA note shown in the email above the document.
sendcopyNoSend me a copy: BCC the signed-in user who sends this, and nobody else. Off by default. Only a signed-in person gets a copy; an API, agent or MCP token sends none.
attachpdfNoAttach the document's own PDF, drawn at send time from the saved document. Off when absent: stub-web sends true by default. If the PDF cannot be drawn, the email goes without it. The view-online link always stays.
attachrebilledNoAttach the receipt of every expense rebilled on this document's lines. Off by default. Files that do not fit are sent as download links.
attachmentfileidsNoAttach these files: a rebilled receipt's file id (or the expense id for a legacy receipt), or the id of any business file when the sender may read Files. A file in a locked folder never goes. With attachrebilled, adds to the rebilled receipts. At most 20.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / cc
      Added value: +{
      +  "description": "Extra addresses to CC on this send, shown to every recipient. Each entry may hold one address or several split by , or ;. At most 10 addresses.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 10,
      +  "type": "array"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / attachpdf
      Added value: +{
      +  "description": "Attach the document's own PDF, drawn at send time from the saved document. Off when absent: stub-web sends true by default. If the PDF cannot be drawn, the email goes without it. The view-online link always stays.",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / sendcopy
      Added value: +{
      +  "description": "Send me a copy: BCC the signed-in user who sends this, and nobody else. Off by default. Only a signed-in person gets a copy; an API, agent or MCP token sends none.",
      +  "type": "boolean"
      +}
  4. Changed4 schema fields changed
    • addedInput schema / properties / attachmentfileids
      Added value: +{
      +  "description": "Attach these files: a rebilled receipt's file id (or the expense id for a legacy receipt), or the id of any business file when the sender may read Files. A file in a locked folder never goes. With attachrebilled, adds to the rebilled receipts. At most 20.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
    • addedInput schema / properties / attachrebilled
      Added value: +{
      +  "description": "Attach the receipt of every expense rebilled on this document's lines. Off by default. Files that do not fit are sent as download links.",
      +  "type": "boolean"
      +}
    • removedInput schema / properties / includereceipts
      Removed value: -{
      -  "description": "Attach the receipts of expenses rebilled on this document's lines. Off by default; receipts that do not fit are sent as download links.",
      -  "type": "boolean"
      -}
    • removedInput schema / properties / receiptfileids
      Removed value: -{
      -  "description": "With includereceipts, send only these files: a rebilled receipt's file id (or the expense id for a legacy receipt), or the id of any business file when the sender may read Files. A file in a locked folder never goes. Omit for every rebilled receipt; an empty list sends none. At most 20.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "maxItems": 20,
      -  "type": "array"
      -}
  5. Changed2 schema fields changed
    • changedInput schema / properties / receiptfileids / description
      Previous value: -"With includereceipts, send only these receipts (file ids, or the expense id for a legacy receipt). Omit for all; an empty list sends none."New value: +"With includereceipts, send only these files: a rebilled receipt's file id (or the expense id for a legacy receipt), or the id of any business file when the sender may read Files. A file in a locked folder never goes. Omit for every rebilled receipt; an empty list sends none. At most 20."
    • addedInput schema / properties / receiptfileids / maxItems
      Added value: +20
  6. Changed1 schema field changed
    • addedInput schema / properties / message
      Added value: +{
      +  "description": "A note shown in the email above the document.",
      +  "type": "string"
      +}
  7. Changed2 schema fields changed
    • addedInput schema / properties / includereceipts
      Added value: +{
      +  "description": "Attach the receipts of expenses rebilled on this document's lines. Off by default; receipts that do not fit are sent as download links.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / receiptfileids
      Added value: +{
      +  "description": "With includereceipts, send only these receipts (file ids, or the expense id for a legacy receipt). Omit for all; an empty list sends none.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  8. Changed2 schema fields changed
    • addedInput schema / properties / email / description
      Added value: +"Override recipient address; defaults to the document contact's email on file."
    • addedInput schema / properties / id / description
      Added value: +"Id of the document (invoice, quote, credit note, etc.) to email (required)."
  9. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, openWorldHint=true and destructiveHint=false; the description adds the crucial real-world consequence that this actually transmits an email, plus how to read the reply ('destination is every address the email went to: say who received it from that, never a guess'). That is meaningful behavioral context beyond the structured fields.

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 the core action and the 'this actually sends' warning, with routing and id-sourcing following in priority order. Slightly dense and multi-clause, 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 an 8-parameter outbound-email tool with no output schema, the description covers the action, the alternatives, prerequisites, and how to interpret the response. Attachment and CC mechanics are left to the schema, which is acceptable given 100% coverage, though a note on send irreversibility could add more.

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 description coverage is 100%, so cc, email, message, sendcopy, attachpdf, attachrebilled and attachmentfileids are already fully documented in the schema. The description adds only the id-sourcing tip (via list_documents), which is useful but doesn't deepen meaning for the other seven parameters. Baseline 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?

States a specific verb and resource ('Email a document ... to its contact'), names the document types covered, and immediately distinguishes itself from mark_document_sent and record_document_payment. An agent can tell this apart from every sibling named without opening a schema.

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?

Explicitly says when NOT to use it (mark_document_sent to flag as sent without emailing, record_document_payment to log a payment) and gives a prerequisite workflow: find the id with list_documents by number or contact rather than asking the user. This is exactly the routing guidance the dimension rewards.

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