get_store
Retrieve store details by providing a specific store ID using the ShipStation API MCP Server tool, facilitating efficient management of store-related data.
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 async handler function that implements the core logic of the 'get_store' tool: fetches store details via shipStationClient.getStore and returns JSON-formatted response or error.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 defining the 'storeId' parameter as a required number.schema: { storeId: z.number().describe("Store ID to retrieve") },
- src/server.js:184-191 (registration)Batch registration of all tools, including 'get_store', with the MCP server via server.tool().].forEach(tool => { server.tool( tool.name, tool.schema, tool.handler, { description: tool.description } ); });