Skip to main content
Glama

Memoreal — Deterministic AI Memory & Code Intelligence MCP

Rename Code Symbol

rename
Idempotent

Locate all definitions and references of a symbol to produce a rename impact plan, optionally applying the update to stored memory tags. Use before renaming a function, class, or variable across codebase memories.

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>",
      "symbol": "<symbol>",
      "new_name": "<new_name>"
    },
    "name": "rename"
  }
}

Input Schema

NameRequiredDescriptionDefault
applyNoTrue to update matching stored memory symbol tags.
symbolYesCurrent symbol identifier.
new_nameYesNew identifier name.
namespaceYesLogical workspace namespace.

Output Schema

NameRequiredDescriptionDefault
symbolYes
appliedYes
new_nameYes
namespaceYes
affected_filesYes
updated_memoriesNo
valid_identifierYes
matching_memory_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive and idempotent, so the description's added value is explaining what actually changes: stored memory symbol tags, and only when the optional apply is used. The plan-versus-apply framing is genuinely useful behavior beyond the annotations. It does not discuss reversibility or what happens to already-tagged memories, but the output schema covers the return shape.

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?

Two sentences, front-loaded with the core action and followed by the usage condition. No redundant restatement of the title or name. Slightly compact given the plan/apply duality, but nothing is wasted.

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

Completeness4/5

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

With four fully documented parameters, annotations, and an output schema, the description supplies the one thing structured fields cannot: the plan-first, optionally-applied workflow. Enough for an agent to call it correctly, though an explicit note on when to prefer a pure reference lookup would close the last gap.

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%, so all four parameters are already documented in the schema. The description reinforces the optional nature of 'apply' but adds no syntax or format detail beyond that. Baseline 3 applies when the schema carries the parameter burden.

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 gives a concrete verb and resource: locate all definitions and references of a symbol and produce a rename impact plan, optionally applying tag updates. That is far more specific than the bare name 'rename'. It stops short of explicitly distinguishing itself from sibling tools like find_references or impact, so an agent must infer the difference.

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

Usage Guidelines3/5

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

The sentence 'Use before renaming a function, class, or variable across codebase memories' gives a clear triggering context. However, it never states when not to use it or names an alternative (e.g., find_references for pure lookup), leaving the agent to infer routing between overlapping siblings.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.