Skip to main content
Glama

memshelf_resolve

Idempotent

Resolves multi-writer conflicts on a memory shelf by merging parallel sessions' data and rebuilding derived files. Also safe for rebuilding when no conflict exists.

Instructions

Resolve the multi-writer conflict class (two sessions shelved on parallel branches): union ledger/recall-log rows and .meta.json keys from both sides, rebuild INDEX.md and stats.svg from docs/, then run doctor. Conflicting episode files are reported as unresolved, never auto-merged. Also safe outside a conflict — degrades to a derived-files rebuild.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Adds significant detail beyond annotations: union of rows/keys, rebuild of INDEX.md and stats.svg, running doctor, no auto-merge of conflicting episodes. IdempotentHint already present, but descriptions enriches behavioral understanding.

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?

Single sentence with clear front-loading of purpose and key behaviors. No verbose or redundant elements.

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?

Covers conflict resolution behavior, safe usage outside conflict, and key outcome (unresolved episodes). With output schema present, return info not needed. Minor gap: no mention of required shelf state, but sufficient.

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?

Description does not mention parameters; schema descriptions exist for 'shelf_path' and 'commit'. With 0% description coverage, the agent relies on schema, which is adequate due to good schema descriptions.

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 the tool resolves multi-writer conflicts and rebuilds derived files, with specific steps (union, rebuild, doctor). It distinguishes from siblings by addressing a unique conflict scenario.

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?

Explicitly describes when to use (conflict of two parallel sessions) and notes safety outside conflict (degrades to rebuild). Does not explicitly exclude other tools, but context is clear.

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/ignatenkofi/memshelf-mcp'

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