Skip to main content
Glama

Edit agent memory item

edit_agent_memory_item
Destructive

Correct one of an agent's memory items (or write one back): it is indexed again as the newest. A key is never kept.

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": {
      "item": "<item>",
      "content": "<content>"
    },
    "name": "edit_agent_memory_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemYesThe memory item: `<agent id>/<item name>`.
contentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.6/5.0
Behavior3/5

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

Annotations already declare this destructive, non-idempotent and world-local, so the safety profile is covered. The description does add real behavioral context: the item is re-indexed as the newest, which matters for retrieval ranking. It stops short of saying what is lost when an existing item is corrected, and 'A key is never kept' is unexplained.

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?

Two short sentences with no padding, and the re-indexing consequence is stated up front. But brevity crosses into obscurity: the trailing 'A key is never kept' costs a sentence and conveys nothing actionable to an agent.

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 mutation with no output schema and only half the parameters documented, so the description carries the burden. An agent still cannot tell whether content replaces or merges with existing memory, or what a successful result looks like, and the annotations already imply destruction so the description should quantify it.

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

Parameters2/5

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

Only the item parameter is described in the schema (50% coverage), and the description never clarifies what 'content' should contain or whether it replaces the whole entry. With coverage this low, the description would need to compensate and it does not.

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

Purpose3/5

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

The description says it corrects an agent's memory item, and the parenthetical '(or write one back)' hints at upsert semantics, so the resource and rough action are identifiable. However, the phrase 'A key is never kept' is opaque and the description never says plainly whether this edits in place or replaces the stored entry.

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 when-to-use guidance at all, and no mention of the sibling delete_agent_memory_item or of related knowledge-editing tools. The only hint of a use case is the 'write one back' aside.

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.