Skip to main content
Glama

set_headless

Switches the browser between headed and headless modes and restarts Chromium to apply the change; switching to headless requires force when non-blank tabs are open.

Instructions

Switch headed (default) vs headless mode; restarts Chromium on change (switching to headless refuses if non-blank tabs exist unless force=True). Prefer wait_for_human() for login/2FA.

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": "set_headless"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNo
headlessNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.2/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full behavioral burden, and it does disclose the key side effect: Chromium restarts on change. It also discloses the refusal condition and the force override. It does not say whether tab or session state survives the restart beyond the refusal guard, which is the main remaining gap.

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?

A single dense sentence that front-loads the action, then the restart side effect, then the conditional refusal and the alternative. No wasted clauses; parenthetical structure keeps the caveats readable.

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?

An output schema exists, so return values need no explanation, and the tool is simple with two optional parameters. The description covers the restart, the refusal guard, and the alternative tool. The unresolved default-mode ambiguity is the one notable incompleteness.

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 0%, so the description must compensate. It explains force well (overrides the refusal when non-blank tabs exist) and implies headless selects the mode. However, calling headed the 'default' conflicts with the schema's headless default of true, which muddies rather than clarifies the parameter.

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: switching between headed and headless Chromium mode. It also names the sibling alternative (wait_for_human) for the login/2FA case, so an agent can distinguish this tool from adjacent ones without opening the schema.

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?

Gives a clear routing rule — prefer wait_for_human() for login/2FA — plus the precondition that switching to headless is refused when non-blank tabs exist unless force=True. It stops short of explicitly saying when headed mode is preferable, so the guidance is strong but not exhaustive.

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