Skip to main content
Glama
mcp-server-acube

mcp-server-acube

by nick-preda

list_invoices

Search and list SDI invoices by sender, recipient, VAT, invoice number, document type, direction, status, date range, or series; use compact fields by default and request extra fields as needed.

Instructions

[SANDBOX] List/search SDI invoices. Filters: sender/recipient name or VAT, invoice number, document type, direction, status, date ranges. Use invoice_series to filter by exact series suffix (e.g. 'Servizi' matches only '1/Servizi', not '100/CI'). Default compact view returns key fields only. Add specific extra fields if needed. Use fields:['*'] only when full FatturaPA payload is required.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number
fieldsNoFields to return (dot-notation supported, e.g. 'sender.business_name'). Default compact view: uuid, created_at, document_type, marking, notice, invoice_number, invoice_date, total_amount, currency, sender/recipient names+VAT, notifications. Prefer adding specific fields over ['*']. Use ['*'] only when full FatturaPA payload is truly needed.
signedNoFilter by signature status
markingNoStatus: waiting, quarantena, sent, invoice-error, received, rejected, delivered, not-delivered
directionNooutgoing or incoming
downloadedNoFilter by download status
sender_vatNoSender P.IVA
sender_nameNoSender business name (partial match)
created_at_toNoCreated at <= (ISO date)
document_typeNoFatturaPA type: TD01, TD04, TD05, TD06, TD07...
order_by_dateNoSort by invoice date
recipient_vatNoRecipient P.IVA
invoice_numberNoInvoice number (partial match via API)
invoice_seriesNoPost-filter: invoice series suffix (e.g. 'Servizi' matches '1/Servizi', '2/Servizi'). Exact match on the part after the last '/'
items_per_pageNoItems per page (default 10, max 30)
recipient_nameNoRecipient business name (partial match)
created_at_fromNoCreated at >= (ISO date)
invoice_date_toNoInvoice date <= (ISO date)
order_by_numberNoSort by invoice number
invoice_date_fromNoInvoice date >= (ISO date)
sender_fiscal_codeNoSender codice fiscale
recipient_fiscal_codeNoRecipient codice fiscale

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A3.7/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it delivers the non-obvious behaviors: the [SANDBOX] environment tag, the compact default projection, and the explicit warning that invoice_series is a post-filter (which implies filtering happens after retrieval, not in the query). Gaps remain around result totals/pagination counts and any performance cost of broad queries, but the key runtime traits are disclosed.

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?

Front-loaded with purpose, then filters, then the two guardrails (series matching and fields projection). It is compact for a 22-parameter tool, with only minor redundancy where the fields guidance duplicates the schema's own description.

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 22-parameter list tool with no output schema and no annotations, the definition covers the essentials: what is queried, the default narrow projection, and how to widen it. It stops short of describing return ordering/pagination metadata or error conditions, but the parameters themselves are fully self-documenting in 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 description coverage is 100%, so the schema already documents all 22 parameters, including the enum values and the dot-notation fields syntax. The description's notes on invoice_series semantics and the ['*'] tradeoff largely restate what the schema already says, so it adds little meaning beyond structured data — baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('List/search SDI invoices') and enumerates the filter dimensions (sender/recipient name or VAT, invoice number, document type, direction, status, date ranges). It is immediately clear this is a filtered read/list operation, though it never names a sibling such as get_invoice or count_rejected_invoices to draw the boundary for record retrieval or counting.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides actionable in-tool guidance: use invoice_series for exact suffix matching, prefer explicit fields, and reserve fields:['*'] for when the full FatturaPA payload is truly needed. What it lacks is tool-selection guidance — no statement about when to use this versus get_invoice for a single record or count_rejected_invoices for aggregates, so usage across the sibling set is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.