Skip to main content
Glama
server-noonien

server-noonien

Official

Delete Relations

delete_relations
DestructiveIdempotent

Deletes multiple relations from a knowledge graph by matching from, to, and relationType, leaving both endpoint entities intact and reporting how many were removed.

Instructions

Delete multiple relations from the knowledge graph. A relation is matched by its from, to and relationType; one that matches nothing is ignored, and the message reports how many of the requested relations were deleted. Deleting an entity removes its incident relations with it, so this is for dropping one edge while both endpoints stay.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "relations": "<relations>"
    },
    "name": "delete_relations"
  }
}

Input Schema

NameRequiredDescriptionDefault
relationsYesAn array of relations to delete

Output Schema

NameRequiredDescriptionDefault
messageYes
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare that this is destructive and idempotent. The description adds useful behavioral detail beyond annotations: relations are matched by from, to, and relationType, unmatched relations are ignored, and the result reports how many requested relations were deleted.

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

Conciseness5/5

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

The description is concise and front-loaded, starting with the core action and then adding matching and usage details. Every sentence contributes relevant information without redundancy.

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 simple destructive tool with one array parameter, rich annotations, and an output schema, the description covers the key behavioral points an agent needs: matching semantics, handling of unmatched relations, deletion count reporting, and contrast with entity deletion.

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

Parameters4/5

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

Schema description coverage is 100%, so the baseline would be 3. The description still adds meaning by explaining that a relation is identified by the composite key of from, to, and relationType, and that non-matching entries are silently ignored.

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 states a specific verb and resource: deleting multiple relations from the knowledge graph. It also distinguishes this operation from deleting entities by explaining that deleting an entity removes incident relations, whereas this tool drops an edge while both endpoints stay.

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

Usage Guidelines4/5

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

The description gives clear contextual guidance: use this to remove a relation without deleting either endpoint entity. It contrasts with entity deletion, which also removes incident relations, but it does not explicitly name or compare against every relevant sibling such as update_relations.

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