Skip to main content
Glama
stornoro

Storno CLI

by stornoro

spv_document_upload

Store the base64-encoded PDF from ANAF for an SPV document, rejecting HTML responses as SPV_NOT_A_DOCUMENT to avoid saving expired session pages.

Instructions

Step 3 of an SPV inbox sync: store the PDF the agent fetched from ANAF descarcare for a document. Pass the body base64-encoded. HTML answers (expired SPV session) are rejected with SPV_NOT_A_DOCUMENT.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uuidYesSPV document UUID (from spv_sync_agent_result documents[])
companyIdNoCompany UUID (overrides STORNO_COMPANY_ID env var)
bodyBase64YesResponse body, base64-encoded
statusCodeYesHTTP status ANAF returned for descarcare

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.28

TDQS

A4/5.0
Behavior3/5

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

No annotations are present, so the description carries the full burden. It discloses a write/store operation and an error condition (HTML responses rejected with SPV_NOT_A_DOCUMENT), but does not mention authentication, idempotency, or overwrite behavior, leaving some behavioral aspects unspecified.

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?

The description is three short sentences with no redundancy, front-loading the core purpose and then adding the encoding and error details efficiently.

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?

It gives enough workflow context (step 3 of sync, PDF from ANAF, encoding, rejection of HTML) to call the tool correctly. It could be more explicit about post-conditions or companyId default behavior, but those are partially covered by the schema.

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 coverage is 100%, so baseline is 3. The description adds no extra parameter meaning beyond the schema; bodyBase64 is already described as base64-encoded and statusCode/uuid/companyId are already explained in the schema.

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?

Description clearly states the action: store the PDF fetched from ANAF descarcare, identifies it as step 3 of an SPV inbox sync, and distinguishes it from sibling tools like spv_documents_download and spv_sync_agent_result by focusing on the upload/store step.

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?

Provides clear context: it is step 3 of an SPV inbox sync and should be used after the agent fetches the PDF. It does not explicitly name alternatives or when-not-to-use, but the step context is sufficient to select it over sibling download/result tools.

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