get_customer
Retrieve detailed customer information including contacts and addresses from Siigo's electronic invoicing system by providing a customer ID.
Instructions
Get a customer by ID.
Args: customer_id: The customer's GUID
Returns the full customer details including contacts and addresses.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customer_id | Yes |
Implementation Reference
- src/siigo_mcp/tools/customers.py:37-47 (handler)The core handler function for the 'get_customer' tool, decorated with @mcp.tool. It fetches customer details from the Siigo API using the provided customer_id.@mcp.tool async def get_customer(ctx: Context, customer_id: str) -> dict[str, Any]: """Get a customer by ID. Args: customer_id: The customer's GUID Returns the full customer details including contacts and addresses. """ return await get_client(ctx).get(f"/customers/{customer_id}")
- Tool metadata in TOOL_INDEX, providing name, category, and summary for discovery in lazy loading mode.{"name": "get_customer", "category": "customers", "summary": "Get a customer by ID"},
- src/siigo_mcp/tools/discovery.py:81-81 (registration)Registration mapping the 'get_customer' tool name to its handler function from the customers module in the dynamic tool loader."get_customer": customers.get_customer,