Skip to main content
Glama

Delete Observations

delete_observations
DestructiveIdempotent

Removes specific observations from entities in a knowledge graph namespace to keep stored information accurate and current.

Instructions

Delete specific observations from entities in the knowledge graph

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": {
      "namespace": "<namespace>",
      "deletions": "<deletions>"
    },
    "name": "delete_observations"
  }
}

Input Schema

NameRequiredDescriptionDefault
deletionsYes
namespaceYesThe namespace to operate in (required). It must already exist: create it with create_namespace, and list the existing ones with list_namespaces. Namespaces are isolated from each other: the same entity name can exist in several, and a relation only connects entities in its own namespace.

Output Schema

NameRequiredDescriptionDefault
messageYes
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, so the safety profile is covered structurally. The description adds nothing beyond that: it does not say whether a missing observation or entity causes an error or is silently ignored, whether partial application is possible across the deletions array, or what happens to an entity left with zero observations.

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

Conciseness4/5

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

A single front-loaded sentence with no filler; nothing needs to be trimmed. The terseness is a completeness problem, not a conciseness problem.

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

Completeness2/5

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

This is a destructive batch mutation, and an output schema exists (so return values need not be explained). Still, an agent would want to know error/partial-failure semantics and irreversibility before invoking it, and none of that is present.

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

Parameters3/5

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

Schema description coverage is 50%; the namespace field is thoroughly documented in the schema itself, and the nested entityName/observations fields each carry a short description. The description adds no meaning on top of that, but the schema already does most of the work for the array-of-objects format.

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

Purpose4/5

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

The description names a specific verb ('Delete') and resource ('specific observations from entities in the knowledge graph'), which is enough to distinguish it from delete_entities, delete_relations, and delete_namespace by the object being removed. It stops short of explicitly contrasting itself with those siblings.

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

Usage Guidelines2/5

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

There is no guidance on when to use this instead of delete_entities (which presumably removes whole entities) or how to remove a single observation versus the whole entity. Nothing tells the agent about prerequisites beyond what the namespace schema field already says, and there is no warning that the operation is irreversible.

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