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
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | User ID to delete |
Implementation Reference
- src/tools/users.ts:185-189 (handler)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}`); }
- src/tools/users.ts:347-360 (schema)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) }], }; }