Skip to main content
Glama

get_credit_note

Retrieve detailed credit note information by providing its unique ID to access full transaction records in the Siigo electronic invoicing system.

Instructions

Get a credit note by ID.

Args: credit_note_id: The credit note's GUID

Returns the full credit note details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
credit_note_idYes

Implementation Reference

  • The core handler function for the 'get_credit_note' tool, decorated with @mcp.tool to register it with MCP. It fetches the credit note details from the Siigo API using the provided ID.
    @mcp.tool async def get_credit_note(ctx: Context, credit_note_id: str) -> dict[str, Any]: """Get a credit note by ID. Args: credit_note_id: The credit note's GUID Returns the full credit note details. """ return await get_client(ctx).get(f"/credit-notes/{credit_note_id}")
  • Registration of the 'get_credit_note' tool function in the lazy-loading tool map for dynamic execution via meta-tools.
    "list_credit_notes": credit_notes.list_credit_notes, "get_credit_note": credit_notes.get_credit_note, "create_credit_note": credit_notes.create_credit_note, "get_credit_note_pdf": credit_notes.get_credit_note_pdf,
  • Tool discovery metadata including name, category, and summary used by list_siigo_tools.
    {"name": "get_credit_note", "category": "credit_notes", "summary": "Get a credit note by ID"},

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