Skip to main content
Glama

scenario.apply

Apply a bundle of browser conditions at once, such as slow mobile, poor network, offline, cold load, or low-end desktop, instead of setting each switch manually.

Instructions

Apply a bundle of conditions at once: slow-mobile, terrible-network, offline, cold-load, low-end-desktop. Beats setting fifteen switches by hand.

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": {
      "scenario": "<scenario>"
    },
    "name": "scenario.apply"
  }
}

Input Schema

NameRequiredDescriptionDefault
scenarioYes
target_idNoTarget handle (tgt_*). Omit for the active page.
browser_idNoBrowser handle (br_*). Omit to use the only running browser, or auto-launch one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false and openWorldHint=true, and "Apply" is consistent with a state-changing operation, so no contradiction. Beyond that, the description does not disclose what actually changes (network throttling, CPU throttle, cache state), whether prior overrides are reset, whether the effect persists across navigation, or how it interacts with the target/browser scoping — all of which matter for a mutating tool.

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?

Two short sentences, front-loaded with the capability and followed by the value proposition. The preset list earns its place as de facto enumeration, though "fifteen switches" is loose marketing phrasing rather than precise information.

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 three-parameter, no-output-schema mutating tool, the definition covers what it does and what values it accepts but not the consequences: what state is altered, whether existing per-setting overrides are cleared, and how long the scenario holds. Those gaps are material given readOnlyHint=false.

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 67%; target_id and browser_id are documented inline, but the required "scenario" parameter has no schema description at all. The description fills that gap by naming five concrete bundle values, which is meaningful signal an agent cannot get from the bare string type, though it never says whether the list is exhaustive or how invalid names behave.

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?

Names a specific verb (Apply) and a specific resource (a bundle of conditions/presets), then enumerates concrete preset names like slow-mobile, terrible-network, offline, cold-load and low-end-desktop. The purpose is unambiguous, but it never contrasts itself with siblings such as scenario.list or qa.scenario_draft, so an agent must infer that this one mutates while others enumerate or draft.

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?

"Beats setting fifteen switches by hand" implicitly tells the agent to prefer this over manually composing individual throttle/network/CPU settings, which is real but indirect guidance. There is no explicit when-not condition, no mention of what to call to see available bundles, and no prerequisite or exclusion stated.

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

Deploy Server

Other Tools