Skip to main content
Glama

scan_memory

Scans agent memory stores such as JSON, SQLite, Redis, and VectorDB for poisoned data, prompt injection in stored content, and unauthorized access patterns.

Instructions

Scan agent memory stores (JSON, SQLite, Redis, VectorDB) for security issues like poisoned data, prompt injection in stored content, or unauthorized access patterns.

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": {
      "memory_type": "<memory_type>"
    },
    "name": "scan_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
contentNoInline JSON/text content to scan
memory_typeYesType of memory store to scan
connection_stringNoConnection string for the memory store

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden: it does disclose what the scan detects (poisoned data, prompt injection in stored content, unauthorized access patterns), which is genuine behavioral context. However it never states whether the scan is read-only or can modify/quarantine data, whether connection_string implies credential requirements, or roughly what a scan produces, leaving the safety profile to inference.

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?

A single sentence that front-loads the action and resource, then the backends, then the threat categories. No filler or redundancy; it is only slightly dense and could split the detection list from the store list for scannability.

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?

There is no output schema, so the description should say something about what a scan returns (findings, severity, evidence), and it does not. Credential/permission expectations for connecting to SQLite/Redis/VectorDB stores are also unaddressed, leaving meaningful gaps for a security-scanning tool with three parameters.

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 memory_type, content, and connection_string are already documented and the enum lists the allowed store types. The description only echoes the backend list and adds no guidance such as when to pass inline content versus a connection_string, or what the 'unified' type means, so it does not exceed the baseline.

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?

Names a specific verb (Scan) and a specific resource (agent memory stores) and enumerates the supported backends (JSON, SQLite, Redis, VectorDB) plus the threat classes it looks for. That makes the resource clearly distinct from scan_mcp_server, scan_prompt, or scan_output, though it never explicitly contrasts itself with those siblings.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no routing among the many scan_* siblings; an agent must infer from the resource name alone whether memory scanning is the right call versus scan_prompt or scan_pii. No prerequisites (credentials, reachability of the store) are mentioned either.

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