Skip to main content
Glama
stornoro

Storno CLI

Official
by stornoro

spv_document_upload

Stores the PDF fetched from ANAF descarcare as an SPV document during inbox sync. Upload the response body base64-encoded; HTML session-expired answers are rejected.

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

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.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and idempotentHint=false, so the mutation profile is known. The description adds genuinely new behavior: HTML responses from an expired SPV session are rejected with SPV_NOT_A_DOCUMENT, and the body must be base64. It omits what happens on a repeated uuid (relevant given idempotentHint=false) and whether an existing stored file is overwritten.

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 short sentences, no filler, with the workflow position, encoding requirement, and failure mode all front-loaded in that order.

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 four-parameter mutation with no output schema, the description covers workflow position, input encoding, and a key error case. It leaves the success response shape and overwrite/duplicate semantics unstated, which is a moderate but not severe gap.

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%, with each of the four parameters already documented, including that uuid comes from spv_sync_agent_result documents[]. The description's 'pass the body base64-encoded' largely restates the bodyBase64 schema text, adding little beyond the high-coverage schema baseline.

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: store the PDF fetched from ANAF descarcare for a given SPV document, and anchors it as step 3 of an SPV inbox sync. This is clearly distinguishable from siblings like spv_documents_download or spv_sync_agent_result.

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?

The 'step 3 of an SPV inbox sync' framing gives clear situational context and implies the prerequisite that the agent already fetched the descarcare response. It does not explicitly name alternative tools or a 'do not use when' case, so it falls short of a 5.

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