Skip to main content
Glama

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

Implementation Reference

  • 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")
  • 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"},

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