Skip to main content
Glama

get_fulfillment_center

Retrieve detailed information about a specific fulfillment center using its ID, enabling efficient management of e-commerce fulfillment operations via ShipBob API.

Input Schema

NameRequiredDescriptionDefault
centerIdYesThe ID of the fulfillment center to retrieve

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "centerId": { "description": "The ID of the fulfillment center to retrieve", "type": "string" } }, "required": [ "centerId" ], "type": "object" }

Implementation Reference

  • Handler function that retrieves a specific fulfillment center using the ShipBob client and returns its details as JSON or an error message.
    handler: async ({ centerId }) => { try { const center = await shipbobClient.getFulfillmentCenter(centerId); return { content: [{ type: "text", text: JSON.stringify(center, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error retrieving fulfillment center: ${error.message}` }], isError: true }; } }
  • Zod schema defining the input parameter 'centerId' for the get_fulfillment_center tool.
    schema: { centerId: z.string().describe("The ID of the fulfillment center to retrieve") },
  • src/server.js:56-58 (registration)
    Registration of locationTools (including get_fulfillment_center) to the MCP server via registerTools function call.
    registerTools(locationTools); registerTools(channelTools); registerTools(reportingTools);
  • ShipBobClient helper method that makes the API request to fetch a specific fulfillment center by ID.
    async getFulfillmentCenter(id) { return this.request('GET', `/fulfillment_centers/${id}`); }
  • Utility function that registers each tool in the array to the MCP server using server.tool.
    const registerTools = (toolsArray) => { toolsArray.forEach(tool => { server.tool( tool.name, tool.schema, tool.handler, { description: tool.description } ); }); };

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