Skip to main content
Glama
Storno CLI

Storno CLI

Official
by stornoro

document_series_update

Idempotent

Update an existing document series by changing its current number or active status; deactivate series at fiscal year end or adjust numbering while avoiding duplicate document numbers.

Instructions

Update an existing document series. Only "currentNumber" and "active" can be changed — prefix and type are immutable after creation. Use active=false to deactivate a series (e.g., at end of fiscal year). Changing currentNumber affects the next document number, use with extreme caution to avoid duplicates.

Input Schema

NameRequiredDescriptionDefault
uuidYesDocument series UUID to update
activeNoSet series active or inactive (inactive = not available for new documents)
companyIdNoCompany UUID override (uses active company if not set)
currentNumberNoUpdate the last used number (CAUTION: setting lower than max existing number may create duplicates)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.17

TDQS

A4.6/5.0
Behavior5/5

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

Annotations cover safety hints (non-read-only, idempotent, non-destructive), and the description adds what annotations cannot say: which fields are immutable after creation, what deactivation actually means operationally, and that changing currentNumber shifts the next issued document number with a duplicate risk. That is meaningful consequence-level context beyond the structured metadata.

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 sentences, front-loaded with purpose, then allowed mutations, then the operational warning. No filler, no restatement of the tool name.

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 4-param mutation tool with no output schema, the definition covers scope, mutable vs immutable fields, and the main failure mode. It does not say what the call returns or whether any permission/role is required, which is a minor gap given annotations already signal it is a non-destructive, idempotent write.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds semantics the schema lacks: prefix and type are immutable (a constraint statement, not a field doc), and it frames currentNumber as affecting the *next* document number rather than just the stored counter. uuid and companyId are left to the schema, which is fine at full coverage.

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?

States a specific verb and resource ('Update an existing document series') and immediately bounds the mutable surface, which distinguishes it from document_series_create, document_series_delete and document_series_set_default without opening any schema.

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?

Gives a concrete usage scenario ('Use active=false to deactivate a series, e.g., at end of fiscal year') and a caution condition for currentNumber. It does not explicitly name sibling alternatives (e.g., create/delete for other lifecycle operations), so it stops short of full routing guidance.

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

Deploy Server

Other Tools