Skip to main content
Glama

agent_desktop_focus

Focus an existing root or named-agent browser window without creating one.

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": {
      "workspaceSlug": "<workspaceSlug>",
      "agentSlug": "<agentSlug>",
      "body": "<body>"
    },
    "name": "agent_desktop_focus"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYes
agentSlugYes
workspaceSlugYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false, destructiveHint=false and openWorldHint=false; the description adds the useful clarification that no new window is created. It omits what happens when the target window does not exist, whether focusing needs the window to be running, and any permission requirements — meaningful gaps for a state-changing operation.

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?

A single short sentence, front-loaded with the action and scoped by the 'without creating one' qualifier, with no filler. Brevity here comes at the cost of detail that is better charged to completeness, not verbosity.

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

Completeness2/5

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

Three required parameters at 0% schema coverage plus a nested request body, no output schema, and no annotation detail on permissions or failure modes. The description conveys intent but leaves an agent without the parameter meanings or edge-case behavior needed to call it reliably.

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?

Score corrected: schema description coverage is 0% across three required parameters (workspaceSlug, agentSlug, nested body.requestId), and the description supplies none of that meaning — it only hints that the target may be 'root' or a named agent. That partial hint about agentSlug is the sole added value over an entirely undocumented schema, which is insufficient compensation.

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?

States a specific verb ('Focus') and resource ('root or named-agent browser window'), and explicitly rules out creation. It is clearly distinguishable from a window-creating sibling, though it names no sibling directly.

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?

The phrase 'existing ... without creating one' implies a when-not condition (don't use this to open a window), but no alternative tool is named and no prerequisites are given. Usage is implied rather than spelled out.

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.