Skip to main content
Glama

fakestore_delete_user

Remove a user from the Fake Store API by specifying their user ID. This tool performs simulated deletion for testing and demonstration purposes without persisting changes to the database.

Instructions

Delete a user (simulation - does not persist)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesUser ID to delete

Implementation Reference

  • The main handler function that performs the user deletion by calling the API delete endpoint.
    export async function deleteUser(args: { id: number }): Promise<User> { const { id } = args; validatePositiveInteger(id, 'User ID'); return del<User>(`/users/${id}`); }
  • The tool's input schema definition, specifying the required 'id' parameter.
    { name: 'fakestore_delete_user', description: 'Delete a user (simulation - does not persist)', inputSchema: { type: 'object', properties: { id: { type: 'number', description: 'User ID to delete', }, }, required: ['id'], }, },
  • src/index.ts:224-229 (registration)
    Registration in the main tool call handler that maps the tool name to the deleteUser function execution.
    if (name === 'fakestore_delete_user') { const result = await deleteUser(args as { id: number }); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; }

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/op-enny/mcp-server-fakestore'

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