Skip to main content
Glama
mcp-server-billy

mcp-server-billy

E-mail approved invoice (Billy)

billy_send_invoice

Email an approved invoice to one contact person of its customer via Billy, verifying approval and contact ownership before sending.

Instructions

E-mail an approved invoice to one contact person of its customer, through Billy (as "send" in Billy). Reads the invoice and the contact person first, and refuses unless the invoice is approved and the contact person belongs to the invoice's customer and has an e-mail address. Billy sends to one contact person per call. It is not sent as an e-invoice. Off unless writes are enabled (BILLY_ENABLE_WRITES, or the gateway host policy enableWrites).

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": {
      "invoiceId": "<invoiceId>",
      "contactPersonId": "<contactPersonId>",
      "emailSubject": "<emailSubject>",
      "emailBody": "<emailBody>"
    },
    "name": "billy_send_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
emailBodyYesText of the e-mail.
invoiceIdYesThe approved invoice, from list_invoices.
emailSubjectYesSubject of the e-mail.
contactPersonIdYesA contact person of the invoice's customer, from get_contact.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.0

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnly=false, destructive=false, idempotent=false, openWorld=true), the description discloses that it first reads the invoice and contact, that it refuses on unapproved invoices or mismatched/emailless contacts, that it sends to exactly one recipient, that the message is a plain e-mail rather than an e-invoice, and that it is disabled unless writes are enabled via BILLY_ENABLE_WRITES or host policy. These are real operational facts an agent cannot derive from the annotations.

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?

The description is dense but front-loaded: purpose first, then preconditions/refusal behavior, then scope limits, then the feature-flag gate. The parenthetical '(as "send" in Billy)' is slightly redundant phrasing but earns its place by mapping to the vendor's own terminology; otherwise there is little waste.

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 four-required-parameter mutation with no output schema, the description covers preconditions, recipient cardinality, message format, and enablement gating, which is most of what an agent needs. It does not say what a successful call returns (e.g., sent status or the updated invoice) or whether delivery is immediate versus queued, leaving a small gap.

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%, and each parameter already carries a description plus pattern/length constraints, so the schema does the heavy lifting. The description adds only the constraint that contactPersonId must be a contact of the invoice's customer with an e-mail address — useful but largely already implied by the schema's 'A contact person of the invoice's customer, from get_contact'. 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 names a specific verb and resource ('E-mail an approved invoice to one contact person of its customer') and pins the underlying Billy operation ('as "send" in Billy'). That distinguishes it from billy_get_invoice, billy_approve_invoice, and the list/read siblings without needing to open any 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 states clear preconditions: the invoice must be approved, the contact person must belong to the invoice's customer and have an e-mail address, and only one contact per call. It also notes the operation is gated behind writes being enabled. What's missing is an explicit alternative (e.g., a path for e-invoices or multi-recipient sends) — it only says 'It is not sent as an e-invoice' without naming what to use instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.