Skip to main content
Glama
Fatture in Cloud MCP Server

Fatture in Cloud MCP Server

register_pending_received_documents

Destructive

Register pending received invoices as expense documents linked to pending IDs, preserving XML and attachments; preview with dry_run=true, then create with dry_run=false.

Instructions

Registra le fatture passive in attesa come documenti ricevuti (spese), collegandole al documento in attesa (pending_id) così Fatture in Cloud mantiene XML e allegati. Le rate coprono sempre il totale lordo; con paid=true vengono segnate pagate. dry_run è TRUE per default: mostra le spese che verrebbero create, poi rilancia con dry_run=false. Nel regime forfettario le fatture d'acquisto non hanno effetto fiscale (niente IVA detraibile né costi deducibili), ma si possono comunque archiviare.

Input Schema

NameRequiredDescriptionDefault
allNoRegistra tutti quelli della provenienza indicata
idsNoDocumenti in attesa da registrare
paidNoSegna le rate come pagate
sourceNoProvenienza: agyo = fatture elettroniche ricevute dallo SdI (default), mail, browser (caricate a mano), all = tutteagyo
dry_runNo
paid_dateNoData di pagamento; default la data già indicata nella rata, altrimenti la scadenza
categoriesNoCategoria per documento: { "<id>": "Utenze" }
company_idNoAzienda su cui operare. Default: FIC_COMPANY_ID o l'unica azienda del token
auto_categoryNoPer i documenti senza categoria usa la proposta di suggest_expense_categories (solo confidenza alta o media)
remove_pendingNoDopo la registrazione elimina il documento dalla lista in attesa (operazione non documentata dall'API: se rifiutata viene segnalata)
default_categoryNoCategoria per i documenti senza una categoria esplicita
payment_account_idNoConto di pagamento (lookup payment_accounts)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only supply destructiveHint=true; the description adds real behavioral context beyond that: the dry-run default acts as a safety gate, installments always cover the gross total, and under the forfettario regime purchases have no tax effect but can still be archived. It still doesn't describe the created-expense response shape, but the workflow disclosure is strong.

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?

Four dense sentences, front-loaded with purpose, then the dry-run rule, then the tax caveat. Nothing is repeated from the schema verbatim and no sentence is 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 12-parameter, no-output-schema, destructive mutation tool, the description covers purpose, safety workflow, and domain caveats well. A brief note on what the run returns or on prerequisites for linking pending documents would close the remaining gap.

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 already 92%, so the baseline is 3, but the description genuinely adds meaning for dry_run (preview vs. execute) and paid (marks installments settled) and notes that installments cover the gross amount. The remaining relationship between all/ids/source is left to 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?

The description opens with a precise verb+resource: registering pending passive invoices as received documents (expenses), linked via pending_id. It also states the concrete benefit (Fatture in Cloud preserves XML and attachments), which distinguishes this conversion path from create_received_document or list_pending_received_documents.

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 gives explicit operational guidance: dry_run is TRUE by default, preview first, then re-run with dry_run=false, and paid=true marks installments as paid. It does not explicitly say when to prefer this over create_received_document for invoices with no pending record, so it falls short of naming alternatives by name.

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