get_product
Retrieve detailed product information including prices and taxes from the Siigo Colombian invoicing system by providing the product's unique identifier.
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 @mcp.tool decorated handler function that implements the get_product tool logic by retrieving a product by ID from the Siigo API.@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)Registration mapping the tool name 'get_product' to the products.get_product function in the lazy-loaded tool functions dictionary."get_product": products.get_product,
- Discovery schema entry for 'get_product' in TOOL_INDEX, used by list_siigo_tools to describe the tool's name, category, and summary.{"name": "get_product", "category": "products", "summary": "Get a product by ID"},