Skip to main content
Glama
mattcoatsworth

ShipStation API MCP Server

refresh_store

Refresh store data in ShipStation API by specifying the store ID to ensure updated and accurate store information for order and shipment management.

Input Schema

NameRequiredDescriptionDefault
storeIdYesStore ID to refresh

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "storeId": { "description": "Store ID to refresh", "type": "number" } }, "required": [ "storeId" ], "type": "object" }

Implementation Reference

  • The MCP tool handler for 'refresh_store'. Accepts storeId, invokes shipStationClient.refreshStore(storeId), formats result as JSON text response or error.
    handler: async ({ storeId }) => { try { const result = await shipStationClient.refreshStore(storeId); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; }
  • Input schema using Zod: requires storeId as number.
    schema: { storeId: z.number().describe("Store ID to refresh") },
  • Tool definition object for 'refresh_store' in storeTools array, exported and later registered in server.js.
    { name: "refresh_store", description: "Refresh store data", schema: { storeId: z.number().describe("Store ID to refresh") }, handler: async ({ storeId }) => { try { const result = await shipStationClient.refreshStore(storeId); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; } } },
  • Helper method on ShipStationClient instance: proxies POST /stores/refreshstore to ShipStation API with storeId.
    async refreshStore(storeId) { return this.request('POST', '/stores/refreshstore', { 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