Skip to main content
Glama

open-url

Opens a URL or URL scheme on a target device to navigate to a web page or deep-link into an installed app.

Instructions

Open a URL or URL scheme on the device. Use when navigating to a web page or deep-linking into an app. On Chromium, this navigates the primary renderer to the given URL; a URL that does not load a page, start a download or run as javascript:, such as tel:, mailto:, an unknown scheme or no scheme, fails there. Cross-platform schemes on native devices: https://, tel:, mailto:. iOS also: messages://, settings://, maps://. Android also: geo:, plus any app-specific deep link. An https:// link opens the native app only if that app is verified for the link's domain (Universal Links / App Links); even then, an iOS simulator may open Safari. To reliably open an installed app, use its custom scheme (scheme://path) or launch-app. On a physical iPhone, the app that receives the URL becomes the app under automation. Returns { opened, url, note? }. note explains the routing caveat when a web URL was opened on a native device. Fails if no app is registered to handle the URI (iOS/Android) or the renderer rejects the navigation (Chromium).

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": {
      "udid": "<udid>",
      "url": "<url>"
    },
    "name": "open-url"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL or scheme to open (e.g. https://example.com, messages://, tel:555, geo:37.0,-122.0).
udidYesTarget device id from `list-devices` (iOS UDID, Android serial, or Chromium id).
bundleIdNoPhysical iOS only: the app that receives the URL. Defaults to Safari for http(s); required for any other scheme.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / bundleId / description
      Previous value: -"Physical iOS only: the app that receives the URL. Defaults to Safari for http(s); required for any other scheme. Ignored elsewhere."New value: +"Physical iOS only: the app that receives the URL. Defaults to Safari for http(s); required for any other scheme."
    • changedInput schema / properties / url / description
      Previous value: -"URL or scheme to open (e.g. https://example.com, messages://, tel:555, geo:37.0,-122.0). For Chromium this navigates the renderer."New value: +"URL or scheme to open (e.g. https://example.com, messages://, tel:555, geo:37.0,-122.0)."
  2. Changed1 schema field changedv0.25.1
    • changedInput schema / properties / bundleId / pattern
      Previous value: -"^[A-Za-z_][A-Za-z0-9._-]*$"New value: +"^[A-Za-z0-9_][A-Za-z0-9._-]*$"
  3. Changed1 schema field changedv0.24.0
    • addedInput schema / properties / bundleId
      Added value: +{
      +  "description": "Physical iOS only: the app that receives the URL. Defaults to Safari for http(s); required for any other scheme. Ignored elsewhere.",
      +  "pattern": "^[A-Za-z_][A-Za-z0-9._-]*$",
      +  "type": "string"
      +}
  4. First observedv0.15.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: it discloses Chromium renderer navigation behavior, failure conditions for unsupported schemes, Universal Links/App Links verification caveats, iOS simulator Safari fallback, and the significant side effect that on a physical iPhone the receiving app becomes the app under automation. It also documents the return shape ({ opened, url, note? }) and what the optional note means.

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?

The core action is front-loaded and the paragraphs progress from action to platform matrix to caveats to return value. It is dense but long, and the final 'Fails if no app is registered...' sentence partly restates the earlier Chromium failure sentence, which is mild redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter tool with no annotations or output schema, the definition covers purpose, platform-specific scheme support, failure modes, side effects, and the return object. An agent has everything needed to call it correctly and interpret routing caveats.

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 100%, so the baseline is 3; the description adds value by tying parameters to device behavior — which schemes are valid per platform and the physical-iPhone consequence of the receiving app. It doesn't add much beyond the schema's own text for udid or bundleId, so it earns a 4 rather than a 5.

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

Purpose5/5

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

The opening sentence names a specific verb and resource ('Open a URL or URL scheme on the device'), and the body distinguishes it from the sibling launch-app by explaining when deep-linking is preferable. An agent can identify the operation and its scope without opening the schema.

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

Usage Guidelines5/5

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

It states the use case ('navigating to a web page or deep-linking into an app') and gives an explicit alternative with a condition: 'To reliably open an installed app, use its custom scheme (scheme://path) or launch-app.' It also enumerates which schemes work on Chromium, iOS, and Android, which functions as when-to-use guidance.

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