Skip to main content
Glama
deepak-bhardwaj-ps

Smriti MCP

rebuild_memory

Fix frontmatter issues and normalize wikilinks using memory titles and aliases, then rebuild index files to maintain a consistent memory store.

Instructions

Repair and rebuild the memory store: optionally fix frontmatter, apply or normalize wikilinks from memory titles and aliases using longest matches first, then rebuild index.md and index.yaml.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
apply_wikilinksNoWhen true, add and normalize wikilinks based on memory titles and aliases.
fix_frontmatterNoWhen true, repair missing or malformed required frontmatter fields before indexing.
group_by_categoryNoWhen true, group generated index.md entries under category headings.
dry_runNoWhen true, report proposed frontmatter and wikilink changes without writing files or indexes.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

The description discloses the key behaviors: fixing frontmatter, applying wikilinks with 'longest matches first', and rebuilding indexes. It also mentions the dry_run flag for testing. However, it does not explicitly state whether existing data is overwritten or the full side effects.

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 a single sentence that packs significant detail, but it is somewhat dense and could be split for readability. It is concise but not perfectly structured.

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 presence of an output schema, the description does not need to detail return values. It covers the main functionality and parameters. However, it lacks high-level context on when to run this tool relative to other operations (e.g., after creating memories).

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 context beyond schema by mentioning 'longest matches first' for wikilinks and that dry_run reports changes without writing. This adds value for understanding parameter behavior.

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's purpose: 'Repair and rebuild the memory store' with specific actions (fix frontmatter, apply wikilinks, rebuild indexes). It distinguishes from siblings by mentioning rebuilding index.md and index.yaml, which other tools like build_memory_index may only partially cover.

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

Usage Guidelines3/5

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

While the description implies usage for repairing the memory store, it does not explicitly state when to use this tool vs alternatives like build_memory_index or append_memory. No exclusions or prerequisites are given.

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/deepak-bhardwaj-ps/smriti-mcp'

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