MCP server for invoice creation and LaTeX rendering with PDF generation
Server has 9 well-named tools with complete input schemas and descriptions. Naming follows verb_noun convention (list_, get_, create_, update_, finalize_, delete_, render_, rebuild_). Descriptions are present and actionable (avg ~80 chars). However, output schemas are not documented, LLMs cannot predict response structure for chaining. Error handling lacks recovery guidance. Parameter descriptions are adequate but some lack format constraints (e.g., date fields state YYYY-MM-DD but no validation hints). No tool annotations (readOnlyHint, destructiveHint) despite clear risk levels. Pagination is well-designed (limit, offset, include_total_count). Composite objects (supplier, customer) lack nested field descriptions.
Create a new invoice with validation and automatic invoice number generation
Delete an invoice and its associated PDF
Finalize an invoice (change status from draft to final)
Load an invoice by id with consistent error handling
List invoice summaries from index.json with filters and pagination
Rebuild the invoice index from all invoice files
Render an invoice to PDF using LaTeX and pdflatex
Update an existing invoice (draft status only)
Output schemas not documented. LLMs cannot predict response structure (fields, types, nested objects) for downstream tool chaining. E.g., list_invoices returns what fields? Does get_invoice return supplier/customer objects or IDs?
No tool annotations (readOnlyHint, destructiveHint, idempotentHint). Tools are marked with Risk levels (READ_ONLY, WRITE, DESTRUCTIVE) in metadata but not exposed to LLM via schema. LLMs cannot infer safety/idempotency without explicit hints.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 57 | <=2025-11-25 | v2 |
Update the payment status of an invoice
Composite object parameters (supplier, customer) lack nested field descriptions. LLMs must infer which fields are required/optional within the object. E.g., is 'name' required in supplier? Is 'tax_id' optional?
Error handling lacks recovery guidance. No documented error responses or actionable next steps. E.g., if create_invoice fails due to invalid date, what should the LLM do? Retry? Ask user? Call a different tool?
delete_invoice and rebuild_index lack confirmation/dry-run patterns. Destructive operations should support a confirmation step to prevent accidental data loss when agents make mistakes.