Skip to main content
Glama
PlainTxtOffice

Plain Text Memory MCP

Rename entity

rename_entity
DestructiveIdempotent

Rename an entity and all its relations in the knowledge graph, preserving tags. Fails if the entity is missing or the new name is already taken.

Instructions

Rename an entity and every relation that names it.

Keeps every tag, so the entity and its observations still show when and by which agent they were added. Returns the renamed entity and a message counting the relations updated. Fails without saving when the entity does not exist or the new name is taken; to combine two entities, see merge_entities.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
newNameYesNew name; no other entity may have it.
entityNameYesCurrent name of the entity.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
entityYes
messageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already flag destructiveHint and idempotent; the description adds what annotations cannot: the rename cascades across every relation, tags are preserved to keep provenance metadata, failure is atomic ('fails without saving'), and the response summarizes relations updated. That is rich consequence disclosure beyond the structured hints.

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 cascade behavior and provenance preservation lead; failure semantics and the sibling pointer close. Every sentence carries information and nothing is padded.

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 mutation tool with an output schema and full annotation coverage, the agent has cascade scope, failure behavior, data preservation, and an alternative tool pointer. Nothing needed to call it correctly is missing.

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 100% and both parameters are self-documented ('current name', 'no other entity may have it'), so the description adds no syntax or format meaning beyond the schema. Baseline 3 applies.

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?

States a specific verb (rename), the resource (entity), and an important scope detail: every relation naming it is also renamed. It also distinguishes itself from merge_entities by name, so an agent can separate the two without opening schemas.

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?

Gives concrete failure conditions (entity missing, name already taken) and routes the combine case to merge_entities. It stops short of a full when-to-use narrative against create/edit paths, but the alternative is named explicitly.

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