Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

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

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