Skip to main content
Glama

Agent Data Tools: Utilities

Agent memory, delete a key

memory_delete
DestructiveIdempotent

Delete the value saved under a key in your namespace now, before it expires. Answers deleted: false when there was nothing to delete. Values are kept until they expire (at most 30 days) or are deleted; reads anywhere may lag a write made elsewhere by up to a minute. Use to forget a fact or clear task state. Example: namespace=demo-agent-memory-7f3c9a21, key=user-preferences. Price $0.002/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Changes only what you saved in your own memory namespace; each call is charged, so repeats are not free.

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>",
      "key": "<key>"
    },
    "name": "memory_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesThe key, up to 200 characters
namespaceYesYour namespace: a secret of 16 to 128 letters, digits, - or _ that you choose and reuse. Anyone who knows it can read and write it, so treat it like a password; send it in a POST body to keep it out of URLs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.2/5.0
Behavior5/5

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

Given annotations already flag destructive=true and idempotent=true, the description still adds substantial context: a 30-day expiry ceiling, up-to-one-minute read lag across locations, the 'deleted: false' return on a miss, the per-call cost with 10 free calls, and the blast-radius limit to your own namespace.

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?

The action is front-loaded and most sentences carry real information: expiry, lag, return value, scope. The tail does repeat itself with 'Price $0.002/call ... failed calls free' followed by 'each call is charged, so repeats are not free', which is minor redundancy rather than wasted framing.

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 two-parameter, no-output-schema tool, the description covers everything an agent needs: scope of effect, return value on a miss, retention/expiry semantics, eventual-consistency caveats, and billing. Nothing material is left to inference.

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 explains both the namespace secret and the key length limit, making 3 the baseline. The description only adds a concrete example pair (namespace=demo-agent-memory-7f3c9a21, key=user-preferences), which is helpful but not new semantic meaning.

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 opens with a specific verb and resource: 'Delete the value saved under a key in your namespace.' That verb distinguishes it from the memory_get/memory_set/memory_list siblings without needing to name them, and the added 'Use to forget a fact or clear task state' pins the intent.

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?

It gives a use case ('Use to forget a fact or clear task state') and notes the no-op case via 'deleted: false', which implies when the call is harmless. But it names no alternative sibling and states no explicit when-not-to-use condition, so guidance is implied rather than spelled out.

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.

Resources