Skip to main content
Glama
lin2000wl

Serena MCP Server

by lin2000wl

delete_memory

Remove outdated or incorrect information from memory files in the Serena MCP Server coding assistant toolkit when users explicitly request deletion.

Instructions

Delete a memory file. Should only happen if a user asks for it explicitly, for example by saying that the information retrieved from a memory file is no longer correct or no longer relevant for the project.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
memory_file_nameYes
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. While it mentions this is a deletion operation (implying destructive action), it doesn't specify whether the deletion is permanent/reversible, what permissions are required, or what happens if the file doesn't exist. For a destructive operation with zero annotation coverage, this leaves significant behavioral gaps.

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 description is efficiently structured in two sentences: the first states the core action, the second provides crucial usage guidelines. Every sentence adds value with zero wasted words, making it easy to parse and understand quickly.

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

Completeness3/5

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

For a destructive operation with no annotations and no output schema, the description provides good usage guidelines but lacks critical behavioral details (permanence, error handling, permissions). The single parameter is undocumented. While the purpose and usage are clear, the description doesn't fully compensate for the missing structured information.

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?

The schema has 0% description coverage for its single parameter 'memory_file_name'. The description doesn't mention this parameter at all, providing no additional semantic context beyond what the schema's title suggests. However, with only one parameter, the baseline is 4, but the complete lack of parameter explanation in the description reduces this to 3.

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 clearly states the verb 'delete' and the resource 'memory file', making the purpose unambiguous. However, it doesn't explicitly differentiate from sibling tools like 'remove_project' or 'delete_lines', which might also involve deletion operations.

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 provides explicit guidance on when to use this tool: 'only if a user asks for it explicitly' and gives concrete examples ('information retrieved... no longer correct or no longer relevant'). This clearly defines the triggering conditions and helps distinguish it from other deletion tools.

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/lin2000wl/Serena-cursor-mcp'

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