get_product
Retrieve detailed product information including prices and taxes by providing the product ID from the Siigo electronic invoicing system.
Instructions
Get a product by ID.
Args: product_id: The product's GUID
Returns the full product details including prices and taxes.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes |
Implementation Reference
- src/siigo_mcp/tools/products.py:37-47 (handler)The core handler function for the 'get_product' tool. It is decorated with @mcp.tool and fetches the product details from the Siigo API using the provided product_id.@mcp.tool async def get_product(ctx: Context, product_id: str) -> dict[str, Any]: """Get a product by ID. Args: product_id: The product's GUID Returns the full product details including prices and taxes. """ return await get_client(ctx).get(f"/products/{product_id}")
- src/siigo_mcp/tools/discovery.py:87-87 (registration)Registers the 'get_product' tool by mapping the tool name to the actual function (products.get_product) in the lazy-loading tool functions dictionary."get_product": products.get_product,
- src/siigo_mcp/tools/discovery.py:33-33 (registration)Lists 'get_product' in the TOOL_INDEX for discovery purposes, including its category and summary description.{"name": "get_product", "category": "products", "summary": "Get a product by ID"},