Skip to main content
Glama

modify_passage

Update text content in an agent's archival memory store. Use this tool to modify existing memory passages by providing the agent ID, memory ID, and new text content.

Instructions

Modify a memory in the agent's archival memory store. Use list_passages to find memory IDs. Currently only supports updating the text content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYesID of the agent whose passage to modify
memory_idYesID of the passage (memory) to modify
update_dataYesObject containing the fields to update. Currently only supports updating the 'text' field.
include_embeddingsNoWhether to include the full embedding vectors in the response (default: false).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successYes
new_textNo
passage_idYes
Behavior4/5

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

Annotations only provide a generic title ('Update Archival Memory'), so the description carries full burden. It discloses key behavioral traits: this is a mutation operation (implied by 'Modify'), it requires specific IDs (agent_id, memory_id), and has a current limitation (text-only updates). However, it doesn't mention permissions, rate limits, or whether changes are reversible.

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?

Two sentences, zero waste. The first sentence states the core purpose, the second adds critical constraints. Both sentences earn their place by providing essential information not obvious from the tool name or annotations.

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?

Given this is a mutation tool with no annotations covering safety/behavior, the description does well by stating the purpose, prerequisite (list_passages), and current limitation. Since an output schema exists, it doesn't need to explain return values. However, it could better address behavioral aspects like permissions or idempotency.

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 the schema already documents all 4 parameters thoroughly. The description adds minimal value beyond the schema: it reinforces that 'update_data' is for 'text content' updates only, but doesn't provide additional syntax, format, or contextual details not already in the schema descriptions.

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 clearly states the specific action ('Modify a memory'), resource ('in the agent's archival memory store'), and scope ('Currently only supports updating the text content'). It distinguishes from sibling tools like 'create_passage' (creation), 'delete_passage' (deletion), and 'list_passages' (listing).

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

Usage Guidelines5/5

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

The description explicitly provides when-to-use guidance: 'Use list_passages to find memory IDs' (prerequisite) and 'Currently only supports updating the text content' (limitation vs. alternatives like 'update_memory_block' for broader updates). It clearly directs to a specific sibling tool for ID discovery.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/oculairmedia/Letta-MCP-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server