get_store
Retrieve store details from ShipStation using a specific store ID to access and manage store information within the e-commerce platform.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| storeId | Yes | Store ID to retrieve |
Implementation Reference
- src/tools/store-tools.js:29-41 (handler)The handler function for the 'get_store' MCP tool. It takes storeId, calls shipStationClient.getStore(storeId), and returns the store details as JSON-formatted text or an error message.handler: async ({ storeId }) => { try { const store = await shipStationClient.getStore(storeId); return { content: [{ type: "text", text: JSON.stringify(store, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; } }
- src/tools/store-tools.js:26-28 (schema)Zod input schema for the 'get_store' tool defining the required storeId parameter as a number.schema: { storeId: z.number().describe("Store ID to retrieve") },
- src/server.js:184-191 (registration)Registration of all tools (including 'get_store') with the MCP server via server.tool() in a loop over imported tool arrays like storeTools.].forEach(tool => { server.tool( tool.name, tool.schema, tool.handler, { description: tool.description } ); });
- src/api-client.js:170-172 (helper)ShipStationClient helper method that performs the actual API request to retrieve store details from /stores/{storeId}, called by the tool handler.async getStore(storeId) { return this.request('GET', `/stores/${storeId}`); }