---
title: "Leer resumen fiscal"
description: "Consulta totales fiscales provenientes de declaraciones analizadas."
language: es-MX
canonical_url: "https://exac.mx/docs/mcp/tools/get_tax_summary"
md_url: "https://exac.mx/docs/mcp/tools/get_tax_summary.md"
---

# Leer resumen fiscal

Consulta totales fiscales provenientes de declaraciones analizadas.

Herramienta: `get_tax_summary`

## Propósito

Consulta totales fiscales provenientes de declaraciones analizadas.

### Úsala cuando

Necesitas totales fiscales de declaraciones del SAT.

### No la uses cuando

Necesitas estimaciones a partir de actividad CFDI.

| Detalle | Valor |
| --- | --- |
| Permisos | sat:read |
| Efectos secundarios | Ninguno |
| Idempotencia | Idempotente |

## Esquema de entrada

```json
{
  "type": "object",
  "properties": {
    "fiscalYear": {
      "type": "integer",
      "minimum": 2000,
      "maximum": 2100,
      "description": "Four-digit fiscal year"
    },
    "period": {
      "description": "Optional month number from 1 to 12",
      "allOf": [
        {
          "$ref": "#/definitions/__schema0"
        }
      ]
    },
    "contributorLimit": {
      "description": "Top CFDI contributors in the informational context",
      "allOf": [
        {
          "$ref": "#/definitions/__schema1"
        }
      ]
    }
  },
  "required": [
    "fiscalYear"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "definitions": {
    "__schema0": {
      "type": "integer",
      "minimum": 1,
      "maximum": 12
    },
    "__schema1": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    }
  }
}
```

