Skip to main content
Glama

akb_update

Modify an existing knowledge base document by sending only the fields you want to change, such as title, tags, status, or full Markdown body. Use targeted edits instead for inline insertions or replacements.

Instructions

Update an existing document. Only provide fields you want to change. The content field replaces the complete Markdown body; never pass a partial fragment such as a newly uploaded image. Use a targeted akb_edit for inline insertion or replacement.

Input Schema

NameRequiredDescriptionDefault
uriYesDocument URI
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.
tagsNo
typeNoNew document type
titleNoNew title
domainNoNew document domain
statusNo
contentNoNew document body (replaces existing)
messageNoCommit message describing the change
summaryNo
depends_onNoUpdate the same-vault dependency list (akb:// URIs). Use an ordinary Markdown link in content for a cross-vault reference.
related_toNoUpdate the same-vault related list (akb:// URIs). Use an ordinary Markdown link in content for a cross-vault reference.
expected_commitNoOptional OCC pin — reject if the document current_commit moved.
_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.
expected_content_hashNoOptional body hash pin — reject if the current document body hash moved.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.0.19
    • addedInput schema / allOf
      Added value: +[
      +  {
      +    "not": {
      +      "required": [
      +        "file",
      +        "content"
      +      ]
      +    }
      +  }
      +]
    • 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
  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 / depends_on / description
      Previous value: -"Update dependency list (akb:// URIs)"New value: +"Update the same-vault dependency list (akb:// URIs). Use an ordinary Markdown link in content for a cross-vault reference."
    • addedInput schema / properties / domain
      Added value: +{
      +  "description": "New document domain",
      +  "type": "string"
      +}
    • changedInput schema / properties / related_to / description
      Previous value: -"Update related list (akb:// URIs)"New value: +"Update the same-vault related list (akb:// URIs). Use an ordinary Markdown link in content for a cross-vault reference."
    • addedInput schema / properties / type
      Added value: +{
      +  "description": "New document type",
      +  "type": "string"
      +}
  3. Changed3 schema fields changedv2.0.7
    • addedInput schema / properties / expected_commit
      Added value: +{
      +  "description": "Optional OCC pin — reject if the document current_commit moved.",
      +  "type": "string"
      +}
    • addedInput schema / properties / expected_content_hash
      Added value: +{
      +  "description": "Optional body hash pin — reject if the current document body hash moved.",
      +  "type": "string"
      +}
    • changedInput schema / properties / status / enum
      Previous value: -[
      -  "draft",
      -  "active",
      -  "archived",
      -  "superseded"
      -]New value: +[
      +  "draft",
      +  "active",
      +  "archived"
      +]
  4. Addedv2.0.4
  5. Removedv2.0.1
  6. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations exist, so the description carries the entire behavioral burden. It does disclose the most important hazard, that content wholesale replaces the Markdown body and must not receive a partial fragment, which is genuinely useful beyond the schema's terse "(replaces existing)". It says nothing about required permissions, reversibility/commit history, or how concurrent edits are handled, leaving meaningful behavioral gaps for a mutation tool.

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?

Four short sentences, front-loaded with the core action, then the partial-update rule, then the riskiest parameter's semantics, then the escape hatch to akb_edit. Nothing is repeated and every sentence carries distinct information.

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 15-parameter mutation tool with no output schema and no annotations, the description covers the highest-risk semantics (patching vs. whole-body replacement) and the main sibling routing. It omits the file/content exclusivity rule and the expected_commit concurrency behavior, though both are documented in the schema, so the gap is not fatal.

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?

With 15 parameters at 80% schema coverage the baseline is 3, and the description adds real meaning: it frames the call as a patch (only pass changed fields) rather than a full replacement, and it clarifies the semantics of content specifically. The file-vs-content alternative and the OCC pins are left entirely to schema descriptions.

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?

"Update an existing document" is a clear verb+resource, and the closing sentence carves out akb_edit as the tool for inline insertion/replacement. It does not distinguish itself from akb_update_file, which is also named in the sibling list and competes for the same intent, so the differentiation is incomplete rather than absent.

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?

"Only provide fields you want to change" tells the agent how to invoke it (partial patch), and "Use a targeted akb_edit for inline insertion or replacement" gives an explicit alternative with the condition that selects it. What is missing is guidance on when to prefer this over akb_update_file, plus any prerequisites for mutating a document.

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