Skip to main content
Glama

switch_workspace

Switch this connection to a different Yirla workspace (changes which Yirla workspace the other tools read from), without disconnecting/reconnecting. Call list_workspaces first if you don't know the exact workspace name. Takes effect on the very next tool call. This tool only changes data inside Yirla. Yirla never creates, edits, publishes or changes campaigns, ads, bids, budgets or creative on any ad platform. If the user asks for any of those actions, say plainly that Yirla can't do that, and offer to run an analysis instead.

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": {
      "workspace_name": "<workspace_name>"
    },
    "name": "switch_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
workspace_nameYesName of the workspace to switch to (from list_workspaces).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations declare readOnlyHint=false and destructiveHint=false but say nothing about state. The description fills that gap well: the switch is connection-level, requires no disconnect/reconnect, and 'takes effect on the very next tool call' — genuinely useful for an agent sequencing calls. It does not say how failures are surfaced, which keeps it short of a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first two sentences are tightly front-loaded and earn their place. The closing two sentences about campaigns, ads, bids and budgets are generic guardrail boilerplate unrelated to switching workspaces and would be better placed in a global instruction, diluting an otherwise crisp definition.

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 one-parameter tool with full schema coverage and no output schema, the description covers effect, timing, and the discovery prerequisite — everything needed to invoke it correctly. Only edge behavior (unknown workspace name, whether the switch persists across sessions) is left 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 100% and the schema already says the name comes from list_workspaces. The description reinforces the acquisition path ('Call list_workspaces first if you don't know the exact workspace name'), adding a little workflow meaning beyond the field text, but no format or matching rules (exact vs. fuzzy, case sensitivity).

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 first sentence states a specific verb (switch) and resource (Yirla workspace) and immediately explains the consequence: 'changes which Yirla workspace the other tools read from'. The scope ('only changes data inside Yirla') further separates it from any campaign-mutating sibling.

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 a concrete prerequisite ('Call list_workspaces first if you don't know the exact workspace name') and names the sibling to use for discovery. It also draws a hard boundary on what the tool family will not do. What's missing is what to do on an invalid/unknown name, so the guidance is clear but not fully exhaustive.

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