Skip to main content
Glama
stornoro

Storno CLI

Official
by stornoro

dosare_registry_proposals

Read-onlyIdempotent

Matches contracts from ANAF's registry extract to existing dosare by state, identifying which ones lack a dosar and need import.

Instructions

Contracts listed in ANAF's registry extract ("Registrul contractelor de locatiune", the answer to the C168 SPV request — request it with spv_request_prepare type C168) with their state after all filings (active / expired without termination / terminated), each matched to the existing dosare. Reads the newest extract archived in the SPV inbox, or the PDF at pdfPath. Then dosare_registry_import for the ones without a dosar.

Input Schema

NameRequiredDescriptionDefault
pdfPathNoLocal PDF of the extract, when it was downloaded by hand
companyIdNoCompany UUID (overrides STORNO_COMPANY_ID env var)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.37

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish readOnly, idempotent, non-destructive, closed-world behavior, so the safety profile is covered. The description adds useful context: it reads the newest extract from the SPV inbox by default or the PDF at pdfPath, and only proposes rather than creating dosare. It does not say how many proposals it returns or what happens to already-matched contracts.

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 description is dense but every clause supports a decision: source, prerequisite, output semantics, and next step. The nested parentheticals and quotes make it harder to parse than necessary, but there is no filler.

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 two-optional-parameter read tool with annotations covering its safety profile, the description is complete enough to call it. Without an output schema, it would ideally say more about the returned proposal structure, but it conveys the essential matched-to-dosare result.

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

Parameters3/5

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

Schema description coverage is 100%, so both pdfPath and companyId are documented in the schema. The description reinforces pdfPath as the manual-download alternative, but adds no syntax or precedence detail beyond that. Baseline 3 is appropriate given the schema does the heavy lifting.

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 resource (contracts from ANAF's C168 registry extract) and what it produces (each contract's state after all filings, matched to existing dosare). It also distinguishes itself from the sibling dosare_registry_import by positioning itself as the step that runs first.

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 explains the upstream prerequisite (request the extract via spv_request_prepare type C168) and explicitly routes records without a dosar to dosare_registry_import. The chain is clear, though there is no explicit statement of when not to use it, for example if an extract is already processed.

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