get_users
Retrieve all users from a Siigo account to assign them as sellers or responsible parties for electronic invoicing and business management.
Instructions
Get all users in the Siigo account.
Returns a list of users who can be assigned as sellers or responsible parties.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/siigo_mcp/tools/reference.py:59-66 (handler)The handler function for the 'get_users' tool. It is decorated with @mcp.tool for automatic registration and fetches the list of users from the Siigo API endpoint '/users' using the get_client utility.@mcp.tool async def get_users(ctx: Context) -> list[dict[str, Any]]: """Get all users in the Siigo account. Returns a list of users who can be assigned as sellers or responsible parties. """ return await get_client(ctx).get("/users")
- src/siigo_mcp/server.py:110-110 (registration)Import statement in the main server file that loads the reference.py module, thereby registering the get_users tool (and other reference tools) via their @mcp.tool decorators when not operating in lazy tools mode.from siigo_mcp.tools import reference # noqa: E402, F401
- src/siigo_mcp/tools/discovery.py:77-77 (registration)Registration of the get_users tool in the lazy-loading tool functions dictionary, mapping the tool name to the imported reference.get_users function."get_users": reference.get_users,
- Schema/discovery entry in TOOL_INDEX providing metadata (name, category, summary) for the get_users tool, used by list_siigo_tools.{"name": "get_users", "category": "reference", "summary": "Get all users in the account"},