Skip to main content
Glama

audit

Inspect knowledge health across stale, orphans, archived, or conflicts modes. Identify drift, isolated memories, or contradictions.

Instructions

Inspect the health of knowledge in a domain across four modes. Omitting domain scans the entire workspace. Use for cross-domain drift review; scope to a domain for focused maintenance passes.

mode=stale: Return memories that may be stale, contradicted, or duplicated. Present each result to the user and ask for individual confirmation before archiving anything. Never archive autonomously.

mode=orphans: Return live, non-transient memories with zero connections. Present findings and suggest either linking them with connect, or archiving with forget if no longer relevant.

mode=archived: List all archived memories. This is the right tool when search returns nothing but you expect content to exist.

mode=conflicts: Surface candidate pairs of memories that are semantically adjacent and may warrant contradiction review. Returns {candidates: [...], truncated: bool}. Each candidate has a_id, a_label, b_id, b_label, semantic_distance, reason. Review each pair; use connect with relationship=contradicts only after confirming conflict. Never auto-file contradicts edges. Pairs already linked by a contradicts edge are excluded. After resolving a contradiction, connect the two memories with relationship=resolved (or resolved_by / supersedes) — do not disconnect the contradicts edge; resolution is additive and the original edge stays on record as history.

This tool only returns live nodes (for stale, orphans, and conflicts modes) or explicitly archived nodes (for archived mode).

Supply tags to scope to a workstream. Supply memory_id (mode=stale only) to scope to a memory's neighbourhood.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeYesRequired: stale (drift candidates), orphans (isolated memories), archived (list archived memories), or conflicts (semantic contradiction candidates)
tagsNoComma-separated tags. Only surfaces candidates carrying at least one of the supplied tags. OR semantics. Applies to all four modes.
limitNoMax candidates to return (default 10, applies to stale and conflicts modes)
digestNoWhen true, collapse multi-result lists to compact text lines (always a string array). Default false preserves current JSON shape.
domainNoOptional domain to scope the audit. Omit to scan the entire workspace. Use for cross-domain drift review; scope to a domain for focused maintenance passes.
memory_idNoAnchor memory ID. Scopes stale candidates to the depth-2 BFS neighbourhood of this memory. Applies to mode=stale only; ignored for orphans, archived, and conflicts.
node_kindNoOptional filter by node_kind. Space-separated for OR match. Applies to all four modes.
Behavior5/5

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

With no annotations provided, the description fully discloses behavioral traits: it explains return types (e.g., conflicts returns object with candidates and truncated), side effects (none for read modes, but warns against autonomous archiving), and constraints (e.g., excluded pairs for conflicts, only live nodes for most modes). This exceeds expectations.

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 description is well-structured with clear sections for each mode and key behavioral rules. However, some phrases are repeated (e.g., the note about cross-domain drift), and the level of detail could be slightly tightened without losing meaning. Overall, it is appropriately sized and front-loaded.

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?

Given the absence of an output schema, the description provides adequate detail on return formats for some modes (e.g., conflicts), though other modes only say 'Return memories' without specifying structure. The description covers the essential context for the tool's four modes and usage, making it mostly complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so each parameter is already documented. The description adds valuable context beyond the schema, such as the effect of omitting domain (scans entire workspace) and that memory_id applies only to stale mode. This extra information enhances understanding, justifying a score above baseline 3.

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 clearly states that the tool inspects the health of knowledge across four distinct modes (stale, orphans, archived, conflicts). It specifies the verb (inspect/audit) and the resource (knowledge in a domain or workspace), and distinguishes itself from sibling tools by focusing on auditing and maintenance tasks.

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

Usage Guidelines5/5

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

The description provides explicit guidance on when to use each mode and what actions to avoid (e.g., 'Never archive autonomously' for stale mode, 'Never auto-file contradicts edges' for conflicts). It also suggests follow-up actions using sibling tools like connect and forget, and clarifies scope (entire workspace vs. specific domain).

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

Install Server

Other Tools

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/corbym/memoryweb'

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