Skip to main content
Glama

exit_frame

Leave the active iframe and return control to its parent frame, so browser automation can continue on the surrounding page.

Instructions

Exit the current iframe

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.3.0

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure, and it says nothing beyond the action. It does not state what happens on a nested frame (return to immediate parent vs. top level), what occurs if no frame is currently entered, or whether this is a state-mutating context switch.

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?

A single four-word sentence with zero waste and the action front-loaded. Nothing could be trimmed and nothing extraneous is present.

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

Completeness3/5

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

For a zero-parameter tool with no output schema or annotations, the definition is minimally viable, but it omits the frame-stack behavior (parent vs. top) that determines correct invocation in nested-frame scenarios. A few words on fallback behavior would make it complete.

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?

The tool takes no parameters, which is the baseline-4 case; there is nothing to document and the schema is empty at full coverage. No additional parameter meaning is needed or missing.

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 clear verb ('Exit') and resource ('the current iframe'), so the agent knows exactly what action occurs. The word 'current' implicitly distinguishes it from the sibling exit_all_frames, though the distinction is not spelled out.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is called after enter_frame or when navigating out of a frame. There is no explicit when-to-use or when-not-to-use guidance, and the siblings enter_frame, exit_all_frames and list_frames are not referenced to guide selection.

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