Skip to main content
Glama
Billin MCP Server

Billin MCP Server

by AnderRahe

Create Expense

create_expense

Record a tax-classified business expense with supplier details and line items; provide subtotals and tax keys to auto-calculate tax amounts and assign a numbering series.

Instructions

Record a business expense with tax classification. Provide subtotal and tax key — tax amount is auto-calculated. Requires serialCode (e.g. 'GASTO') for numbering series.

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": {
      "identifier": "<identifier>",
      "issuedDate": "<issuedDate>",
      "lines": "<lines>",
      "contact": "<contact>"
    },
    "name": "create_expense"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYesExpense line items — taxAmount and totalAmount are auto-calculated
contactYesSupplier contact
serieIdNoSerie UUID. Takes priority over serialCode if both provided.
commentsNoNotes
currencyNoCurrency (default: EUR)EUR
identifierYesSupplier invoice number / expense identifier
issuedDateYesIssue date YYYY-MM-DD
serialCodeNoSerial code for expense numbering series (e.g. 'GASTO'). Either serialCode or serieId is required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations at all, the description must carry the full behavioral load, and it partially does: it discloses that tax amount is auto-calculated (so the agent need not compute it) and that a numbering series is mandatory. It says nothing about side effects — whether the supplier contact is created on the fly, what permissions are needed, whether the call is idempotent, or what is returned.

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 short sentences, front-loaded with the operation, then the key computational shortcut, then the mandatory numbering requirement. Nothing is redundant with the schema and no sentence is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter mutation tool with nested objects and no output schema, the description covers the headline behavior but leaves the agent guessing about return values (an identifier? a created contact?) and about the supplier/address requirements that the nested schema imposes. It is adequate to start a call but not complete for confident invocation.

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 all 8 parameters, including the serieId-over-serialCode priority. The description adds genuine meaning about the subtotal/taxKey relationship (taxAmount and totalAmount are derived), but does not touch the required contact or issuedDate semantics, which is the expected baseline-3 tradeoff.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Record a business expense') plus the distinctive trait of tax classification, which separates it from create_invoice/create_quote at a high level. It never names or contrasts a sibling explicitly, so differentiation is inferred from the 'expense' wording rather than stated.

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?

Usage is implied by the resource name rather than stated: nothing says when to choose create_expense over create_invoice or create_receipt, and no preconditions (e.g. contact must exist first) are given. The one prerequisite it does surface — needing serialCode or serieId for numbering — is useful but is really a parameter constraint, not a usage rule.

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