Skip to main content
Glama

Fiscal y nomina MX — SAT, ISR, CFDI, IMSS, finiquito

fiscal_cfdi_validar

Read-only

Valida la coherencia de un CFDI 4.0 antes de emitirlo: relacion entre tipo de comprobante, uso, metodo/forma de pago y tipo de receptor, contra los catalogos del SAT. Determinista. NO timbra ni sustituye al PAC. Informativo, no asesoria fiscal.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
usoYesClave de Uso del CFDI (c_UsoCFDI), ej. G03, D01, CP01.
tipoYesTipo de comprobante (I,E,T,N,P).
metodoNoOpcional. Metodo de pago (PUE/PPD).
receptorNoOpcional. Tipo de persona del receptor.
forma_pagoNoOpcional. Clave de forma de pago (ej. 03, 99).

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already signal readOnlyHint=true; the description adds key behavioral traits: determinism, non-stamping, non-substitution of PAC, and informative nature. No contradiction with annotations.

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?

The description is two sentences, front-loaded with the core action and scope, followed by important caveats. Every sentence provides value without redundancy.

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?

The description covers purpose, usage, and behavioral traits well, but lacks information about the return value or output format. Since no output schema exists, the agent would benefit from knowing whether the tool returns a boolean, error messages, or details. This omission reduces completeness.

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 baseline is 3. The description summarizes the parameter relationship ('relacion entre tipo...') but does not add significant detail beyond the schema descriptions. The term 'coherencia' provides context but not per-parameter clarification.

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 clearly states the verb 'Valida' and the resource 'CFDI 4.0', and specifies the validation scope: 'relacion entre tipo de comprobante, uso, metodo/forma de pago y tipo de receptor, contra los catalogos del SAT'. It distinguishes from siblings by mentioning determinism and what it does not do (timbra, sustituye PAC).

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?

The description explicitly states when to use ('antes de emitirlo') and what not to do ('NO timbra ni sustituye al PAC', 'Informativo, no asesoria fiscal'). It does not explicitly name alternative tools but provides enough context for appropriate usage.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.2/5.0
Disambiguation5/5

Each tool targets a distinct fiscal or labor calculation (aguinaldo, CFDI validation, IMSS, ISR estimation, etc.) with no overlap. The descriptions clearly differentiate their purposes.

Naming Consistency5/5

All tools follow a consistent 'fiscal_<noun>' pattern, using snake_case and clear, domain-specific nouns (e.g., fiscal_aguinaldo, fiscal_isr_retencion). No deviation.

Tool Count5/5

10 tools cover the essential calculations for Mexican fiscal and payroll management (aguinaldo, finiquito, IMSS, ISR, CFDI, etc.) without being excessive or insufficient.

Completeness4/5

The set covers major tax and labor calculations but lacks a few common tools like PTU (profit sharing) or IVA (VAT) handling. However, it is fairly comprehensive for its stated scope.

Resources