Skip to main content
Glama

agentbay_memory_compact

Run memory compaction to deduplicate, expire, and merge redundant entries, keeping AI agent memory organized across sessions.

Instructions

Run memory compaction. In local mode this is a no-op; sign up for the cloud version which dedups, expires, and merges duplicates.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dryRunNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.2.5

TDQS

A3.7/5.0
Behavior4/5

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

The description discloses a significant behavioral trait: in local mode this tool is a no-op, and actual compaction is a cloud capability. This goes beyond the annotations, which only indicate read/write and destructive hints. The cloud framing keeps it from directly contradicting destructiveHint=false, though the absence of dryRun side-effect details is a minor gap.

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 two short sentences with the action front-loaded and the caveat/next step efficiently packed into the second sentence. There is no filler or redundant restatement of the tool name.

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 single-parameter tool, the description covers the key operational distinction between local and cloud mode, but it leaves dryRun semantics unexplained and does not describe return values, side effects, or prerequisites beyond signing up. Since there is no output schema, the description should say a bit more about what the tool returns or confirms.

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 only parameter, dryRun, is completely undocumented: schema description coverage is 0%, and the description never explains that dryRun likely means previewing compaction without applying changes. An agent would have to infer its meaning from the parameter name alone, and it remains unclear whether dryRun behaves differently in local vs cloud mode.

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 states an action ('Run memory compaction') with a clear resource, and it is distinguishable from sibling memory tools like store, recall, forget, verify, and health. The caveat that local mode is a no-op slightly obscures what the tool actually accomplishes, but the intended verb-object pair is present.

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

Usage Guidelines4/5

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

It explicitly says local mode is a no-op and directs users to the cloud version for real dedup/expire/merge behavior, which gives an agent useful context about when the tool has an effect. It does not mention alternative memory tools like forget or verify, but it provides enough guidance about the local vs cloud split.

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

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/thomasjumper/agentbay'

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