Skip to main content
Glama

memory_flagged

Read-only

List memories tagged by poisoning detection for triage, returning only metadata such as ID, scope, source, subject, tags, and timestamp while withholding content to prevent unauthorized access.

Instructions

Memories that were stored but tagged by poisoning detection.

Returns metadata only -- id, scope, source, subject, tags, timestamp. Content is withheld deliberately: this tool has no caller identity to check against, so including it would let any agent read memories it is not cleared for through a tool meant for triage. Use amnesia flagged --show-content from a shell instead.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "memory_flagged"
  }
}

Input Schema

NameRequiredDescriptionDefault
tenantNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.8/5.0
Behavior5/5

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

Goes well beyond the annotations by explaining that content is deliberately withheld, why (no caller identity to check against, so any agent could read memories it isn't cleared for), and what fields are returned instead. This is exactly the kind of security-relevant behavioral context annotations cannot convey.

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?

Front-loads the purpose in one line, then explains the withholding rationale and the alternative in two tight sentences. No filler; the security explanation earns its space.

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?

An output schema exists, yet the description still usefully enumerates returned fields, and the security rationale is complete. The only real gap is the undocumented `tenant` parameter, which matters for a multi-tenant memory store.

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 `tenant` parameter has 0% schema description coverage and is never mentioned in the description, so its meaning, default behavior (empty string), and scoping effect are undocumented anywhere. The description compensates only for the return shape, not the input.

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?

States a specific resource and filter condition: memories stored but tagged by poisoning detection, returning metadata only (id, scope, source, subject, tags, timestamp). This clearly separates it from memory_recall or memory_audit_tail, though the verb is implicit rather than stated up front.

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?

Implies a triage use case and explicitly redirects to `amnesia flagged --show-content` when content is needed, which is useful. However, it gives no guidance on when to pick this over siblings such as memory_recall, memory_audit_tail, or memory_verify, so tool selection is left to inference.

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