Skip to main content
Glama
pashaydev

Terminal.shop MCP Server

by pashaydev

update-profile

Modify user profile details like name and email to keep account information current and accurate.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
emailNo

Implementation Reference

  • Complete implementation of the 'update-profile' MCP tool. Registers the tool with input schema for optional name and email fields. The handler conditionally constructs update data and sends a PUT request to the Terminal.shop /profile endpoint, returning success message with updated profile details or error.
    server.tool( "update-profile", { name: z.string().optional(), email: z.string().email().optional(), }, async ({ name, email }) => { try { // Only include fields that are provided const updateData = {}; if (name !== undefined) updateData.name = name; if (email !== undefined) updateData.email = email; const response = await terminalApi.put("/profile", updateData); const profile = response.data.data; return { content: [ { type: "text", text: `Profile updated successfully:\nName: ${profile.user.name}\nEmail: ${profile.user.email}`, }, ], }; } catch (error) { console.error("Error updating profile:", error); return { content: [ { type: "text", text: `Error updating profile: ${error.message}`, }, ], isError: true, }; } }, );
  • Input schema for 'update-profile' tool using Zod: optional string for name, optional email validated as email format.
    { name: z.string().optional(), email: z.string().email().optional(), },
  • server.js:817-818 (registration)
    Registration of the 'update-profile' tool on the MCP server.
    server.tool( "update-profile",

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