list_stores
Retrieve all connected e-commerce stores and marketplaces from ShipStation to manage sales channels and order sources.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/store-tools.js:9-21 (handler)The handler function for the 'list_stores' tool. It fetches all stores using shipStationClient.getStores() and returns the JSON stringified result or an error message.handler: async () => { try { const stores = await shipStationClient.getStores(); return { content: [{ type: "text", text: JSON.stringify(stores, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; } }
- src/tools/store-tools.js:8-8 (schema)The schema for the 'list_stores' tool, which is empty as the tool requires no input parameters.schema: {},
- src/server.js:174-191 (registration)The registration block where the 'storeTools' array (containing 'list_stores') is spread and each tool is registered with the MCP server using server.tool().[ ...orderTools, ...shipmentTools, ...carrierTools, ...warehouseTools, ...productTools, ...customerTools, ...storeTools, ...webhookTools, ...fulfillmentTools ].forEach(tool => { server.tool( tool.name, tool.schema, tool.handler, { description: tool.description } ); });