Skip to main content
Glama

delete_user

Remove a user account from the JSON database by specifying their unique ID. This tool helps maintain accurate user records by deleting outdated or unnecessary entries.

Instructions

Kullanıcıyı siler

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesSilinecek kullanıcının ID'si

Implementation Reference

  • Handler function that deletes a user by ID from the in-memory database (db.users array), using findIndex and splice, then persists via writeDatabase. No authentication check.
    case 'delete_user': { const { id } = args; const userIndex = db.users.findIndex(u => u.id === id); if (userIndex === -1) { return { content: [{ type: 'text', text: JSON.stringify({ error: 'Kullanıcı bulunamadı' }) }] }; } db.users.splice(userIndex, 1); await writeDatabase(db); return { content: [{ type: 'text', text: JSON.stringify({ success: true, message: 'Kullanıcı silindi' }) }] }; }
  • Tool schema definition in the ListTools response, specifying input as object with required 'id' number field. No token required.
    { name: 'delete_user', description: 'Kullanıcıyı siler', inputSchema: { type: 'object', properties: { id: { type: 'number', description: 'Silinecek kullanıcının ID\'si' } }, required: ['id'] } },

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/yusuferenkt/mcp-database'

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