Skip to main content
Glama

list_fulfillment_centers

Retrieve a list of ShipBob fulfillment centers to view available locations for storing inventory and processing orders.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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 }
        );
      });
    };
  • Empty schema indicating no input parameters required for the tool.
    schema: {},

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