Skip to main content
Glama
mattcoatsworth

ShipStation API MCP Server

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
NameRequiredDescriptionDefault
storeIdYesStore ID to retrieve

Implementation Reference

  • 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 }; } }
  • 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 } ); });
  • 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}`); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mattcoatsworth/shipstation-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server