Skip to main content
Glama

list_channels

Retrieve a list of sales channels integrated with ShipBob's e-commerce fulfillment system to manage and streamline multi-channel operations effectively.

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 executes the list_channels tool logic: fetches channels via shipbobClient.getChannels(), formats as JSON text response, or returns error.
    handler: async () => { try { const channels = await shipbobClient.getChannels(); return { content: [{ type: "text", text: JSON.stringify(channels, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: `Error listing channels: ${error.message}` }], isError: true }; }
  • The schema definition for list_channels tool, empty object indicating no input parameters required.
    schema: {},
  • src/server.js:57-57 (registration)
    Registers the channelTools array (containing list_channels tool) to the MCP server using the registerTools utility function.
    registerTools(channelTools);
  • Helper method on ShipBobClient that performs the API request to retrieve the list of channels from '/channels' endpoint.
    async getChannels() { return this.request('GET', '/channels'); }
  • src/tools/index.js:8-8 (registration)
    Re-exports the channelTools array (including list_channels) for centralized import.
    export { channelTools } from './channel-tools.js';

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