Skip to main content
Glama

learn

Idempotent

Save durable decisions, corrections, and facts that cost real effort to find into a persistent knowledge base for future retrieval. Use tags for scoping and automatic section splitting for structured content.

Instructions

Store durable knowledge in the agent's second brain. Store decisions, corrections, and facts that cost real effort to find. Do not store what the code or docs already say, chat summaries, guesses, or secrets. When a stored fact is wrong, fix it with revise, not a second copy. Structured content (Markdown, HTML, TOML) splits into sections sharing a docid, each carrying a level and a parent. Attach tags for scoping. replace matches on title within its document and heading path; a title with neither matches on title alone, so name things distinctly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tagsNoTags for scoping and filtering
typeNoMIME type or format hint. Supported: text/markdown, text/html, application/toml (also text/toml, text/x-toml), text/plain, image/*. Default: text/markdown.
docidNoDocument ID to group sections under. Set automatically when content splitting is active.
titleNoTitle for the content. When the content splits into multiple sections this names the document; it does not disable splitting. Required for image/* types.
contentYesRaw text or Markdown content to index. Do not wrap in JSON.
replaceNoReplace existing section with same source key (supersession)
descriptionNoOptional description. When the content splits, it describes the document and is stored on its root section.
sectionTypeNoPartition to scope the operation to: default | skill | agent
Behavior4/5

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

Annotations already say openWorldHint is false, idempotentHint is true, and destructiveHint is false. The description adds useful behavioral detail: structured content splits into sections sharing a docid, each with level and parent, and replace matching follows title/document/heading rules. This goes beyond the annotations without contradicting them.

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 dense but about 100 words, and it front-loads the core purpose before giving storage rules and replacement semantics. Every sentence contributes practical guidance, with no wasted repetition.

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 large sibling family, the description gives sufficient context about why to perform the operation and how content and replace behave. The main gap is that it does not explicitly explain the role of sectionType relative to skill- and agent-scoped sibling tools, which would make it fully self-contained.

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 description coverage is 100%, so the baseline is already high. The description adds semantic value by explaining why tags matter, how content splitting behaves, and how replace matches titles against documents or heading paths, which the schema descriptions do not fully convey.

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 names a clear action and resource: storing durable knowledge in the agent's second brain, with concrete examples like decisions, corrections, and facts. This distinguishes it from read/query tools such as retrieve, recall, and search.

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?

It gives explicit guidance on what to store (facts that cost real effort to find), what not to store (code/docs content, chat summaries, guesses, secrets), and directs corrections to revise instead of duplicating knowledge. It does not explicitly address the general/member scopes such as skill-learn or agent-learn, but sectionType helps cover that gap.

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/diko316/knowledge-base-db'

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