Skip to main content
Glama
stornoro

Storno CLI

Official
by stornoro

expiries_renew

Renew an expiry item by creating the next record with the same kind, label, vehicle, provider and reminder settings, then close the old one as history.

Instructions

Renew an expiry item: creates the next one (same kind, label, vehicle, provider and reminder setting) and closes the old one, kept as history (renewedFrom). Without expiresAt the usual validity of the kind is added to the old expiry (RCA / rovinietă / CASCO / certificate 12 months, ITP / tahograf 24, trusă medicală 36), counted from today when it had already expired. Returns item (the new one) and previous.

Input Schema

NameRequiredDescriptionDefault
uuidYesExpiry item UUID to renew
notesNo
numberNoNew policy / document number
providerNoDefault: the old provider
companyIdNoCompany UUID (overrides STORNO_COMPANY_ID env var)
expiresAtNoNew expiry date, YYYY-MM-DD
validFromNoDefault: the old expiry date (or today when already expired)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.48

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already flag a non-read-only, non-destructive, non-idempotent write. The description adds real value beyond them: the old item is closed but preserved as history via renewedFrom, which fields are carried over, and exactly how expiresAt is defaulted per kind. It does not warn about duplicate renewals, though idempotentHint=false already signals that.

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-loads the action and its two-part effect, then the date defaulting, then the return shape. Dense but every clause carries information; only the long parenthetical duration list is a candidate for trimming.

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 write tool with no output schema, the description covers the side effects on both old and new records, the date-arithmetic fallback, and the returned keys ('item' and 'previous'). Nothing an agent needs in order to call it correctly 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?

Schema coverage is 86%, so most parameters are documented already; the description still adds the derivation rule for expiresAt (kind-specific validity, counted from today if already expired) and confirms provider defaults to the old provider, which the schema states. That is meaningful semantics beyond the schema text.

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 ('Renew an expiry item') and immediately explains the compound behavior — creating the next item and closing the old one as history. That behavior distinguishes it from expiries_update and expiries_create without needing to name them explicitly.

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?

There is implied guidance about when the default validity kicks in ('Without expiresAt...'), but nothing says when to renew versus editing an item via expiries_update or creating a new one via expiries_create. The agent must infer the selection rule.

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