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-74 (handler)The main handler function decorated with @mcp.tool that implements the tool logic by calling the Siigo API endpoint for account groups.@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/server.py:110-110 (registration)Import statement in the server that loads the reference.py module, thereby registering the get_account_groups tool via its decorator in non-lazy mode.from siigo_mcp.tools import reference # noqa: E402, F401
- Discovery metadata in TOOL_INDEX providing the tool's name, category, and summary description for list_siigo_tools.{"name": "get_account_groups", "category": "reference", "summary": "Get all account groups"},
- src/siigo_mcp/tools/discovery.py:78-78 (registration)Dynamic tool function mapping in lazy loading mode for executing get_account_groups via call_siigo_tool."get_account_groups": reference.get_account_groups,