list_marketplaces
Retrieve a list of available marketplaces to manage order and fulfillment integrations with the ShipStation API for streamlined e-commerce operations.
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:47-59 (handler)The tool handler that invokes shipStationClient.getMarketplaces() and formats the response as MCP content or error.handler: async () => { try { const marketplaces = await shipStationClient.getMarketplaces(); return { content: [{ type: "text", text: JSON.stringify(marketplaces, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; } }
- src/api-client.js:174-176 (helper)API client method that performs the GET request to ShipStation's /stores/marketplaces endpoint.async getMarketplaces() { return this.request('GET', '/stores/marketplaces'); }
- src/tools/store-tools.js:46-46 (schema)Empty Zod schema indicating no input parameters are required for the tool.schema: {},
- src/server.js:174-191 (registration)The loop that registers all tools by spreading the storeTools array (which contains list_marketplaces) and calling server.tool for each.[ ...orderTools, ...shipmentTools, ...carrierTools, ...warehouseTools, ...productTools, ...customerTools, ...storeTools, ...webhookTools, ...fulfillmentTools ].forEach(tool => { server.tool( tool.name, tool.schema, tool.handler, { description: tool.description } ); });