get_stamp_errors
Check DIAN validation errors for rejected invoices in Siigo to identify why electronic invoicing failed.
Instructions
Get DIAN rejection errors for an invoice.
Args: invoice_id: The invoice's GUID
Returns any errors from DIAN if the stamp was rejected. Use this to understand why an invoice failed DIAN validation.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice_id | Yes |
Implementation Reference
- src/siigo_mcp/tools/invoices.py:196-206 (handler)The core handler function decorated with @mcp.tool that implements the tool logic by querying the Siigo API for DIAN stamp errors on the given invoice.@mcp.tool async def get_stamp_errors(ctx: Context, invoice_id: str) -> dict[str, Any]: """Get DIAN rejection errors for an invoice. Args: invoice_id: The invoice's GUID Returns any errors from DIAN if the stamp was rejected. Use this to understand why an invoice failed DIAN validation. """ return await get_client(ctx).get(f"/invoices/{invoice_id}/stamp/errors")
- src/siigo_mcp/tools/discovery.py:98-98 (registration)Registers the get_stamp_errors tool in the lazy-loading tool functions dictionary, mapping the name to the imported function from invoices module."get_stamp_errors": invoices.get_stamp_errors,
- Provides metadata including name, category, and summary description for the tool in the discovery index used by list_siigo_tools.{"name": "get_stamp_errors", "category": "invoices", "summary": "Get DIAN rejection errors"},