Skip to main content
Glama

chrome_set_extra_headers

Adds custom HTTP headers to every request in Chrome, optionally scoped to a specific tab, so agents can test auth, localization, or API behavior.

Instructions

Set extra HTTP headers for all requests

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": {
      "headers": "<headers>"
    },
    "name": "chrome_set_extra_headers"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdNo
headersYesKey-value header pairs

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?

With no annotations, the description carries the full behavioral burden. It does not say whether headers persist across navigations or browser restarts, whether they replace or merge with existing headers, whether they apply globally or per-tab, or whether an auth/permission step is needed. "For all requests" hints at scope but conflicts ambiguously with the presence of a tabId parameter.

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?

A single short sentence with no wasted clauses and the action front-loaded. However, it is under-specified rather than genuinely concise; "extra" is vague and the sentence ends before covering scope or persistence.

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 mutation tool with zero annotations, no output schema, and an undocumented tabId parameter, the definition is too thin. An agent cannot confidently call it correctly without knowing persistence, merge behavior, and tab scoping.

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 50%: headers has a schema description ("Key-value header pairs") but tabId is undocumented. The description adds nothing about what tabId does — whether it scopes headers to one tab or is ignored — nor about header merge/replace semantics, so it fails to compensate for the coverage gap.

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 ("Set extra HTTP headers") plus a scope ("for all requests"), so the operation is immediately recognizable. It does not distinguish this from related siblings such as chrome_set_user_agent or chrome_set_bypass_csp, which also modify request behavior, leaving overlap for the agent to resolve.

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 versus other header/request-modifying tools, no prerequisites, and no explanation of how to clear previously set headers. The agent must infer everything about applicability from the single sentence.

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