Skip to main content
Glama

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

Implementation Reference

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

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