Skip to main content
Glama

Switch business

switch_business
Idempotent

Switch the active business for subsequent MCP tool calls in this session. The switch is this MCP session's alone: other agents or chats on the same key stay where they are, and a new session starts in the key owner's own business - which a client may open between turns, so check current_business before writing. To run one call in another business without switching, give that call a business argument instead; every tool except this one, list_businesses and current_business takes it. Target must be one the current bearer can reach — call list_businesses first if unsure. Provide exactly one of businessName, businessId, or userId. Writes in the current business are kept when switching; persist_database confirms a batch reached disk (more in azquo_skills id 775).

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
userIdNoPeer User id (from list_businesses).
businessIdNoBusiness id.
businessNameNoBusiness name (case-insensitive match).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the mutation/idempotency profile; the description adds substantially more: the switch is session-local and does not affect other agents on the same key, new sessions may reopen the key owner's business (so check current_business before writing), and writes in the prior business are retained. This is exactly the extra context the annotations cannot carry.

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?

Front-loaded with the core action and the session-scoping caveat, then the alternative and the constraint. Dense but nearly every sentence carries operational value; the trailing reference to persist_database and 'azquo_skills id 775' is mildly tangential.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a state-mutating, no-output-schema tool, the description covers scope, side effects, prerequisites, the selection constraint, and the interaction with per-call business arguments. Nothing an agent needs to invoke it safely is missing.

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 100%, so baseline is 3, but the description adds a genuine constraint the schema does not express: 'Provide exactly one of businessName, businessId, or userId' (the schema lists all three as optional with an empty required array). It also points at list_businesses as the source of valid values.

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 and resource ('Switch the active business') plus the precise scope of the effect ('for subsequent MCP tool calls in this session'). It implicitly separates itself from current_business (read) and list_businesses (discovery) by naming them as the other tools that don't take a business argument.

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

Usage Guidelines5/5

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

Explicitly gives the alternative path ('to run one call in another business without switching, give that call a business argument instead'), the prerequisite ('call list_businesses first if unsure'), and the exactly-one-of rule. An agent has everything needed to choose this tool or avoid it.

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