vaultix_get_order
Retrieve order details by ID to view transaction information, including expanded item data when needed.
Instructions
Retrieve an order by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Order ID | |
| expand | No | Expand items |
Implementation Reference
- src/tools/index.ts:254-265 (registration)Tool registration in the exported tools array, including name, description, and input schema for validation.{ name: 'vaultix_get_order', description: 'Retrieve an order by ID', inputSchema: { type: 'object', properties: { id: { type: 'string', description: 'Order ID' }, expand: { type: 'string', enum: ['items'], description: 'Expand items' }, }, required: ['id'], }, },
- src/tools/index.ts:535-536 (handler)Handler implementation within the handleToolCall switch statement. Retrieves the order by making a GET request to `/orders/{id}` with optional expand query parameter using the VaultixClient.case 'vaultix_get_order': return client.get(`/orders/${args.id}`, { expand: args.expand })
- src/index.ts:44-46 (registration)MCP server registration of all tools via ListToolsRequestHandler, providing the imported tools array which includes vaultix_get_order.server.setRequestHandler(ListToolsRequestSchema, async () => { return { tools } })
- src/index.ts:52-54 (handler)Tool call dispatcher in MCP server that invokes the specific handleToolCall function for the requested tool name.try { const result = await handleToolCall(client, name, args || {}) return {