list_stores
Retrieve a list of connected stores from the ShipStation API to manage and organize store data efficiently using the MCP server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {},
"type": "object"
}
Implementation Reference
- src/tools/store-tools.js:9-21 (handler)The handler function that implements the core logic of the 'list_stores' tool. It retrieves all connected stores via the ShipStation API client and returns the JSON-formatted list or an error.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 input schema for the 'list_stores' tool, which is empty as no parameters are required.schema: {},
- src/server.js:174-191 (registration)The registration code that spreads the storeTools array (containing 'list_stores') along with other tools and registers each 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 } ); });