Skip to main content
Glama
stornoro

Storno CLI

Official
by stornoro

dosare_registry_import

Import registry contracts into rental-contract dosare, converting terminated ones to closed files and flagging expired contracts for attention.

Instructions

Create rental-contract dosare for registry contracts (pass the contract objects from dosare_registry_proposals, usually those with existingDosarId null). Terminated contracts become closed dosare; expired ones without a termination filing are flagged for attention (file C168 încetare or an addendum).

Input Schema

NameRequiredDescriptionDefault
companyIdNoCompany UUID (overrides STORNO_COMPANY_ID env var)
contractsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.37

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare non-readonly, non-idempotent, non-destructive, and the description adds real business behavior on top: terminated contracts become closed dosare and expired ones without a termination filing are flagged for attention. It does not discuss what happens to contracts that already have an existingDosarId or how partial failures surface on a non-idempotent bulk write, so the disclosure is strong but not complete.

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?

Three sentences, front-loaded with the action and the input source, then the downstream business rules. Dense but every clause carries domain information; the Romanian filing codes (C168 încetare) are legitimate domain vocabulary rather than padding.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a non-idempotent bulk mutation with no output schema, the description says nothing about the response (created dosar ids vs. per-contract errors), retry safety, or maximum batch size. The core workflow is covered, but an agent cannot predict what it gets back or how to handle a re-run.

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 only 50% and the undocumented parameter is the required one (contracts, an untyped object array with no schema description); the description compensates by naming the exact source of those objects and the existingDosarId null heuristic. companyId is left to the schema, which is fine given it already documents the env-var override.

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?

"Create rental-contract dosare for registry contracts" gives a specific verb and a narrowly scoped resource, and it explicitly names dosare_registry_proposals as the input source, which separates it from the generic dosare_create sibling.

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?

It tells the agent exactly what to pass (contract objects from dosare_registry_proposals, typically the ones with existingDosarId null) and what to do for flagged cases (file C168 încetare or an addendum), which effectively routes to dosare_c168_create. It never states when not to use this versus dosare_create for manual dosar creation, so the bar for a 5 isn't met.

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