Skip to main content
Glama
odoo-verifactu-mcp

odoo-verifactu-mcp

SII invoices

sii_invoices
Read-onlyIdempotent

Retrieve issued and received invoices by SII state—pending, accepted, accepted_with_errors, modified_not_sent, or cancelled—with AEAT CSV and last error; filter by company, partner, and date.

Instructions

Issued and received invoices with their SII (Suministro Inmediato de Información) state: pending, accepted, accepted_with_errors, modified_not_sent (OCA: changed after sending) or cancelled, with the AEAT CSV and the last error.

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": "sii_invoices"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
stateNo
companyNoCompany id or part of its name. All companies the user can see by default.
date_toNoLast day (YYYY-MM-DD). Defaults to the end of the current quarter.
partnerNoCustomer or vendor name or VAT number (partial match).
date_fromNoFirst day (YYYY-MM-DD). Defaults to the start of the current quarter.
directionNoissued = customer invoices, received = vendor bills. Both by default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), so the bar is lower. The description adds useful result content (AEAT CSV, last error) and decodes the 'modified_not_sent' state as an OCA post-send change, but says nothing about pagination behavior, ordering, or that openWorldHint implies live AEAT-backed data.

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?

One dense, front-loaded sentence with no wasted framing; the parenthetical on modified_not_sent earns its place by disambiguating a non-obvious state. The full enumeration of states is slightly list-heavy but still readable.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 7-parameter, no-required, read-only listing tool with no output schema, the definition covers what a result contains but omits result volume and paging (the limit parameter's 500 cap is never surfaced) and any indication that data may come from an external AEAT source.

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 71%, and the description compensates where the schema is thinnest: the state enum has no per-value description in the schema, and the definition supplies meanings for at least two values. It does not add anything for direction, company, partner, or the date-range defaults, which the schema already documents.

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 resource (issued and received invoices with their SII state) and the fields returned (state, AEAT CSV, last error). The SII qualifier implicitly separates it from verifactu_invoices, but no sibling is named, so it stops short of explicit differentiation.

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?

Usage is only implied: the tool is scoped to SII-registered invoices and takes state/direction filters, which hints at reconciliation or monitoring workflows. There is no explicit when-to-use, no exclusions, and no pointer to invoice_aeat_detail or verifactu_errors for drill-down cases.

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