list_channels
Retrieve all connected sales channels from ShipBob's fulfillment platform to manage inventory and orders across multiple marketplaces.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_channels"
}
}Input 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 }; } } },