Skip to main content
Glama

Calcular cuotas IMSS e Infonavit

calcular_imss

Cuotas IMSS + Infonavit sobre el salario base de cotizacion (SBC) diario. Consume saldo (servicio NOMINA; tarifa vigente en consultar_precios). Riesgos de Trabajo solo si pasas prima_riesgo (la que el IMSS asigno a la empresa). Declara version y deslinde; no calcula fuera de la vigencia cargada.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
diasNo
sbc_diarioYes
prima_riesgoNo
fecha_calculoNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
diasNo
totalNo
detalleNo
conceptoNo
servicioNo
sbc_diarioNo
uma_diariaNo
base_calculoNo
cuota_obreraNo
nota_riesgosNo
operacion_idNo
cuota_patronalNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "description": "fiscal_imss — 1 muestra(s), 12 campos.",
      +  "properties": {
      +    "base_calculo": {
      +      "anyOf": [
      +        {},
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Base Calculo"
      +    },
      +    "concepto": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Concepto"
      +    },
      +    "cuota_obrera": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Cuota Obrera"
      +    },
      +    "cuota_patronal": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Cuota Patronal"
      +    },
      +    "detalle": {
      +      "anyOf": [
      +        {},
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Detalle"
      +    },
      +    "dias": {
      +      "anyOf": [
      +        {},
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Dias"
      +    },
      +    "nota_riesgos": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Nota Riesgos"
      +    },
      +    "operacion_id": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Operacion Id"
      +    },
      +    "sbc_diario": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Sbc Diario"
      +    },
      +    "servicio": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Servicio"
      +    },
      +    "total": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Total"
      +    },
      +    "uma_diaria": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Uma Diaria"
      +    }
      +  },
      +  "title": "RFiscalImss",
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations only indicate non-read-only, non-idempotent, non-destructive, but the description adds crucial behavioral context: it consumes saldo (a financial side effect), it only works within the loaded validity period, and it declares version and disclaimer. These are significant disclosures that go beyond annotations and help the agent understand side effects and constraints.

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?

The description is concise, with three sentences that carry essential information. It front-loads the core purpose and then adds behavioral notes. No filler or redundancy. The only slight issue is the density of jargon (e.g., 'SBC', 'NOMINA', 'deslinde') which may require domain knowledge, but it is efficient.

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?

Given the complexity (4 parameters, output schema present), the description covers key behavioral constraints (validity period, balance consumption) but omits details about the 'dias' and 'fecha_calculo' parameters. It also does not mention error conditions or output format specifics, though an output schema exists. The description is adequate but leaves gaps for an agent unfamiliar with IMSS terminology.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate. It explains sbc_diario (daily SBC) and prima_riesgo (optional for Riesgos de Trabajo), but it does not clarify the meaning of 'dias' or 'fecha_calculo'. With four parameters and half undocumented, the description falls short of providing sufficient parameter semantics.

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 states a specific verb (calculate) and resource (IMSS and Infonavit quotas) based on daily SBC. It distinguishes itself from sibling calculation tools like calcular_isr and calcular_laboral by naming the exact subject matter. The mention of 'Riesgos de Trabajo' as an optional component adds further specificity.

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?

The description provides contextual guidance: it consumes balance (saldo) and references consultar_precios for current rates, implying it's a paid service. However, it does not explicitly state when to use this tool versus alternatives like calcular_isr or calcular_laboral, nor does it give exclusion criteria. The condition for using prima_riesgo is clear, but the overall routing guidance is implicit.

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.

Resources