Skip to main content
Glama

chrome_set_user_agent

Override the Chrome User-Agent string for a tab or platform to test device- and browser-specific behavior without launching a separate browser.

Instructions

Override the User-Agent string

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": {
      "userAgent": "<userAgent>"
    },
    "name": "chrome_set_user_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdNo
platformNo
userAgentYesUser-Agent string

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it says almost nothing. It does not state whether the override persists across navigations, how to reset it, whether it requires an attached tab, or whether it affects network requests versus only JS-visible navigator.userAgent.

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?

Six words with zero filler, and the key concept is front-loaded. But its brevity is under-specification rather than disciplined concision; there is no structure because there is essentially no content.

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?

For a three-parameter mutation with no annotations and no output schema, the definition is too thin. An agent cannot tell from this description whether the override is scoped to a tab, what platform does, or what happens on success or failure.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33%: userAgent is documented, but tabId and platform are bare strings with no enums or descriptions. The description does not compensate at all — it never mentions the two undocumented parameters or explains how platform interacts with the User-Agent string.

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 ("Override the User-Agent string"), so an agent can identify the operation immediately. It does not differentiate from lookalike siblings such as chrome_set_extra_headers or chrome_set_bypass_csp, which also 'set' browser-level overrides, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool, when not to, or which sibling to choose for header/identity overrides. Nothing indicates whether the override is per-tab (the tabId parameter) or global, which is exactly the kind of context an agent needs to pick this tool.

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