bos_order_shipping_info
Retrieve shipping information for an order by order ID. Includes tracking status and carrier details.
Instructions
Get shipping information for an order
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes |
Implementation Reference
- src/tools/bos.ts:175-175 (handler)The handler for bos_order_shipping_info. It calls client.get() with the path /mcp/orders/{order_id}/shipping to fetch shipping information for a given order.
handler: async (args, client) => client.get(`/mcp/orders/${args.order_id}/shipping`), - src/tools/bos.ts:174-174 (schema)The schema for bos_order_shipping_info: accepts a required order_id string.
schema: { order_id: { type: 'string' } }, - src/tools/bos.ts:172-176 (registration)The full tool definition entry for bos_order_shipping_info, registered as part of the orderTools array.
name: 'bos_order_shipping_info', description: 'Get shipping information for an order', schema: { order_id: { type: 'string' } }, handler: async (args, client) => client.get(`/mcp/orders/${args.order_id}/shipping`), }, - src/client/index.ts:90-92 (helper)The BosApiClient.get() method that the handler delegates to, making a GET request to the specified path with optional query params.
async get<T>(path: string, params?: Record<string, any>): Promise<T> { return this.request<T>('GET', path, undefined, params); } - src/index.ts:55-76 (registration)All tools (including bos_order_shipping_info via orderTools spread) are registered on the MCP server with Zod schema conversion and error handling.
for (const tool of allTools) { const zodSchema = toZodSchema(tool.schema); server.tool( tool.name, tool.description, zodSchema.shape, async (args: any) => { try { const result = await tool.handler(args, client); return { content: [{ type: 'text' as const, text: JSON.stringify(result, null, 2) }], }; } catch (error: any) { return { content: [{ type: 'text' as const, text: JSON.stringify({ error: error.message || 'Unknown error' }) }], isError: true, }; } } ); }