Skip to main content
Glama

ai_memory_extract

Read-only

Agent memory extractor — Pull durable facts worth remembering (preferences, identity, goals, constraints, projects) out of a conversation for an AI assistant's long-term memory. Offline checks: each fact's supporting quote must appear in the text, temporary wording is marked, existing= memories (separated by ; or new lines) are matched as duplicate or update, and emails/phones are redacted while card and ID numbers are never marked for saving. Optional: subject= (default the user). Price: $0.006 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "ai_memory_extract"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYese.g. User: I'm vegetarian and I run a bakery in Austin. Can you plan meals for this week?

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Goes well beyond the annotations (readOnlyHint/openWorldHint/destructiveHint) by disclosing the offline validation pipeline: quote must appear in the text, temporary wording marked, dedup against existing memories, and PII handling (emails/phones redacted, card and ID numbers never saved). It also discloses cost and payment rail ('$0.006 USDC, Base, via x402'), which is exactly the kind of operational context annotations cannot carry. It loses a point for referencing 'existing=' and 'subject=' inputs that the schema does not actually expose, which misrepresents how the tool can be invoked.

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 purpose is front-loaded in the first sentence and the remaining clauses are dense but each carries a fact (validity checks, dedup, redaction, pricing). The 'existing= memories (separated by ; or new lines)' phrasing is awkward and the paragraph crams several distinct concerns into one block, but there is little outright filler.

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?

Safety and validation behavior are well covered, and the absence of an output schema would normally require the description to sketch the return shape, which it does not (it never says facts are returned as a list with quotes, categories, or confidence). Combined with the phantom 'existing'/'subject' parameters, an agent has a reasonably clear intent but an imprecise picture of how to call and interpret the tool.

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?

The single documented parameter has 100% schema coverage and the description only loosely reinforces it via the conversation-text framing. Worse, it advertises two parameters ('existing=' memories and 'subject=') that do not exist in the input schema, which would lead an agent to attempt arguments that will be rejected or ignored.

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?

States a specific verb and resource ('Pull durable facts ... out of a conversation for an AI assistant's long-term memory') and enumerates the target fact classes (preferences, identity, goals, constraints, projects). This distinguishes it clearly from sibling extractors like ai_invoice_extract, ai_receipt_extract or ai_rfp_extract, whose targets are documents, not conversational memory.

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?

Usage context is implied by 'for an AI assistant's long-term memory' and 'durable facts worth remembering', so an agent can infer it is for memory ingestion rather than one-off extraction. However there is no explicit when-to-use/when-not guidance and no named alternative (e.g. the generic ai_extract) for the case where the caller wants raw extraction without memory filtering.

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