Skip to main content
Glama

DeleteProperty

Remove a property from the database by specifying its ID to maintain data integrity and manage storage efficiently.

Instructions

Delete a property from the database

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
propertyIdYesID of the property to delete

Implementation Reference

  • The main handler function that implements the DeleteProperty tool logic: deletes the specified property from the database using the db client and returns a success message.
    export async function DeleteProperty(params: { propertyId: string }) { const { propertyId } = params await db.properties.delete(propertyId) return { success: true, message: `Property '${propertyId}' deleted successfully` } }
  • tools.ts:413-421 (registration)
    Registers the DeleteProperty tool in the exported tools array used by MCP listTools endpoint, defining name, description, and input schema.
    { name: 'DeleteProperty', description: 'Delete a property from the database', inputSchema: { type: 'object', properties: { propertyId: { type: 'string', description: 'ID of the property to delete' } }, required: ['propertyId'] } },
  • Defines the input schema for the DeleteProperty tool: requires a propertyId string.
    inputSchema: { type: 'object', properties: { propertyId: { type: 'string', description: 'ID of the property to delete' } }, required: ['propertyId'] }
  • index.ts:467-478 (registration)
    Registers and dispatches DeleteProperty tool calls in the main MCP CallToolRequest handler switch statement.
    case 'DeleteProperty': const deletePropertyResult = await DeleteProperty({ propertyId: args.propertyId as string }) return { content: [ { type: 'text', text: deletePropertyResult.message } ] }
  • index.ts:47-47 (registration)
    Imports the DeleteProperty handler function for use in the MCP server.
    import { DeleteProperty } from './tools/DeleteProperty.js'

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/1pxone/RushDB'

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