Skip to main content
Glama

Developer MCP Server

by tejpalvirk

deletecontext

Remove outdated or unnecessary entities, relationships, or observations from the software development knowledge graph to maintain accuracy and relevance as projects evolve and change.

Instructions

A versatile tool for removing elements from the software development knowledge graph. This tool allows precise deletion of entities, relationships between entities, or specific observations from existing entities. It helps maintain an accurate and current representation of the development context as projects evolve.

When to use this tool:

  • Removing deprecated or completed project components
  • Deleting obsolete relationships between development entities
  • Pruning outdated observations that no longer apply
  • Correcting errors in the knowledge graph
  • Cleaning up testing or prototype entities
  • Maintaining graph accuracy as project scope changes
  • Removing sensitive or confidential information
  • Archiving completed projects or components
  • Removing task sequencing relationships
  • Updating status or priority relationships

Key features:

  • Three distinct deletion operation types (entities, relations, observations)
  • Cascading deletion for entities (automatically removes related relations)
  • Precise deletion of specific observations without removing entire entities
  • Targeted relation removal with exact matching on from/to/type
  • Batch operations for efficient cleanup
  • JSON-formatted response with operation results
  • Secure validation before deletion

Parameters explained:

  • type: The deletion operation type to perform, which must be one of:
    • "entities" - Remove development entities and their relations
    • "relations" - Remove specific relationships between entities
    • "observations" - Remove specific observations from entities
  • data: Operation-specific data structure:
    • For "entities": Array of entity names to delete
    • For "relations": Array of objects with { from, to, relationType }
    • For "observations": Array of objects with { entityName, observations[] }

Deletion behavior by type:

  • "entities": Completely removes the specified entities and any relations where they appear
  • "relations": Removes only the exact relations specified, matching on all three attributes
  • "observations": Removes specific observations from entities while preserving the entities themselves

Safety considerations:

  • Entity deletion cascades to relations, so be careful when deleting key entities
  • There is no "undo" operation, so confirm deletions carefully
  • Partial graph information can lead to inconsistent views
  • Relations require entities on both ends to exist
  • Instead of deleting status or priority entities, prefer updating them using appropriate tools
  • Deleting task sequencing relations may disrupt project planning and dependencies

You should:

  1. Identify the specific elements that need to be removed
  2. Choose the appropriate deletion type (entities, relations, or observations)
  3. Structure your data according to the deletion type's requirements
  4. Start with the most specific deletions (observations) before broader ones
  5. Verify the entities or relations exist before attempting deletion
  6. To update status or priority, create new has_status or has_priority relations rather than deleting old ones
  7. When removing task sequencing, consider how it affects other tasks and milestones
  8. Check the operation result to confirm successful deletion
  9. Consider documenting major deletions as observations on related entities
  10. When removing an entire project, first delete its components for cleaner removal

Input Schema

NameRequiredDescriptionDefault
dataYesData for the deletion operation, structure varies by type but must be an array
typeYesType of deletion operation: 'entities', 'relations', or 'observations'

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "data": { "description": "Data for the deletion operation, structure varies by type but must be an array", "type": "array" }, "type": { "description": "Type of deletion operation: 'entities', 'relations', or 'observations'", "enum": [ "entities", "relations", "observations" ], "type": "string" } }, "required": [ "type", "data" ], "type": "object" }
Install Server

Other Tools from Developer MCP Server

Related Tools

    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/tejpalvirk/developer'

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