rr_list_items
List inventory items with filtering options to manage stock levels, identify items needing review, and support purchase order decisions for e-commerce sellers.
Instructions
List inventory items
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vendor_id | No | ||
| search | No | ||
| needs_review | No | ||
| limit | No | ||
| offset | No |
Implementation Reference
- src/index.ts:86-100 (handler)The CallToolRequestSchema handler genericly dispatches tool calls, including 'rr_list_items', to the `callApi` helper.
server.setRequestHandler(CallToolRequestSchema, async (request) => { const { name, arguments: args } = request.params; try { const result = await callApi(name, (args as Record<string, unknown>) || {}); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; } catch (error) { const message = error instanceof Error ? error.message : String(error); return { content: [{ type: 'text', text: `Error: ${message}` }], isError: true, }; } }); - src/index.ts:31-31 (schema)Definition and input schema for the 'rr_list_items' tool.
{ name: 'rr_list_items', description: 'List inventory items', inputSchema: { type: 'object' as const, properties: { vendor_id: { type: 'string' }, search: { type: 'string' }, needs_review: { type: 'boolean' }, limit: { type: 'number' }, offset: { type: 'number' } } } },