Skip to main content
Glama

Focus Tab

tab_focus

Switch the user's Herdr view to a specified tab by ID (e.g., 'w1:t2'), so you can focus a particular terminal tab during agent orchestration.

Instructions

Switch the user's Herdr view to a specific tab (for example 'w1:t2').

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": {
      "tab_id": "<tab_id>"
    },
    "name": "tab_focus"
  }
}

Input Schema

NameRequiredDescriptionDefault
tab_idYesTab ID (for example 'w1:t2').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

B3.4/5.0
Behavior3/5

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

The annotations already disclose the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=false). The description adds only that the effect is on the user's view, which is genuinely useful context beyond the annotations, but it says nothing about what happens if the tab ID does not exist or whether focus changes have side effects.

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, front-loaded sentence with no filler; the example ID is useful rather than wasteful. It could be marginally tighter, but nothing needs removing.

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 simple one-parameter tool with no output schema, the description covers the core action adequately. It leaves open edge-case behavior such as invalid or missing tab IDs, which an agent would need to call it confidently in error-prone situations.

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%, with the tab_id parameter documented and exemplified identically to the description. The description adds no meaning beyond the schema, so the baseline of 3 applies.

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 states a specific verb and resource: 'Switch the user's Herdr view to a specific tab', with a concrete ID format example. An agent can tell this acts on a tab rather than a pane or agent, though the distinction from sibling tools like workspace_focus and agent_focus is left implicit.

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?

Usage is implied by the phrasing 'switch the user's view', which suggests it should be used when the user wants their active view changed. However, no alternatives are named and there is no guidance on when to prefer workspace_focus or agent_focus instead.

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