Skip to main content
Glama

Invoices: Numbering

invoice_numbering
Read-only

How this company's invoice numbers are made: each numbering series (sales invoices, credit notes, quotes, proformas, purchase bills), its format («{PREFIX}-{YEAR}-{MONTH}-{NUMBER}»), the next number, and the rules — the counter runs on through the year and months (it does NOT restart each month), {MONTH}/{YEAR} are the month the number is given, a cancelled invoice keeps its number, and numbers made by automations with their own template (SUB-…) are a separate stream. Answers «чому номер 9», «як рахується нумерація». Read-only; series are set in the cabinet.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "invoice_numbering"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds real behavioral substance beyond that: the counter does not restart monthly, cancelled invoices retain their number, and automation-generated numbers (SUB-…) form a separate stream — all of which shape how an agent should interpret the answer. The 'read-only; series are set in the cabinet' clause reinforces where mutation is possible, though it partly restates the annotation.

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?

The purpose is front-loaded in the first clause, and the subsequent rules are dense but each adds a genuine constraint (year-rolling counter, cancellation retention, SUB- stream). The parenthetical example questions and the trailing 'read-only; series are set in the cabinet' add context, though the Cyrillic query examples are the least essential element for an English-speaking agent.

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?

With no parameters, no output schema and a purely read-only annotation set, the description carries the full burden of saying what the caller gets back — and it does: the list of series, the format template, the next number, and the governing rules. Nothing an agent needs in order to call and interpret this tool is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so there is no parameter semantics to explain; the baseline for a 0-param tool applies. The empty schema (additionalProperties: false) is fully consistent with the description's claim that this is a pure informational lookup with no filtering options.

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?

The description opens with a specific statement of what the tool exposes — how invoice numbers are generated, per-series, with format, next number and the rules that produce them. It is clearly distinct from the sibling invoice_list/invoice_get tools, which return invoice records rather than the numbering scheme itself, and the example questions («чому номер 9») pin down the exact informational need it serves.

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

Usage Guidelines4/5

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

Usage context is explicit through the quoted example questions ('why is number 9', 'how is numbering counted'), which tell an agent exactly which queries this tool answers. It also notes 'series are set in the cabinet,' signaling that this tool cannot change numbering. It stops short of naming a sibling alternative for actually fetching invoice data, so a 4 rather than a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources