Skip to main content
Glama

list_fulfillment_centers

Retrieve a list of fulfillment centers from the ShipBob API to manage and track inventory locations, enabling efficient order fulfillment and logistics planning.

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": {}, "type": "object" }

Implementation Reference

  • The handler function that implements the core logic of the 'list_fulfillment_centers' tool. It fetches the list of fulfillment centers using the ShipBob client and returns them as a JSON-formatted text response, or an error message if the call fails.
    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 }; } }
  • The input schema for the tool, defined as an empty object since the tool requires no input parameters.
    schema: {},
  • src/server.js:56-56 (registration)
    Registers the 'locationTools' array (containing the 'list_fulfillment_centers' tool) with the MCP server via the registerTools helper function.
    registerTools(locationTools);
  • The complete tool object definition for 'list_fulfillment_centers' within the exported locationTools array, serving as the primary registration point for the tool's metadata, schema, and handler.
    { name: "list_fulfillment_centers", description: "List all fulfillment centers in ShipBob network", schema: {}, 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 }; } } },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mattcoatsworth/shipbob-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server