Skip to main content
Glama
ucetka-mcp

ucetka-mcp

Draft invoice e-mail in Mail.app

draft_invoice_email

Creates a review-ready email draft in Apple Mail with the invoice PDF attached, prefilled subject, and optional recipient so the user can review and send it; it never sends.

Instructions

Open a DRAFT e-mail in Apple Mail.app with the invoice PDF attached, subject 'Faktura — ', ready for the user to review and send. Never sends anything.

macOS only (drives Mail.app via osascript and brings it to the front); fails elsewhere or if the PDF file is missing. Not idempotent: each call creates another draft. Use it right after issue_invoice or issue_credit_note; afterwards, when the money arrives, use mark_paid. Returns a confirmation with the recipient.

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": {
      "number": "<number>"
    },
    "name": "draft_invoice_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoRecipient e-mail address. Omitted = the e-mail stored on the invoice's customer; if there is none, the draft has no recipient.
numberYesIssued invoice number from the ledger, e.g. '2610001'.
messageNoFull e-mail body to use instead of the default Czech text (which states the number, amount, due date, account, IBAN and variable symbol).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / message / description
      Previous value: -"Vlastní text e-mailu místo výchozího."New value: +"Full e-mail body to use instead of the default Czech text (which states the number, amount, due date, account, IBAN and variable symbol)."
    • changedInput schema / properties / number / description
      Previous value: -"Číslo faktury z evidence."New value: +"Issued invoice number from the ledger, e.g. '2610001'."
    • addedInput schema / properties / number / pattern
      Added value: +"^[A-Za-z0-9_-]{1,20}$"
    • changedInput schema / properties / to / description
      Previous value: -"Adresát. Default e-mail odběratele z adresáře."New value: +"Recipient e-mail address. Omitted = the e-mail stored on the invoice's customer; if there is none, the draft has no recipient."
  2. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: it never sends, it is macOS-only and drives Mail.app via osascript, it fails outside macOS or when the PDF is missing, and it brings the app to the front. It also re-emphasizes the non-idempotent behaviour that each call creates another draft, which matters given idempotentHint=false.

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 constraints, then sequencing, then return value – a clean information order with no filler. Slight redundancy in mentioning the return confirmation despite an output schema existing, but overall efficient.

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?

Covers the environment constraint, the failure mode (missing PDF), the side effect (a new draft per call), and the workflow position, which is everything needed to invoke it correctly. An output schema exists, so the description need not explain return values in detail.

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 the schema already documents 'to', 'number' and 'message', including defaults and the fallback recipient behavior. The description adds the subject composition and notes the default Czech body content, but gives no format or syntax detail beyond the schema. 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?

Specific verb and resource: 'Open a DRAFT e-mail in Apple Mail.app with the invoice PDF attached', plus the exact subject template. It is unmistakably distinct from siblings like issue_invoice and mark_paid, which are named in the sequencing sentence.

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 states when to use it ('right after issue_invoice or issue_credit_note') and names the follow-up alternative ('when the money arrives, use mark_paid'). The boundary against alternatives is clear without opening another schema.

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