Skip to main content
Glama
bookkeeping-mcp

bookkeeping-mcp

by mubasher1111

Create an invoice

create_invoice
Idempotent

Generates a print-ready A4 invoice as an HTML file, calculating totals and sales tax and saving it to a chosen path or the default Invoices folder.

Instructions

Creates a professional, print-ready A4 invoice as an HTML file (open it in a browser and choose Print > Save as PDF). It becomes a "Sales Tax Invoice" when tax is charged and the seller has an NTN/STRN. Saves to output_path, or to the Invoices folder in the user's home folder by default. Returns the file path and totals.

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": "<invoice>"
    },
    "name": "create_invoice"
  }
}

Input Schema

NameRequiredDescriptionDefault
invoiceYes
overwriteNoReplace the file if it exists (default false)
urdu_wordsNoShow the total in Urdu words for PKR (default true)
output_pathNoWhere to save the .html file (optional)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly=false, idempotent=true, destructive=false, non-open-world); the description adds the significant extra fact that output goes to output_path or a default Invoices folder in the home directory, and that the return value is file path plus totals. It does not say what happens to an existing file at that path, which is the one gap for a write tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences: what is produced, the conditional title rule, then destination and return value. No filler and the most decision-relevant facts come first.

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?

With a deeply nested schema and no output schema, the description correctly closes the loop by stating it returns the file path and totals rather than full invoice data. The remaining omission is what happens when the target file already exists.

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 75%, so the schema already documents most nested fields (date formats, taxRate override, discount, currency, number example). The description only adds semantics for output_path and the default destination, saying nothing about overwrite or urdu_words, which is the baseline for partially-covered schemas.

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 (creates an invoice) plus the concrete artifact produced: a print-ready A4 HTML file. The conditional naming rule ("Sales Tax Invoice" when tax is charged and seller has an NTN/STRN) further pins down exactly what output to expect.

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

Usage Guidelines3/5

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

The description implies when to use it (you want a rendered invoice file, with a useful Print > Save as PDF tip), but never contrasts with siblings like calculate_invoice or next_invoice_number. An agent must infer that number generation and total calculation happen elsewhere.

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