Skip to main content
Glama
bookkeeping-mcp

bookkeeping-mcp

by mubasher1111

Next invoice number

next_invoice_number
Read-onlyIdempotent

Suggests the next invoice number based on the last used number, preserving prefix and zero padding so invoice sequences stay consistent.

Instructions

Suggests the next invoice number, keeping prefix and zero padding: INV-2026-0042 → INV-2026-0043.

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": {
      "previous": "<previous>"
    },
    "name": "next_invoice_number"
  }
}

Input Schema

NameRequiredDescriptionDefault
previousYesThe last invoice number used

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so safety is covered. The description adds real value beyond that by clarifying it only 'suggests' a number and that prefix and zero padding are preserved, but it omits edge behavior such as malformed input or padding overflow.

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?

One sentence plus an inline example, front-loaded with the action and followed immediately by the format contract. No filler or redundant restatement of the title.

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 simple one-parameter, read-only tool with no output schema, the description supplies the essential contract: format preservation and suggestion-only semantics. Only the behavior on anomalous inputs (non-conforming formats, padding rollover) is left unspecified.

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 coverage is 100%, so the single 'previous' parameter is already documented as 'The last invoice number used'. The example (INV-2026-0042) implicitly illustrates the expected input format, which is a modest addition over the schema but not substantial new semantics.

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('Suggests') and resource ('next invoice number'), plus a concrete before/after example that removes ambiguity about what output looks like. It does not explicitly distinguish itself from siblings like create_invoice, but the purpose is unambiguous on its own.

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 only implied: the name and 'next invoice number' wording suggest it is called before creating an invoice, but the description never says when to use it, when not to, or which sibling to pair it with. No explicit exclusions or alternatives are given.

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