Skip to main content
Glama

Create Knowledge Base Article

create_kb_article

Write a new article. Content is Markdown. Publishing straight away is allowed unless the linked video is still awaiting approval, which returns 409. To write it in a language other than the knowledge base's main one, set sourceLocale (an enabled locale): it is then shown only to readers in that language until it is translated with translate_kb_article. The language can't be changed later.

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": {
      "sectionId": "<sectionId>",
      "title": "<title>",
      "slug": "<slug>",
      "content": "<content>"
    },
    "name": "create_kb_article"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYes
stateNo
titleYes
tagIdsNo
contentYesMarkdown
excerptNo
sectionIdYes
visibilityNo
sourceLocaleNoThe language the title and content are written in, e.g. 'de'. Defaults to the knowledge base's main language.
linkedVideoIdNo

Output Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / versionNote
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Adds substantial behavior beyond the annotations: a concrete 409 failure mode tied to an unapproved linked video, the reader-visibility consequence of sourceLocale (shown only to that language's readers until translated), and the immutability of language after creation. Annotations only declare non-read-only and open-world, so this is valuable added context. It still omits what happens to the returned resource, whether publishing is public immediately, and permission requirements.

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?

Four tight sentences, front-loaded with the core action before the conditional edge cases (409, locale). Each sentence carries operational content; there is no filler. Minor density cost from stacking three separate conditionals in one paragraph.

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?

An output schema exists, so return values need not be explained, and the trickiest hazards (publish conflict, locale visibility, immutability) are covered. But for a 10-parameter creation tool with only 20% schema coverage, the description leaves a third of the surface (state, visibility, slug, sectionId, tags, excerpt) undocumented, which is a material gap for a create operation.

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?

Coverage is 20% across 10 parameters, so the description must compensate and only partly does: it clarifies content (Markdown), sourceLocale (enabled locale, defaults to KB main language, immutable), and linkedVideoId's approval gating. slug, sectionId, tagIds, excerpt, visibility, and especially state (draft/published/archived) are never explained, despite the enum in 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?

Opens with a specific verb+resource ('Write a new article') and immediately adds the content format ('Content is Markdown'). It implicitly contrasts with update_kb_article and explicitly names translate_kb_article, so the agent can distinguish create from update without opening schemas. Slightly short of 5 because it never states the required minimal fields (sectionId, title, slug) that define the creation target.

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?

Gives real selection/routing logic: publish immediately unless the linked video is pending approval (409), use sourceLocale for non-default languages, and use translate_kb_article to localize afterwards. It does not cover alternatives like import_kb_articles or kb_article_from_video, and leaves the choice of draft vs published vs archived state unaddressed.

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