Skip to main content
Glama
yubao2000

mcp-browser-agent

by yubao2000

browser_iframe

Switch browser context to an iframe using its CSS selector, or return to the main page.

Instructions

切换到 iframe 上下文(之后的操作在 iframe 内执行),或切回主页面。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectorYesiframe 的 CSS 选择器,传 'main' 切回主页面

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.5.0

TDQS

A4.6/5.0
Behavior4/5

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

Without annotations, the description bears the full burden of explaining behavior. It states that subsequent operations execute within the iframe and that passing 'main' switches back, providing key behavioral insight. It does not disclose all potential side effects, but the core behavior is clear.

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?

The description is concise, using a single sentence with two clear clauses. It is well-structured and contains no unnecessary information.

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?

Given the tool's simplicity (one parameter, no output schema), the description provides complete context: purpose, usage, parameter semantics, and behavioral effect. Nothing essential is missing.

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

Parameters5/5

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

The single parameter 'selector' is described as the iframe's CSS selector, with a special value 'main' to switch back. This adds significant meaning beyond the schema's type hint and fully clarifies parameter usage.

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 description clearly states the tool's function: switching to an iframe context or back to the main page. It uses specific verbs and names the resource, effectively distinguishing it from sibling tools.

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

Usage Guidelines4/5

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

The description explains when to use the tool (to execute subsequent operations within an iframe) and how to return to the main page using 'main'. It implies usage context but does not explicitly mention alternative tools or exclusion criteria.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/yubao2000/mcp-browser-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server