Skip to main content
Glama

akb_put

Store a new Markdown document in a vault, collection, or root location and receive its canonical URI for addressing it. Automatically chunks and indexes the content for semantic search.

Instructions

Store a new document. The response carries the canonical uri — akb://{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

NameRequiredDescriptionDefault
fileNoLocal file path to read as document body (alternative to content). Omit content entirely when using file, including null or an empty string. Updates require the same original-read conditions as a content update.
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, EXCEPT 'skill', which is reserved for the system-managed vault-skill document. Recommended vocabulary: note (default), report, decision, spec, plan, session, task, reference. 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
contentNoDocument body in Markdown
summaryNoBrief summary (auto-generated if omitted)
collectionNoCollection (directory) path, e.g. 'api-specs' or 'meeting-notes'. Ignored when `parent` is given. 'overview' is a reserved system collection (vault-skill only).
depends_onNoSame-vault akb:// URIs this depends on. Use an ordinary Markdown link for a cross-vault reference.
related_toNoSame-vault akb:// URIs of related resources. Use an ordinary Markdown link for a cross-vault reference.
_vault_skill_ackNoOpaque acknowledgement returned as vault_skill.ack_token. After applying that guide, retry the unchanged operation with this value. The bundled proxy supplies it automatically.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.0.19
    • addedInput schema / allOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "file",
      +        "content"
      +      ]
      +    }
      +  },
      +  {
      +    "anyOf": [
      +      {
      +        "required": [
      +          "content"
      +        ]
      +      },
      +      {
      +        "required": [
      +          "file"
      +        ]
      +      }
      +    ]
      +  }
      +]
    • changedInput schema / properties / file / description
      Previous value: -"Local file path to read as document body (alternative to content). Provide either file or content, not both."New value: +"Local file path to read as document body (alternative to content). Omit content entirely when using file, including null or an empty string. Updates require the same original-read conditions as a content update."
    • addedInput schema / properties / file / minLength
      Added value: +1
    • changedInput schema / required
      Previous value: -[
      -  "title",
      -  "content"
      -]New value: +[
      +  "title"
      +]
  2. Changed5 schema fields changedv2.0.14
    • addedInput schema / properties / _vault_skill_ack
      Added value: +{
      +  "description": "Opaque acknowledgement returned as vault_skill.ack_token. After applying that guide, retry the unchanged operation with this value. The bundled proxy supplies it automatically.",
      +  "maxLength": 128,
      +  "type": "string"
      +}
    • changedInput schema / properties / collection / description
      Previous value: -"Collection (directory) path, e.g. 'api-specs' or 'meeting-notes'. Ignored when `parent` is given."New value: +"Collection (directory) path, e.g. 'api-specs' or 'meeting-notes'. Ignored when `parent` is given. 'overview' is a reserved system collection (vault-skill only)."
    • changedInput schema / properties / depends_on / description
      Previous value: -"akb:// URIs this depends on"New value: +"Same-vault akb:// URIs this depends on. Use an ordinary Markdown link for a cross-vault reference."
    • changedInput schema / properties / related_to / description
      Previous value: -"akb:// URIs of related resources"New value: +"Same-vault akb:// URIs of related resources. Use an ordinary Markdown link for a cross-vault reference."
    • changedInput schema / properties / type / description
      Previous value: -"Document 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)."New value: +"Document type. Free-form — any string is accepted, EXCEPT 'skill', which is reserved for the system-managed vault-skill document. Recommended vocabulary: note (default), report, decision, spec, plan, session, task, reference. Use a custom value when none fit (e.g. an OKF concept type)."
  3. Changed3 schema fields changedv2.0.13
    • addedInput schema / properties / slug
      Added value: +{
      +  "description": "Optional 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).",
      +  "type": "string"
      +}
    • changedInput schema / properties / type / description
      Previous value: -"Document type"New value: +"Document 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)."
    • removedInput schema / properties / type / enum
      Removed value: -[
      -  "note",
      -  "report",
      -  "decision",
      -  "spec",
      -  "plan",
      -  "session",
      -  "task",
      -  "reference",
      -  "skill"
      -]
  4. Changed5 schema fields changedv2.0.7
    • changedInput schema / properties / collection / description
      Previous value: -"Collection (directory) path, e.g. 'api-specs' or 'meeting-notes'"New value: +"Collection (directory) path, e.g. 'api-specs' or 'meeting-notes'. Ignored when `parent` is given."
    • addedInput schema / properties / parent
      Added value: +{
      +  "description": "Parent 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.",
      +  "type": "string"
      +}
    • addedInput schema / properties / status
      Added value: +{
      +  "default": "draft",
      +  "description": "Lifecycle 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.",
      +  "enum": [
      +    "draft",
      +    "active",
      +    "archived"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / vault / description
      Previous value: -"Target vault name"New value: +"Target vault name. Required unless `parent` is given."
    • changedInput schema / required
      Previous value: -[
      -  "vault",
      -  "collection",
      -  "title",
      -  "content"
      -]New value: +[
      +  "title",
      +  "content"
      +]
  5. Addedv2.0.4
  6. Removedv2.0.1
  7. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; it does disclose the return value (canonical akb:// URI with both collection and vault-root forms) and the side effect of chunking/indexing. It omits critical write semantics — whether storing at an existing URI overwrites, errors, or versions — and says nothing about permission prerequisites for a mutation.

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?

Three front-loaded sentences: what it does, what it returns and how to reuse it, and the indexing side effect. No filler, no restating of the name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter write tool with no annotations and no output schema, describing the return URI is genuinely helpful. But overwrite/duplicate behavior, required vault-vs-parent resolution, and error or permission conditions are absent, which is a meaningful gap for a create operation.

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 a baseline of 3 is warranted, and the description adds real value by formalizing the URI a caller can construct from vault/collection/filename and telling the agent to reuse that URI elsewhere. It adds nothing about the 15 parameters beyond that, leaving slug, parent, status, and the ack token entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: "Store a new document," and adds what happens to it (chunked and indexed for semantic search). It does not distinguish itself from siblings akb_put_file or akb_put_image, so an agent must infer whether a Markdown body belongs here versus those tools.

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?

Usage is implied rather than stated: the tool is for documents that should become semantically searchable, and the returned URI is meant for use with every other tool. There is no explicit when-to-use/when-not guidance and no direction on choosing between this and akb_put_file/akb_put_image or akb_edit for updates.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.