Skip to main content
Glama
mattcoatsworth

ShipStation API MCP Server

deactivate_store

Deactivate a specific store by providing its Store ID to manage store settings and integrations within the ShipStation API MCP Server.

Input Schema

NameRequiredDescriptionDefault
storeIdYesStore ID to deactivate

Input Schema (JSON Schema)

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

Implementation Reference

  • The MCP tool handler for 'deactivate_store', which invokes the ShipStation API client to deactivate the specified store and formats the response or error.
    handler: async ({ storeId }) => { try { const result = await shipStationClient.deactivateStore(storeId); return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] }; } catch (error) { return { content: [{ type: "text", text: error.message }], isError: true }; } }
  • Zod input schema defining the required 'storeId' parameter as a number.
    schema: { storeId: z.number().describe("Store ID to deactivate") },
  • src/server.js:184-191 (registration)
    Dynamic registration of all MCP tools (including 'deactivate_store' from storeTools) to the MCP server via server.tool().
    ].forEach(tool => { server.tool( tool.name, tool.schema, tool.handler, { description: tool.description } ); });
  • ShipStationClient helper method that performs the actual API POST request to deactivate the store.
    async deactivateStore(storeId) { return this.request('POST', '/stores/deactivate', { 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