Skip to main content
Glama

get_stamp_errors

Identify DIAN rejection errors for Colombian electronic invoices to resolve validation failures and understand stamping issues.

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
NameRequiredDescriptionDefault
invoice_idYes

Implementation Reference

  • The main handler function for the 'get_stamp_errors' tool. It is decorated with @mcp.tool and fetches DIAN rejection errors from the Siigo API endpoint /invoices/{invoice_id}/stamp/errors.
    @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")
  • Registers the 'get_stamp_errors' tool by mapping the name to the function imported from the invoices module in the lazy tool functions dictionary.
    "get_stamp_errors": invoices.get_stamp_errors,
  • Tool discovery index entry that lists 'get_stamp_errors' with its category and summary description.
    {"name": "get_stamp_errors", "category": "invoices", "summary": "Get DIAN rejection errors"},

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dsfaccini/siigo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server