Skip to main content
Glama
Browser MCP Server

Browser MCP Server

list_frames

Lists all iframes on a page so you can identify embedded frames and target them during browser automation.

Instructions

List all frames (iframes) on the 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": "list_frames"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. 'List' implies a read-only operation, but the description says nothing about required connection state, what happens on a page with no frames, whether nested frames are included, or what each frame entry contains.

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?

One short sentence, front-loaded with the verb and resource and free of redundant wording. It is efficient, though the brevity borders on under-specification rather than deliberate concision.

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 simple tool with one optional parameter there is little to explain, but with no output schema the description should at least sketch what a frame entry looks like (id/name/url) and confirm the pageId default. Neither is covered, leaving the agent guessing about the result shape.

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 description coverage is 0% for the single pageId parameter. The description only says 'on the page', giving no indication of whether pageId is optional, what the default (current page) is, or how to obtain a pageId — the schema's type-only definition leaves this entirely unresolved.

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?

States a specific verb and resource ('List all frames') and disambiguates the term by glossing it as '(iframes) on the page'. An agent knows exactly what it retrieves, though nothing explicitly separates it from sibling enumerators like list_pages.

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 when-to-use guidance, no prerequisite (e.g. browser connected, page open), and no pointer to related tools such as click_in_frame or execute_in_frame that consume frame identifiers. The agent must infer that this is a discovery step preceding frame-scoped actions.

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