Skip to main content
Glama

location.set

Override browser geolocation using coordinates or a preset city, or make geolocation unavailable for testing.

Instructions

Override geolocation by coordinates or preset (mumbai, new-york, london, tokyo, sydney, san-francisco), or make it unavailable.

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": "location.set"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false and openWorldHint=true, so the agent already knows this mutates external state; the description adds the preset names and the 'unavailable' mode, which are useful. It does not disclose persistence (does the override survive navigation?), which target it applies to, or that a browser may be auto-launched, leaving meaningful behavioral gaps for a state-changing tool.

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 front-loaded sentence with no filler; the preset list is long but each item carries necessary information absent from the schema.

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 7-parameter, all-optional mutation tool with no output schema, the description covers the primary modes but omits accuracy semantics, override lifetime, and scoping to target vs. active page, so an agent cannot fully predict the effect 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 only 29% across 7 parameters, but the description supplies the actual allowed preset values (mumbai, new-york, london, tokyo, sydney, san-francisco) that the schema lacks as an enum, and names the coordinate and unavailable modes. It says nothing about 'accuracy', and target_id/browser_id are only covered by the schema itself.

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 geolocation') and enumerates the three operating modes: coordinates, preset, or unavailable. It is clear what the tool does, though it does not explicitly differentiate itself from nearby siblings such as sensor.set or page.set_viewport.

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?

The sentence describes the available input modes but gives no guidance on when to use this versus alternatives, no prerequisites (such as needing a running browser), and no note on how long an override persists or how to clear it.

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