Servidor MCPHerramientas disponibles
Leer organización
Lee el perfil, la configuración fiscal y la disponibilidad de la organización activa.
Herramienta MCP
get_organizationPropósito
- Usar cuando
- Necesitas contexto de la organización antes de otra operación.
- No usar cuando
- Necesitas cambiar la configuración de la organización.
- Permisos requeridos
- Efectos secundarios
- Ninguno
- Idempotencia
- Idempotente
Esquema de entrada
JSON Schema{ "type": "object", "properties": {}, "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false}Esquema de salida
JSON Schema{ "type": "object", "properties": { "data": { "type": "object", "properties": { "name": { "type": "string" }, "timeZone": { "type": "string" }, "fiscal": { "type": "object", "properties": { "legalName": { "$ref": "#/definitions/__schema0" }, "payrollEmployer": { "type": "object", "properties": { "registration": { "type": "string", "minLength": 1, "maxLength": 20, "pattern": "^[^|]+$" }, "curp": { "type": "string", "pattern": "^[A-Z][AEIOUX][A-Z]{2}[0-9]{2}(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])[MHX]([ABCMTZ]S|[BCJMOT]C|[CNPST]L|[GNQ]T|[GQS]R|C[MH]|[MY]N|[DH]G|NE|VZ|DF|SP)[BCDFGHJ-NP-TV-Z]{3}[0-9A-Z][0-9]$" } }, "additionalProperties": false }, "rfc": { "$ref": "#/definitions/__schema0" }, "taxSystem": { "$ref": "#/definitions/__schema0" }, "rfcPersonType": { "$ref": "#/definitions/__schema0" }, "website": { "$ref": "#/definitions/__schema0" }, "phone": { "$ref": "#/definitions/__schema0" }, "address": { "type": "object", "properties": { "street": { "$ref": "#/definitions/__schema0" }, "city": { "$ref": "#/definitions/__schema0" }, "state": { "$ref": "#/definitions/__schema0" }, "exterior": { "$ref": "#/definitions/__schema0" }, "interior": { "$ref": "#/definitions/__schema0" }, "neighborhood": { "$ref": "#/definitions/__schema0" }, "municipality": { "$ref": "#/definitions/__schema0" }, "postalCode": { "type": "string" } }, "required": [ "postalCode" ], "additionalProperties": false }, "borderStimulus": { "type": "object", "properties": { "region": { "enum": [ "north", "south" ] }, "rejectedAt": { "allOf": [ { "$ref": "#/definitions/__schema1" } ] } }, "required": [ "region" ], "additionalProperties": false } }, "additionalProperties": false }, "readiness": { "type": "object", "properties": { "production": { "type": "boolean" }, "csd": { "type": "boolean" }, "fiel": { "type": "boolean" } }, "required": [ "production", "csd", "fiel" ], "additionalProperties": false }, "certificates": { "type": "object", "properties": { "csd": { "type": "object", "properties": { "configured": { "type": "boolean" }, "expiresAt": { "$ref": "#/definitions/__schema0" }, "serialNumber": { "$ref": "#/definitions/__schema0" } }, "required": [ "configured" ], "additionalProperties": false }, "fiel": { "type": "object", "properties": { "configured": { "type": "boolean" }, "expiresAt": { "$ref": "#/definitions/__schema0" } }, "required": [ "configured" ], "additionalProperties": false } }, "required": [ "csd", "fiel" ], "additionalProperties": false }, "globalInvoice": { "type": "object", "properties": { "enabled": { "type": "boolean" }, "periodicity": { "$ref": "#/definitions/__schema0" }, "eligibilityStartAt": { "allOf": [ { "$ref": "#/definitions/__schema1" } ] }, "lastRunAt": { "allOf": [ { "$ref": "#/definitions/__schema1" } ] } }, "required": [ "enabled" ], "additionalProperties": false }, "automation": { "type": "object", "properties": { "cfdiSyncEnabled": { "type": "boolean" }, "declarationSyncEnabled": { "type": "boolean" } }, "required": [ "cfdiSyncEnabled", "declarationSyncEnabled" ], "additionalProperties": false }, "portal": { "type": "object", "properties": { "allowedCfdiUses": { "type": "array", "items": { "type": "string" } }, "receiptExpirationDays": { "type": "number" }, "receiptLocationRequired": { "type": "boolean" } }, "required": [ "receiptLocationRequired" ], "additionalProperties": false } }, "required": [ "name", "timeZone", "fiscal", "readiness", "certificates", "globalInvoice", "automation", "portal" ], "additionalProperties": false }, "error": { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "properties": { "code": { "enum": [ "validation_error", "unauthenticated", "forbidden", "payment_required", "not_found", "method_not_allowed", "conflict", "idempotency_conflict", "operation_in_progress", "recovery_required", "migration_required", "rate_limited", "provider_unavailable", "internal" ] }, "message": { "type": "string" }, "details": { "type": "object", "properties": { "document": { "type": "object", "properties": { "documentRef": { "type": "string", "pattern": "^(invoice|withholding|sales_receipt|declaration|tax_compliance_opinion|sales_receipt_refund):.+$" }, "editable": { "type": "boolean" } }, "required": [ "documentRef", "editable" ], "additionalProperties": false }, "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 }, "reason": { "type": "string" }, "balanceMinor": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "topUpUrl": { "type": "string" } }, "additionalProperties": false } }, "required": [ "code", "message" ], "additionalProperties": false } }, "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "definitions": { "__schema0": { "type": "string" }, "__schema1": { "type": "string", "format": "date-time" } }, "oneOf": [ { "required": [ "data" ] }, { "required": [ "error" ] } ]}Flujo relacionado
Consulta los flujos canónicos en Inicio rápidoHerramientas relacionadas
Leer parámetros fiscales
Lee los parámetros fiscales con que calcula Exac (tasas de IVA, tarifas de ISR, UMA, salarios mínimos, cuotas del IMSS, reglas de retención) y sus valores en una fecha, con la publicación que establece cada uno.
Actualizar organización
Actualiza una sección coherente de la configuración de la organización.