Skip to main content
Glama

Get URL

browser_get_url
Read-only

Retrieve the current page URL from a specified browser session to identify or track the active page during automation.

Instructions

URL of the current page.

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": "browser_get_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdNo
sessionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

D1.7/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, and destructiveHint=false, so the safety profile is covered. The description adds only the notion of 'current page,' which is useful but leaves ambiguous what happens when pageId or session point elsewhere, and gives no return-type or error behavior.

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?

It is brief and front-loaded, but the brevity comes from under-specification rather than efficiency. A single fragment cannot earn its place when it omits the verb and all parameter context.

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?

With no output schema, the description should at least state what is returned and how pageId/session affect it. It states the return value loosely ('URL of the current page') but says nothing about the two optional parameters or the result format, leaving the definition incomplete for a two-parameter tool.

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

Parameters1/5

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

Schema description coverage is 0% for the two parameters (pageId and session), and the description does not mention either one. It neither explains how to target a specific page or session nor clarifies the default when they are omitted, 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.

Purpose2/5

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

The text is a bare noun phrase, 'URL of the current page,' that essentially restates the title 'Get URL' without a verb or action. It does convey the resource (page URL) and the default scope ('current'), but offers no differentiation from siblings such as browser_get_title or browser_get_text.

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

Usage Guidelines1/5

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

There is no when-to-use guidance, no mention of alternatives, and no conditions or prerequisites. An agent must infer entirely on its own that this is the read-URL counterpart to browser_navigate or browser_get_title.

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