## Esquema de salida

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string",
          "const": "sat_declarations"
        },
        "currency": {
          "type": "string",
          "const": "MXN"
        },
        "fiscalYear": {
          "type": "number"
        },
        "selectedPeriod": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "null"
            }
          ]
        },
        "declarationCoverage": {
          "type": "string",
          "enum": [
            "none",
            "partial",
            "complete"
          ]
        },
        "filedPeriods": {
          "type": "array",
          "items": {
            "type": "number"
          }
        },
        "missingPeriods": {
          "type": "array",
          "items": {
            "type": "number"
          }
        },
        "totals": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "declaredTaxTotal": {
                  "type": "number"
                },
                "paidTaxTotal": {
                  "type": "number"
                },
                "pendingTaxTotal": {
                  "type": "number"
                },
                "breakdown": {
                  "$ref": "#/definitions/__schema0"
                }
              },
              "required": [
                "declaredTaxTotal",
                "paidTaxTotal",
                "pendingTaxTotal",
                "breakdown"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        },
        "periods": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "period": {
                "type": "number"
              },
              "filingCount": {
                "type": "number"
              },
              "declaredTaxTotal": {
                "type": "number"
              },
              "paidTaxTotal": {
                "type": "number"
              },
              "pendingTaxTotal": {
                "type": "number"
              },
              "paymentStatus": {
                "type": "string",
                "enum": [
                  "no_obligation",
                  "pending",
                  "partially_paid",
                  "paid"
                ]
              },
              "breakdown": {
                "$ref": "#/definitions/__schema0"
              },
              "withholdingDetails": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "amount": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "name",
                    "amount"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "period",
              "filingCount",
              "declaredTaxTotal",
              "paidTaxTotal",
              "pendingTaxTotal",
              "paymentStatus",
              "breakdown",
              "withholdingDetails"
            ],
            "additionalProperties": false
          }
        },
        "cfdiContext": {
          "anyOf": [
            {
              "type": "object",
              "properties": {
                "usedForTaxAmounts": {
                  "type": "boolean",
                  "const": false
                },
                "contributors": {
                  "type": "object",
                  "properties": {
                    "source": {
                      "type": "string",
                      "const": "cfdi_activity"
                    },
                    "income": {
                      "type": "array",
                      "items": {
                        "$ref": "#/definitions/__schema1"
                      }
                    },
                    "expenses": {
                      "type": "array",
                      "items": {
                        "$ref": "#/definitions/__schema1"
                      }
                    },
                    "payroll": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "$ref": "#/definitions/__schema2"
                          },
                          "amount": {
                            "$ref": "#/definitions/__schema3"
                          },
                          "isOther": {
                            "$ref": "#/definitions/__schema4"
                          },
                          "direction": {
                            "type": "string",
                            "enum": [
                              "paid",
                              "received"
                            ]
                          }
                        },
                        "required": [
                          "name",
                          "amount",
                          "isOther",
                          "direction"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "source",
                    "income",
                    "expenses",
                    "payroll"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "usedForTaxAmounts",
                "contributors"
              ],
              "additionalProperties": false
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "source",
        "currency",
        "fiscalYear",
        "selectedPeriod",
        "declarationCoverage",
        "filedPeriods",
        "missingPeriods",
        "totals",
        "periods",
        "cfdiContext"
      ],
      "additionalProperties": false
    },
    "error": {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "enum": [
            "validation_error",
            "unauthenticated",
            "forbidden",
            "not_found",
            "method_not_allowed",
            "conflict",
            "idempotency_conflict",
            "operation_in_progress",
            "recovery_required",
            "rate_limited",
            "provider_unavailable",
            "internal"
          ]
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "object",
          "properties": {
            "issues": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "path": {
                    "type": "array",
                    "items": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        }
                      ]
                    }
                  },
                  "message": {
                    "type": "string"
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "path",
                  "message"
                ],
                "additionalProperties": false
              }
            },
            "retryable": {
              "type": "boolean"
            },
            "retryAfterSeconds": {
              "type": "integer",
              "exclusiveMinimum": 0,
              "maximum": 9007199254740991
            }
          },
          "additionalProperties": false
        }
      },
      "required": [
        "code",
        "message"
      ],
      "additionalProperties": false
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false,
  "definitions": {
    "__schema0": {
      "type": "object",
      "properties": {
        "isr": {
          "type": "number"
        },
        "iva": {
          "type": "number"
        },
        "withholdings": {
          "type": "number"
        },
        "unclassified": {
          "type": "number"
        }
      },
      "required": [
        "isr",
        "iva",
        "withholdings",
        "unclassified"
      ],
      "additionalProperties": false
    },
    "__schema1": {
      "type": "object",
      "properties": {
        "name": {
          "$ref": "#/definitions/__schema2"
        },
        "amount": {
          "$ref": "#/definitions/__schema3"
        },
        "isOther": {
          "$ref": "#/definitions/__schema4"
        }
      },
      "required": [
        "name",
        "amount",
        "isOther"
      ],
      "additionalProperties": false
    },
    "__schema2": {
      "type": "string"
    },
    "__schema3": {
      "type": "number"
    },
    "__schema4": {
      "type": "boolean"
    }
  },
  "oneOf": [
    {
      "required": [
        "data"
      ]
    },
    {
      "required": [
        "error"
      ]
    }
  ]
}
```

## Herramientas relacionadas

- [`sync_sat_data`](/docs/mcp/tools/sync_sat_data.md) — **Programar sincronización SAT**: Programa una sincronización autorizada de datos fiscales del SAT, incluida la descarga masiva de CFDI.

- [`get_cfdi_summary`](/docs/mcp/tools/get_cfdi_summary.md) — **Leer resumen CFDI**: Consulta agregados financieros de documentos CFDI por periodo.

## Flujo relacionado

[Consulta los flujos canónicos en la introducción](/docs.md)

## Operaciones REST equivalentes

- [`GET /v1/reports/taxes`](/docs/api/tax-reports/reports/get-tax-report.md)

Documentación completa: https://exac.mx/docs.md
Índice para agentes: https://exac.mx/docs/llms.txt
