Skip to main content
Glama
NabuDesk MCP server

NabuDesk MCP server

Official
by NabuxAi

upsert_business

Create a new business or update an existing one by owner and name, making retries safe. Provide ready-made AI context or labeled sections to configure its support behavior.

Instructions

Create a business, or update the existing one with the same name for the same owner. Idempotent by (owner, name) — safe to retry. Pass either ai_context directly, or sections to have the labelled context assembled the same way the panel builds it.

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>",
      "user_id": "<user_id>"
    },
    "name": "upsert_business"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
localeNo
pausedNo
user_idYesOwner user id.
sectionsNoLabelled context sections, assembled in order. Keys: business_type, reply_language, reply_tone, target_audience, services, pricing, policies, working_hours, handoff_rules, notes.
usernameNoTelegram bot username, without @. Defaults to the platform bot.
ai_contextNoReady-made context. Takes precedence over `sections`.
ai_enabledNo
history_limitNo
support_contactNo
web_search_enabledNoLeave false for support bots — open web search is the main source of confidently wrong answers.
cross_chat_learningNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden and it does disclose two non-obvious traits: the idempotency key and that ai_context takes precedence over sections. It omits what happens to fields omitted on an update (preserved or cleared?), any permission/auth requirements, and whether the response indicates create vs update — significant gaps for a 12-parameter mutation.

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?

Two sentences, zero filler, and the create-or-update purpose plus the idempotency guarantee lead before the parameter-selection note. Every clause conveys information an agent needs.

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?

For a 12-parameter un-annotated mutation with no output schema, the definition is competent but incomplete: it is silent on partial-update semantics, on permissions, and on what the caller gets back to distinguish a creation from an update. The precedence rule and idempotency cover the most important behaviors but not the full set.

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 low at 42% across 12 parameters, but the description targets the hardest ones, explaining the either/or relationship between ai_context and sections and that sections are assembled in the same order the panel uses. The remaining toggles (paused, ai_enabled, history_limit, cross_chat_learning) still get no meaning from the description, though their names are largely self-describing and web_search_enabled carries a strong schema note.

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?

The description opens with a specific verb and resource ('Create a business, or update the existing one') and defines the exact matching key — same name for the same owner. That upsert framing cleanly separates it from read-side siblings like get_business or list_businesses.

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 states the create-or-update condition and tells the caller the operation is idempotent by (owner, name) and safe to retry, plus which of two context inputs to supply. It stops short of explicit exclusions, e.g. when to prefer switch_business or get_business first to check an entity already exists, but the retry guidance is real when-to-use content.

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