Skip to main content
Glama
NabuDesk MCP server

NabuDesk MCP server

Official
by NabuxAi

upsert_knowledge

Add or replace knowledge base items by title, embedding and indexing them in one batch so reusing a title updates the existing item instead of creating duplicates.

Instructions

Add or replace knowledge items. Title is the identity: re-sending the same title rewrites that item instead of creating a near-duplicate. Embeds and indexes to Qdrant in one batch. Returns embedded alongside written — an item written without a vector can never be retrieved, so compare them. Fails with 503 rather than writing anything if the embedding provider is down.

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": {
      "items": "<items>"
    },
    "name": "upsert_knowledge"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
business_idNoOptional if active business was set via switch_business.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses the external side effect (embedding and indexing to Qdrant in one batch), the atomic fail-fast behavior (503 with nothing written if the embedding provider is down), and the destructive implication of rewriting an existing item. It also flags the failure mode an agent must watch for (written without a vector).

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 tight sentences, each carrying non-obvious information: identity semantics first, then mechanism, then return-value interpretation, then failure mode. No restatement of the name and no filler.

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?

With no output schema, the description responsibly explains the meaning of the `embedded` vs `written` comparison, which is what an agent needs to judge success. Remaining gaps are minor for this complexity: authentication or permission requirements and batch-size limits are unstated.

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 50% and the description compensates by explaining that `title` is an identity key rather than a label, and that `content` gets embedded and indexed. It does not describe content format expectations, size limits, or how many items a batch can hold, leaving the array parameter partially underspecified.

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?

States a specific verb pair and resource ('Add or replace knowledge items') and immediately pins down the identity rule ('Title is the identity'), which is the single fact that separates an add from a rewrite. That distinguishes it implicitly and clearly from list_knowledge, delete_knowledge, and reindex_knowledge.

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 concrete selection guidance for the main decision an agent faces — reusing a title to rewrite vs sending a new title to create, explicitly framed as avoiding a 'near-duplicate'. It does not name sibling alternatives (e.g. reindex_knowledge) or state when to prefer them, so it stops short of a full when/when-not treatment.

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