get_account_groups
Retrieve account groups for categorizing products or customers in Siigo's electronic invoicing system.
Instructions
Get all account groups/classifications.
Returns a list of account groups for categorizing products or customers.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/siigo_mcp/tools/reference.py:68-75 (handler)The core handler function decorated with @mcp.tool. It fetches account groups from the Siigo API endpoint '/account-groups' using the context client.@mcp.tool async def get_account_groups(ctx: Context) -> list[dict[str, Any]]: """Get all account groups/classifications. Returns a list of account groups for categorizing products or customers. """ return await get_client(ctx).get("/account-groups")
- src/siigo_mcp/tools/discovery.py:78-78 (registration)Registration of the tool name to its handler function in the lazy-loading tool map used by dynamic execution tools."get_account_groups": reference.get_account_groups,
- Tool discovery index entry providing metadata (name, category, summary) for the get_account_groups tool.{"name": "get_account_groups", "category": "reference", "summary": "Get all account groups"},
- src/siigo_mcp/tools/discovery.py:63-112 (registration)Full function that lazily loads and maps all tools, including get_account_groups, for dynamic access.def _get_tool_functions() -> dict[str, Any]: """Lazily import and map all tool functions.""" global _tool_functions if _tool_functions is not None: return _tool_functions from siigo_mcp.tools import reference, customers, products, invoices, credit_notes, journals _tool_functions = { # Reference "get_taxes": reference.get_taxes, "get_payment_types": reference.get_payment_types, "get_document_types": reference.get_document_types, "get_warehouses": reference.get_warehouses, "get_users": reference.get_users, "get_account_groups": reference.get_account_groups, # Customers "list_customers": customers.list_customers, "get_customer": customers.get_customer, "create_customer": customers.create_customer, "update_customer": customers.update_customer, "delete_customer": customers.delete_customer, # Products "list_products": products.list_products, "get_product": products.get_product, "create_product": products.create_product, "update_product": products.update_product, "delete_product": products.delete_product, # Invoices "list_invoices": invoices.list_invoices, "get_invoice": invoices.get_invoice, "create_invoice": invoices.create_invoice, "update_invoice": invoices.update_invoice, "delete_invoice": invoices.delete_invoice, "stamp_invoice": invoices.stamp_invoice, "get_stamp_errors": invoices.get_stamp_errors, "get_invoice_pdf": invoices.get_invoice_pdf, "send_invoice_email": invoices.send_invoice_email, "annul_invoice": invoices.annul_invoice, # Credit notes "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, # Journals "list_journals": journals.list_journals, "get_journal": journals.get_journal, "create_journal": journals.create_journal, } return _tool_functions