Skip to main content
Glama
odoo-verifactu-mcp

odoo-verifactu-mcp

Veri*Factu errors grouped

verifactu_errors
Read-onlyIdempotent

Groups AEAT rejection and flagging errors for invoices in a date range, showing each distinct error with its invoice count and up to 10 affected invoice numbers.

Instructions

Why the AEAT rejected or flagged invoices in the period: each distinct error message with how many invoices have it and up to 10 invoice numbers. Covers rejected, accepted_with_errors and invalid.

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

Input Schema

NameRequiredDescriptionDefault
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.
date_fromNoFirst day (YYYY-MM-DD). Defaults to the start of the current quarter.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, open-world, non-destructive, so the safety profile is covered. The description adds genuinely useful behavior: errors are grouped to distinct messages, counts are provided, and invoice numbers are capped at 10 per error (truncation disclosure). It does not say whether grouping spans companies or how results are ordered.

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 dense sentence, front-loaded with the 'why' question and followed by the exact payload shape; the 10-invoice cap clause earns its place. Slightly compressed into one run-on sentence, but no 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?

With no output schema, the description correctly carries the burden of describing return values (error message, count, sample invoice numbers) and the included statuses. It is nearly complete for a read-only reporting tool; only ordering and cross-company aggregation behavior are unstated.

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% and all three parameters are documented in the schema, including defaults for the date range and company scoping, so the baseline applies. The description only echoes the period concept via 'in the period' and adds no format or filter semantics beyond 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?

States a specific verb and resource: it explains why AEAT rejected or flagged invoices in a period, and enumerates the exact return shape (distinct error message, invoice count, up to 10 invoice numbers). This is clearly distinct from the sibling invoice listing tools.

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 implied by the aggregate-by-error framing (diagnose error patterns rather than inspect one invoice), and the period defaulting is mentioned. However, it never explicitly says when to prefer this over verifactu_invoices or invoice_aeat_detail, nor any exclusions.

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