Skip to main content
Glama

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
NameRequiredDescriptionDefault
product_idYes

Implementation Reference

  • 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}")
  • 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,
  • 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"},

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dsfaccini/siigo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server