siigo_get_product
Retrieve product details from Siigo accounting software using a product ID to access specific item information.
Instructions
Get a specific product by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Product ID |
Implementation Reference
- src/index.ts:794-804 (handler)MCP tool handler that calls SiigoClient.getProduct with the product id from arguments and returns the JSON-formatted result as text content.private async handleGetProduct(args: any) { const result = await this.siigoClient.getProduct(args.id); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; }
- src/siigo-client.ts:66-68 (handler)Core logic for retrieving a specific product by ID, making an authenticated GET request to the Siigo API /v1/products/{id} endpoint.async getProduct(id: string): Promise<SiigoApiResponse<SiigoProduct>> { return this.makeRequest<SiigoProduct>('GET', `/v1/products/${id}`); }
- src/index.ts:212-218 (schema)Input schema validating the required 'id' parameter as a string for the siigo_get_product tool.inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Product ID' }, }, required: ['id'], },
- src/index.ts:209-219 (registration)Tool registration entry in the listTools response, defining name, description, and input schema for siigo_get_product.{ name: 'siigo_get_product', description: 'Get a specific product by ID', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Product ID' }, }, required: ['id'], }, },