Skip to main content
Glama

get_channel

Retrieve specific channel details from ShipBob's e-commerce fulfillment platform using the channel ID to manage fulfillment operations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
channelIdYesThe ID of the channel to retrieve

Implementation Reference

  • Handler function for the 'get_channel' MCP tool. It takes a channelId, fetches the channel data from the ShipBob API client, and returns formatted JSON or an error message.
    handler: async ({ channelId }) => { try { const channel = await shipbobClient.getChannel(channelId); return { content: [{ type: "text", text: JSON.stringify(channel, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error retrieving channel: ${error.message}` }], isError: true }; } }
  • Zod schema defining the input parameter 'channelId' for the 'get_channel' tool.
    schema: { channelId: z.string().describe("The ID of the channel to retrieve") },
  • src/server.js:57-57 (registration)
    Registers the channelTools array (including 'get_channel') with the MCP server via the registerTools utility function.
    registerTools(channelTools);
  • ShipBobClient helper method 'getChannel' that makes the API request to retrieve a specific channel by ID, used by the tool handler.
    async getChannel(id) { return this.request('GET', `/channels/${id}`); }

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