Skip to main content
Glama

Invoices: Numbering update

invoice_numbering_update
Destructive

Change how ONE numbering series numbers its next documents. series: invoice (Рахунки), credit_note (Кредит-ноти), quote (Пропозиції), proforma (Проформи), purchase (Вхідні), subscription (Підписки, SUB-). Either a preset — continuous «Наскрізна» (INV-171), yearly «Щороку з 1» (INV-2026-0001), monthly «Щомісяця з 01» (INV-2026-11-01) — or the person's own fields: format (tokens {PREFIX} {SUFFIX} {YYYY} {YY} {MM} {DD} {N} {N:k}; old {YEAR} {MONTH} {NUMBER} work too), reset_period, padding (digits of the counter), next_value, prefix. «зроби нумерацію щомісяця з 01» → series=invoice, preset=monthly. The confirmation shows the next number now and after the change with real dates; documents already issued keep their numbers. On an invoices server without restarts the call is refused with a plain sentence (say it as is, nothing changed). A company with several series of one kind (per legal entity) → ask which, pass series_id from invoice_numbering. Needs the right to edit the company. Runs propose→confirm. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.

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": {
      "series": "<series>"
    },
    "name": "invoice_numbering_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNo
prefixNo
presetNo
seriesYes
paddingNo
series_idNo
next_valueNo
reset_periodNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations it discloses that documents already issued keep their numbers, that the confirmation previews the next number before and after with real dates, that calls are refused on a server without restarts, and that nothing is written until confirm_action. The propose→confirm protocol with status='confirmation_required', action_id and plan_token is exactly the behavioral context an agent needs and annotations cannot carry.

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?

Front-loaded with the scope and the preset/format choice, and nearly every clause carries operational information. It is dense and telegraphic with mixed-language fragments, so the confirmation paragraph at the end could be tighter, but little is genuinely wasted.

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?

For a destructive, openWorld=false mutation with no output schema, the definition covers permissions, the refusal case, the confirmation flow, rollback expectations for already-issued documents, and the preview content. An agent has everything needed to call it and interpret the response.

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?

With 0% schema coverage the description carries the burden well: it documents the format token grammar ({PREFIX} {SUFFIX} {YYYY} {YY} {MM} {DD} {N} {N:k}, plus legacy {YEAR} {MONTH} {NUMBER}), the three presets with rendered examples, and padding as 'digits of the counter'. It lists next_value, prefix and reset_period by name but does not explain their semantics or interaction with format/preset.

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 first sentence states a specific verb and resource scoped precisely: 'Change how ONE numbering series numbers its next documents.' It enumerates the series values and distinguishes the tool from the read-only sibling by pointing to invoice_numbering for series_id lookup.

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

Usage Guidelines5/5

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

Gives explicit when-to-use routing ('«зроби нумерацію щомісяця з 01» → series=invoice, preset=monthly'), a disambiguation rule for multiple series of one kind (ask which, pass series_id from invoice_numbering), a prerequisite (right to edit the company), and the mandatory propose→confirm handoff.

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