Skip to main content
Glama
tejpalvirk

Developer MCP Server

by tejpalvirk

deletecontext

Remove outdated or incorrect elements from the development knowledge graph by deleting specific entities, relationships, or observations. Maintains project accuracy as development contexts evolve, ensuring clean and updated representations.

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

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

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries full burden and delivers comprehensive behavioral disclosure. It explains cascading deletion effects, lack of undo, partial graph implications, relation prerequisites, and specific deletion behaviors for each operation type. The safety considerations section provides critical operational context beyond basic functionality.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

While well-structured with clear sections, the description is verbose with 10-item lists in multiple sections. Some redundancy exists (e.g., operation types explained multiple times). The core functionality could be communicated more efficiently while maintaining the valuable safety and usage guidance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a destructive tool with no annotations and no output schema, the description provides exceptional completeness. It covers purpose, usage scenarios, parameter semantics, behavioral traits, safety considerations, and operational procedures. The absence of output schema is compensated by mentioning 'JSON-formatted response with operation results.'

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Despite 100% schema description coverage, the description adds substantial value through a dedicated 'Parameters explained' section that clarifies the meaning of 'type' options and provides detailed data structure examples for each operation. It transforms the abstract schema into concrete usage patterns with specific examples for entities, relations, and observations.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'removing elements from the software development knowledge graph' with three specific operation types (entities, relations, observations). It distinguishes itself from siblings like 'buildcontext' and 'loadcontext' by focusing on deletion rather than creation or retrieval.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides extensive guidance with a dedicated 'When to use this tool' section listing 10 specific scenarios, plus safety considerations and a numbered list of 10 actionable steps. It explicitly advises against using this tool for status/priority updates, directing users to 'appropriate tools' instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Related Tools

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

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