Skip to main content
Glama

Create Knowledge Base Section

create_kb_section

Add a section. New sections go to the end of their sibling order; use reorder_kb_sections to move it. Pass parentId (a top-level section's id) to create a sub-section; one level deep only, so a sub-section cannot be a parent. thumbnailUrl puts an image on the section's card. translations sets the name in the knowledge base's other languages. sharedWith opens a top-level section to outside readers on a gated knowledge base.

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": {
      "name": "<name>",
      "slug": "<slug>"
    },
    "name": "create_kb_section"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
slugYes
parentIdNoId of a top-level section to nest under. Omit for a top-level section.
publishersNoRestrict who may create, move or publish articles in this section to these workspace members (user ids). Owners and admins always may, so an empty list means owners and admins only. null removes the restriction. A sub-section without its own list follows its parent. Only owners and admins can set it (403 otherwise).
sharedWithNoShare this top-level section with outside readers of a gated knowledge base, by email domain or address. They sign in and see only the sections shared with them; the knowledge base's own access list keeps full access. null or empty lists stop sharing. Sub-sections follow their parent and can't be shared themselves (400). Only owners and admins can set it (403 otherwise).
visibilityNo
descriptionNo
thumbnailUrlNoPublicly reachable image URL shown on the section's card. Whether it renders as a square tile or a 16:9 banner is a knowledge-base-wide setting, not a per-section one.
translationsNoSection name and description in the knowledge base's other languages, keyed by locale code, e.g. {"fr": {"name": "Premiers pas"}}. Only enabled, non-default locales (get_knowledge_base lists them). Readers on that locale see these instead of the main-language text; a missing field falls back to it.

Output Schema

NameRequiredDescriptionDefault
idNo
nameNo
slugNo
parentIdNo
positionNo
publishersNo
sharedWithNo
visibilityNo
descriptionNo
thumbnailUrlNo
translationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-destructive, non-idempotent and open-world, so the safety profile is covered. The description adds real behavior beyond that: sections append to the end of sibling order, nesting is capped at one level, translations fall back to the main-language text, and sub-sections inherit their parent's sharing. It stops short of describing the response payload, which the output schema covers.

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?

Roughly five sentences, each carrying a distinct constraint, with the append-to-end behavior front-loaded ahead of the per-parameter notes. Some sentences chain multiple clauses (parentId plus depth limit plus sub-sections-can't-be-parents), which makes it slightly dense but nothing is redundant with the schema.

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 nine-parameter mutation tool with nested objects and an output schema, the description covers the decision-relevant and error-prone behavior: placement, nesting depth, sharing eligibility, and translation fallback. The remaining gaps (publishers permissions, visibility semantics) are already documented at length in the schema, so an agent has what it needs to call this correctly.

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 description coverage is a middling 56%, and the description compensates for the weakest spots: it explains parentId's one-level-deep limit, that thumbnailUrl merely sets the card image (with the tile/banner shape being a knowledge-base setting), that translations are keyed by enabled non-default locales with fallback, and that sharedWith only works on top-level gated sections. It adds nothing for publishers or visibility, relying on the schema's already-detailed prose there.

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?

"Add a section" is a specific verb plus resource, and the definition immediately scopes it against siblings by saying new sections land at the end of sibling order and that reorder_kb_sections is the tool for moving them. An agent can distinguish this from update_kb_section, list_kb_sections and reorder_kb_sections without opening any other schema.

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 conditional guidance: pass parentId to nest, but only one level deep so a sub-section cannot itself be a parent; sharedWith applies only to a top-level section on a gated knowledge base. It does not name the sibling to use for editing name/slug afterwards, but the creation-vs-reorder boundary is stated explicitly.

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