list_fulfillment_centers
Retrieve a list of ShipBob fulfillment centers to view available locations for storing inventory and processing orders.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/location-tools.js:9-24 (handler)The handler function that implements the list_fulfillment_centers tool logic. It fetches all fulfillment centers using the ShipBob API client and returns a formatted JSON response or an error message.handler: async () => { try { const centers = await shipbobClient.getFulfillmentCenters(); return { content: [{ type: "text", text: JSON.stringify(centers, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error listing fulfillment centers: ${error.message}` }], isError: true }; } }
- src/server.js:56-56 (registration)Registers the locationTools array, which includes the list_fulfillment_centers tool, with the MCP server via the registerTools helper function.registerTools(locationTools);
- src/server.js:23-32 (registration)Helper function used to register all tools from a tools array with the MCP server by calling server.tool for each.const registerTools = (toolsArray) => { toolsArray.forEach(tool => { server.tool( tool.name, tool.schema, tool.handler, { description: tool.description } ); }); };
- src/tools/location-tools.js:8-8 (schema)Empty schema indicating no input parameters required for the tool.schema: {},