get_journal
Retrieve detailed journal entries by ID from Siigo's electronic invoicing system to access transaction records and line items for accounting purposes.
Instructions
Get a journal entry by ID.
Args: journal_id: The journal's GUID
Returns the full journal entry details including all line items.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| journal_id | Yes |
Implementation Reference
- src/siigo_mcp/tools/journals.py:37-47 (handler)The core handler function decorated with @mcp.tool that implements the get_journal tool logic by calling the Siigo API to retrieve a journal entry by its ID.@mcp.tool async def get_journal(ctx: Context, journal_id: str) -> dict[str, Any]: """Get a journal entry by ID. Args: journal_id: The journal's GUID Returns the full journal entry details including all line items. """ return await get_client(ctx).get(f"/journals/{journal_id}")
- src/siigo_mcp/tools/discovery.py:107-110 (registration)Registration of the get_journal tool function in the dynamic tool functions dictionary, mapping the name to journals.get_journal for lazy loading.# Journals "list_journals": journals.list_journals, "get_journal": journals.get_journal, "create_journal": journals.create_journal,
- Tool discovery entry providing the name, category, and summary description for the get_journal tool.{"name": "get_journal", "category": "journals", "summary": "Get a journal entry by ID"},