Skip to main content
Glama

Update Knowledge Base Article

update_kb_article
DestructiveIdempotent

Edit an article, publish it by setting state to 'published', or attach/detach its video with linkedVideoId. Locked articles are frozen: only sectionId, state, seo, tagIds and versionNote can change, anything else (the slug included) returns 423. versionNote is the note shown above the article on the live page (e.g. what changed since the previous version); each change is logged in the change history with the old and new text.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "articleId": "<articleId>"
    },
    "name": "update_kb_article"
  }
}

Input Schema

NameRequiredDescriptionDefault
seoNo
slugNo
stateNo
titleNo
tagIdsNo
contentNo
excerptNo
articleIdYes
sectionIdNo
visibilityNo
versionNoteNoNote shown above the article on the live page. Editable while locked. null or empty clears it.
linkedVideoIdNoAttach a video by id. null detaches the current one.

Output Schema

NameRequiredDescriptionDefault
idNo
slugNo
stateNo
titleNo
lockedNo
tagIdsNo
positionNo
sectionIdNo
visibilityNo
versionNoteNo
sourceLocaleNo
linkedVideoIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / versionNote
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Note shown above the article on the live page. Editable while locked. null or empty clears it."
      +}
    • addedOutput schema / properties / versionNote
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true), the description adds real behavioral detail: locked articles freeze the slug and most fields and reject them with HTTP 423, and versionNote is surfaced on the live page and logged with old/new text in change history. What is missing is what 'locked' means or what causes an article to be locked, and any note on the destructive impact of overwriting content.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences, front-loaded with the primary edit/publish capability before the edge-case lock rule. The versionNote sentence is somewhat long and partly restates the schema's own versionNote description, which is the main redundancy.

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

Completeness5/5

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

For a destructive mutation tool with an output schema (so return values need no explanation), the description covers the main modes, the lock restriction with its exact error code, and the semantics of the least obvious parameter. The remaining gaps are minor given annotations already flag destructiveness and idempotency.

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 only 17% out of 12 parameters, so the description must compensate. It meaningfully explains linkedVideoId (attach/detach), state (publishing), versionNote (live-page note, cleared by null/empty, logged in change history), and the lock status of slug/sectionId/state/seo/tagIds, but leaves title, content, excerpt, visibility, seo internals, and articleId itself undefined in both places.

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?

The description names a specific verb and resource ('Edit an article') and enumerates its modes: publishing via state='published' and attaching/detaching a video via linkedVideoId. It is clearly an edit operation distinct from create_kb_article or delete_kb_article, though it never names or contrasts with any sibling explicitly.

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 concrete operational guidance: use state='published' to publish, use linkedVideoId (with null to detach) for video, and use versionNote to record what changed. The lock rule explicitly states which fields are usable and which are not ('anything else (the slug included) returns 423'), which is strong when/when-not guidance at the field level, but there is no routing among alternative tools.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources