list_channels
Retrieve all connected sales channels from ShipBob's fulfillment platform to manage inventory and orders across multiple marketplaces.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/channel-tools.js:9-24 (handler)Handler function that lists all sales channels by calling shipbobClient.getChannels() and returns formatted JSON or 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 }; } }
- src/server.js:57-57 (registration)Registers the channelTools array (including list_channels tool) to the MCP server.registerTools(channelTools);
- src/tools/channel-tools.js:8-8 (schema)Input schema for list_channels tool (empty, no parameters required).schema: {},
- src/tools/channel-tools.js:5-25 (registration)Tool definition and export as part of channelTools array, which is later registered.{ name: "list_channels", description: "List all sales channels in your ShipBob account", schema: {}, 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 }; } } },