Skip to main content
Glama
odoo-verifactu-mcp

odoo-verifactu-mcp

One invoice at the AEAT

invoice_aeat_detail
Read-onlyIdempotent

Retrieve complete AEAT compliance details for an Odoo invoice, including Veri*Factu status, QR/CSV, hash, submission history, errors, substitutions, and SII responses.

Instructions

Everything about one invoice and the AEAT: Veri*Factu state, QR URL, CSV, chain index or hash, the full submission history with each error, the invoice it substitutes, and its SII state and responses.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "invoice": "<invoice>"
    },
    "name": "invoice_aeat_detail"
  }
}

Input Schema

NameRequiredDescriptionDefault
companyNoCompany id or part of its name. All companies the user can see by default.
invoiceYesInvoice number (e.g. INV/2026/00012), vendor reference, or numeric id.

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 declare this a safe, idempotent, read-only, non-destructive lookup, so the safety profile is covered. The description adds real behavioral context — that it aggregates Veri*Factu state, submission history with per-error detail, the substituted invoice, and SII responses. It does not say what happens when the invoice is not found or when the invoice number is ambiguous across companies.

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?

A single front-loaded sentence with no filler; the scope ('one invoice') comes first and the returned facets follow as a compact list. The enumeration is long but every item is substantive return-content information, not padding.

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?

With no output schema, the description carries the burden of describing return values and does so thoroughly across both the Veri*Factu and SII surfaces. The remaining gap is resolution behavior: with an optional company filter and invoice numbers that can repeat across companies, an agent is not told how ambiguity is resolved or what an empty result means.

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%: both parameters are documented in the schema, including accepted invoice formats ('INV/2026/00012, vendor reference, or numeric id') and the default company scope. The description adds no parameter-level meaning beyond that, so the 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?

The description names the resource precisely (one invoice, 'Everything about one invoice and the AEAT') and enumerates the concrete facets returned — Veri*Factu state, QR URL, CSV, chain index/hash, submission history, SII state. That implicitly separates it from list-oriented siblings like verifactu_invoices and sii_invoices, though it never explicitly contrasts them.

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 by the phrase 'Everything about one invoice' — an agent can infer this is the drill-down call once a specific invoice is identified. There is no explicit when-to-use statement, no prerequisite (e.g. 'resolve the invoice id first'), and no named alternative such as the sibling list tools.

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