Skip to main content
Glama
NabuDesk MCP server

NabuDesk MCP server

Official
by NabuxAi

switch_business

Switch the active business context for the current session using a business ID or name search; later calls then default to that business.

Instructions

Switch the active business context for this session. Pass either business_id directly or search to find by name. Subsequent tool calls will use this active business by default.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "switch_business"
  }
}

Input Schema

NameRequiredDescriptionDefault
searchNoBusiness name or search substring to find and switch to.
business_idNoNumeric ID of the business to switch to.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden, and it does disclose the key trait: this mutates session-scoped state and changes the default business for later calls. It does not say what happens when the ID is invalid, whether search failures fall back to a list, or whether the switch persists beyond the session, which are meaningful gaps for a stateful 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?

Three short sentences, front-loaded with the action, then the two invocation paths, then the downstream effect. Every sentence adds information and none repeats the schema verbatim.

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 two-parameter tool with full schema coverage and no output schema, the definition covers the action, both input paths, and the persistent side effect on later calls. The only missing piece is failure behavior when neither search nor business_id resolves to a business.

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 100%, so both parameters are already documented and the baseline is 3. The description adds the either/or framing ('pass either business_id directly or search'), clarifying that the two parameters are alternative lookup paths rather than complementary inputs, which is a modest but real addition.

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 gives a specific verb and resource: 'Switch the active business context for this session.' That is clearly distinct from read-oriented siblings like get_business or get_active_business, since it names a state-changing action rather than a lookup. It stops short of naming an explicit alternative, which keeps it from a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It tells the agent how to invoke the tool (business_id directly or search by name), which implies usage, and notes that subsequent calls inherit the context. It never states when this tool should not be used, nor does it point to get_active_business or list_businesses as the way to discover an ID before switching, so the routing guidance is only implied.

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