Skip to main content
Glama

DeleteProperty

Remove specific properties from a RushDB graph database by providing the property ID to maintain clean data structures.

Instructions

Delete a property from the database

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
propertyIdYesID of the property to delete

Implementation Reference

  • The core handler function for the DeleteProperty tool, which deletes a property by its ID using the database utility.
    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)
    Registration of the DeleteProperty tool in the central tools array, including its name, description, and input schema for MCP tool listing.
    {
      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']
      }
    },
  • Input schema definition for the DeleteProperty tool, specifying the required propertyId parameter.
    inputSchema: {
      type: 'object',
      properties: { propertyId: { type: 'string', description: 'ID of the property to delete' } },
      required: ['propertyId']
    }
  • Dispatch handler in the MCP server's CallToolRequestSchema handler that invokes the DeleteProperty tool.
    case 'DeleteProperty':
      const deletePropertyResult = await DeleteProperty({
        propertyId: args.propertyId as string
      })
      return {
        content: [
          {
            type: 'text',
            text: deletePropertyResult.message
          }
        ]
      }

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