get_journal
Retrieve a specific journal entry by its ID to access complete details including all line items from Siigo's electronic invoicing system.
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 handler function that implements the get_journal tool. It retrieves a specific journal entry by its ID using the Siigo API client.@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 in the lazy-loading tool functions dictionary, mapping the tool name to the imported journals.get_journal function.# Journals "list_journals": journals.list_journals, "get_journal": journals.get_journal, "create_journal": journals.create_journal,
- Metadata entry for the get_journal tool in the TOOL_INDEX, providing name, category, and summary for discovery purposes.{"name": "get_journal", "category": "journals", "summary": "Get a journal entry by ID"},