Skip to main content
Glama
pashaydev

Terminal.shop MCP Server

by pashaydev

create-address

Generate accurate shipping addresses by inputting name, street, city, country, and zip details. Simplify address creation for orders and subscriptions on Terminal.shop MCP Server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cityYes
countryYes
nameYes
phoneNo
provinceNo
street1Yes
street2No
zipYes

Implementation Reference

  • The handler function for the 'create-address' tool. It sends a POST request to the Terminal.shop API to create a new shipping address using the provided parameters and returns the new address ID or an error message.
    async (params) => { try { const response = await terminalApi.post("/address", params); const addressID = response.data.data; return { content: [ { type: "text", text: `Address created successfully! Address ID: ${addressID}`, }, ], }; } catch (error) { console.error("Error creating address:", error); return { content: [ { type: "text", text: `Error creating address: ${error.message}`, }, ], isError: true, }; } }, );
  • Zod schema defining the input parameters for the 'create-address' tool, including required fields like name, street1, city, country, zip, and optional fields.
    name: z.string(), street1: z.string(), street2: z.string().optional(), city: z.string(), province: z.string().optional(), country: z.string().length(2), zip: z.string(), phone: z.string().optional(),
  • server.js:857-858 (registration)
    Registration of the 'create-address' tool on the MCP server using server.tool method.
    server.tool( "create-address",

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/pashaydev/terminal.shop.mcp'

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