Skip to main content
Glama

memshelf_init

Idempotent

Creates or updates a memory shelf with documentation layout, fixed categories, and recall rules. Supports local git, plain, or remote git storage without overwriting existing files.

Instructions

Create (or top up) a memory shelf: docshelf layout with fixed categories, the recall-rule INDEX preamble, a POLICY.md template, the ledger header, and a spec-conformant shelf.yml. Storage: git-local (default, no remote), plain, or git-remote (private only). Idempotent — never overwrites existing files.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false. The description adds value by confirming 'Idempotent — never overwrites existing files' and describing storage options (plain, git-local, git-remote). This provides behavioral context beyond the annotations.

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 sentences: the first specifies what gets created, the second covers storage and idempotency. Every sentence adds value, no fluff. Front-loaded with the core purpose.

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 that an output schema exists and the tool has moderate complexity (4 parameters, one enum), the description covers the essentials: shelf structure, storage options, and idempotency. It could mention prerequisites like git availability but is otherwise complete.

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?

Schema description coverage is reportedly 0%, so the description must compensate. It mentions storage types and idempotency but does not detail parameters like 'name', 'remote', or 'shelf_path'. Some context is provided but not enough to fully clarify parameter meaning.

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?

Clearly states the tool creates or tops up a memory shelf with specific contents (docshelf layout, INDEX preamble, etc.), distinguishing it from sibling tools like memshelf_shelve or memshelf_recall. The title annotation 'Bootstrap a memory shelf' reinforces this.

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?

The description provides clear context on what the tool does (initialize a shelf) but does not explicitly state when to use it versus alternatives like memshelf_import. However, the purpose is self-explanatory enough that an agent would infer usage.

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