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
| Name | Required | Description | Default |
|---|---|---|---|
| credit_note_id | Yes |
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}")
- src/siigo_mcp/tools/discovery.py:103-106 (registration)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"},