Skip to main content
Glama

kb_repair_aliases

Find file/flow notes whose identityAliases no longer match their current code, then reconcile by updating the note with kb_write and setting aliasesVerified:true.

Instructions

List file/flow notes whose identityAliases may no longer describe them — a DIFFERENT problem from kb_repair: that one finds notes with NO aliases at all, this one is for aliases that exist but have gone stale (a note rewritten several times can carry words that were really symptoms of an earlier write, not stable facts). Paginated 10 notes at a time.

Each entry shows the current (capped) identityAliases AND the full historical union hidden past the render cap — read both before retracting anything, because dropping a visible alias can resurface an older hidden one on the next fold. Re-read the note's code, then reconcile via kb_write (retract stale entries, re-put the rest) — never mechanically, every judgement needs the current code. End every note's kb_write with aliasesVerified:true on it, even when nothing changed — that is what stops it reappearing; without it the same note resurfaces on your next call.

Returns "No file/flow notes to reconcile." when done. Once a batch is marked aliasesVerified, call again with NO offset (or offset 0) — verified notes drop out of the list on their own. Do not increment offset yourself across a reconciling pass: the list shrinks as notes get marked, so a fixed offset (including a stale more.nextOffset) silently skips whatever shifted into that position. offset/more.nextOffset still work for browsing the list WITHOUT marking anything — just not as a way to advance while reconciling.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNotes per page. Defaults to 10.
offsetNoPagination offset (0-based). For browsing only — do NOT increment this across calls once you start marking notes aliasesVerified, since the eligible list shrinks as you go. Leave at 0 (or omit) and just call again; reviewed notes fall out automatically.
Behavior5/5

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

With no annotations provided, the description carries the full burden and delivers richly: explains the pagination shrink behavior, the aliasesVerified mechanic that stops reappearance, the resurfacing of hidden aliases on the next fold, and the exact return string 'No file/flow notes to reconcile.' Also warns about stale nextOffset silently skipping entries. Exceptionally transparent about behavioral edge cases.

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 thorough but densely packed with genuinely useful operational detail. It front-loads the core purpose first, then branches into reconciliation workflow and pagination caveats. Each sentence earns its place, though it's long enough that a lighter-weight summary of the critical warnings could improve scannability.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given there is no output schema and no annotations, this description compensates fully. It covers the return value ('No file/flow notes to reconcile.'), pagination behavior, workflow dependencies (kb_write, aliasesVerified flag), and edge-case pitfalls. For a complex reconciliation tool with no structured metadata support, this is exceptionally 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 baseline is 3. The description adds meaningful value beyond the schema: it explicitly warns about the offset pitfall ('do NOT increment this across calls once you start marking notes aliasesVerified') and clarifies that offset is for browsing only, while reconciled notes auto-drop. This is useful semantic depth beyond what the schema description states.

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 states precisely what the tool does: lists file/flow notes whose identityAliases have gone stale, explicitly distinguishes it from kb_repair (no aliases at all vs. stale aliases). The verb 'List' plus the specific resource (file/flow notes with stale identityAliases) is specific and immediately differentiated from the sibling kb_repair.

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?

Provides explicit when-to-use vs. when-not-to: 'a DIFFERENT problem from kb_repair' naming the exact alternative. Also gives explicit operational guidance: don't increment offset while reconciling, call again with offset 0, never retract mechanically, end every kb_write with aliasesVerified:true. This is exemplary usage guidance.

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/AkashGoenka/coldstart'

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