Skip to main content
Glama

akb_put

Store a new document in your knowledge base with optional tags, type, and metadata. Returns a canonical URI for referencing and searching.

Instructions

Store a new document. The response carries the canonical uriakb://{vault}/coll/{collection}/doc/{filename} when stored under a collection, or akb://{vault}/doc/{filename} at the vault root. Use that URI to address the document from every other tool. Automatically chunked and indexed for semantic search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNoLocal file path to read as document body (alternative to content). Provide either file or content, not both.
slugNoOptional explicit slug for the document filename. When stored under a collection the URI is `akb://{vault}/coll/{collection}/doc/{slug}.md`; at the vault root it is `akb://{vault}/doc/{slug}.md`. When omitted, the slug is derived from the title. Pass it to keep the path stable and meaningful when the title is friendly, changeable text (e.g. slug `github-issue-123` with a human-readable title).
tagsNoTags for classification
typeNoDocument type. Free-form — any string is accepted. Recommended vocabulary: note (default), report, decision, spec, plan, session, task, reference, skill. Use a custom value when none fit (e.g. an OKF concept type).note
titleYesDocument title
vaultNoTarget vault name. Required unless `parent` is given.
domainNoDomain: engineering, product, ops, legal, etc.
parentNoParent location as a canonical URI — `akb://{vault}` for the vault root, `akb://{vault}/coll/{path}` for a collection. When given, the doc is placed there and `vault`/`collection` are derived from the URI. Use this in drill-down chains: paste the `uri` from an `akb_browse` response straight back in.
statusNoLifecycle status. Defaults to 'draft'; pass 'active' to publish on create instead of promoting later with akb_update. Descriptive metadata only — it does not gate search, browse, or access.draft
contentYesDocument body in Markdown
summaryNoBrief summary (auto-generated if omitted)
collectionNoCollection (directory) path, e.g. 'api-specs' or 'meeting-notes'. Ignored when `parent` is given.
depends_onNoakb:// URIs this depends on
related_toNoakb:// URIs of related resources
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It reveals that the response includes the canonical URI and that documents are automatically chunked and indexed for semantic search. This adds useful context about side effects (indexing) and response content, though it stops short of detailing error conditions or overwrite behavior.

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 three sentences, front-loaded with the essential action. Each sentence provides distinct value: the operation, the response URI and usage, and the automatic indexing side effect. No wasted words.

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?

For a 14-parameter tool with no output schema, the description clarifies the most critical contextual points: the canonical URI for addressing the document and automatic indexing. It explains the response enough for an agent to use the URI, and the schema covers the rest. It could be improved by noting that it creates new documents only (not updates) and perhaps an example of the URI.

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?

The schema covers all 14 parameters with detailed descriptions (100% coverage), so the description doesn't need to restate them. It does add value by explaining the URI conventions (akb://vault/...), which relates to parameters like slug and parent, but this is more contextual than parameter-specific. The baseline of 3 is appropriate.

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 opens with a clear verb+resource: 'Store a new document.' It distinguishes from siblings like akb_put_file (file upload) and akb_update (updating existing docs) by explicitly stating it creates a new document. The additional detail about the canonical URI and automatic indexing reinforces the core purpose.

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 implies when to use it: for storing new documents that should be searchable and addressable via a canonical URI. It says 'Use that URI to address the document from every other tool,' which is practical guidance. However, it does not explicitly mention alternatives or when not to use it (e.g., use akb_update for modifying existing docs).

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/dnotitia/akb'

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