Skip to main content
Glama

List frames

browser_frames
Read-only

Lists all iframes in the current tab so you can identify embedded frames before inspecting or interacting with their content.

Instructions

List frames (iframes) of the current tab.

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_frames"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdNo
sessionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds useful scope context ('current tab') but says nothing about whether nested frames are included, what identifiers are returned, or how frames are ordered.

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?

A single front-loaded sentence with zero filler and the key disambiguation ('iframes') up front. It is terse to the point of insufficiency, which is a completeness problem rather than a verbosity one.

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?

The tool is conceptually simple, but with no output schema, two undocumented parameters, and no statement of the return shape (frame names, URLs, indices?), an agent cannot reliably construct a call or consume the result without trial and error.

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?

Both parameters (pageId, session) have 0% schema description coverage, so the description carries the full burden — yet it mentions neither. It is unclear whether pageId is required to target a tab or defaults to the active one, nor what a session ID refers to.

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 frames') and parenthetically disambiguates that frames means iframes scoped to the current tab. An agent can tell what it does, though it does not contrast itself with the related browser_frame_switch sibling.

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?

No when-to-use guidance, no prerequisites, and no mention of the natural follow-up (browser_frame_switch to enter a listed frame) or of how this differs from browser_snapshot/browser_accessibility_tree. Usage must be inferred entirely from the name.

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