Skip to main content
Glama

List, set, move or remove search engines

browser_search_engine

List, set the default, reorder, remove, or reset Firefox search engines to control browser search behavior during automation.

Instructions

Manage Firefox search engines. MEASURED, and this is the whole trick: the SearchService is NOT reachable via resource:// in this build — it lives under the moz-src protocol, so the module id is "moz-src:///toolkit/components/search/SearchService.sys.mjs" and it exports SearchService (a singleton). That object exposes getEngines/setDefault/setDefaultPrivate/moveEngine/removeEngine/restoreDefaultEngines and the add* family (addEngineFromExtension / addOpenSearchEngine / addUserEngine). Older guidance that the service is unreachable was wrong.

Input Schema

NameRequiredDescriptionDefault
nameNoEngine name, for set-default / move / remove
actionYesWhat to do
positionNo1-based position for move

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

Annotations only set readOnlyHint=false; the description does disclose mutating methods such as setDefault, moveEngine, removeEngine, and restoreDefaultEngines, which aligns with that annotation. However, it does not explain effects, whether reset is destructive, required permissions, or error behavior, and the add* family it describes is not in the action enum.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with a short purpose sentence, but the remaining space is spent on an internal-module tangent rather than tool-selection or invocation guidance. That second sentence reads as implementation trivia from the calling agent's perspective.

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 mutating tool with no output schema, the description should cover action semantics and mutation effects; instead it mostly explains SearchService internals. An agent cannot reliably decide between this and browser_get_search_engine or browser_add_search_engine from the description alone.

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%, so name, action, and position are already documented in the schema. The description adds no conditional parameter requirements or syntax beyond that, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening 'Manage Firefox search engines' names the resource but uses a broad verb and never distinguishes this tool from siblings such as browser_get_search_engine, browser_add_search_engine, or browser_search_prefs. The title and action enum carry the specific operations, but the description itself does not.

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 explicit when-to-use or when-not-to-use guidance, and no routing to alternatives. The bulk of the text is an implementation note about moz-src module ids, leaving the agent to infer that list/set-default/move/remove/reset belong here and adding engines belongs elsewhere.

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