Skip to main content
Glama

browser_state

Inspect the current page's form fields, buttons, and tabs, and receive stable refs to use for filling, selecting, or clicking without custom selectors.

Instructions

List the current page's form fields, buttons and tabs.

Every field carries a ref string. Pass that same ref back to fill_field / select_option / click_target; do not construct your own CSS selector, because the references are already chosen to survive the site's generated markup.

Fields with required: true must be filled before submitting. field_type tells you which action to use:

  • text/email/tel/number/textarea/contenteditable -> fill_field

  • select/combobox/listbox -> select_option

  • radio/checkbox -> set_checkbox

  • file -> upload_file

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
include_textNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It discloses that refs are stable across generated markup, that required fields must be filled before submission, and that field_type determines the proper action tool. It does not explicitly state that the tool has no side effects, but the read-only verb 'List' and the overall inspection role make that sufficiently 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 well-structured and front-loaded with the core action and resource. Every section earns its place: the ref usage rule, required-field warning, and field_type mapping are all necessary and presented with clean formatting. No filler or redundancy.

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

Completeness4/5

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

For a form-state inspection tool, the description covers the essential operational context: what is listed, how refs work, required-field behavior, and which action tool to call for each field_type. An output schema exists, so return-value details are not needed. The only notable completeness gap is the unexplained include_text parameter, but that is already penalized under parameter semantics.

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?

The only parameter, include_text, is not mentioned anywhere in the description, and schema description coverage is 0%. The schema only provides the title 'Include Text' and a default, which is too sparse for an AI agent to know what the parameter controls. The description must compensate for the missing parameter documentation and does not.

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 opens with a specific verb and resource: 'List the current page's form fields, buttons and tabs.' It clearly states what the tool produces and is not easily confused with sibling action tools like fill_field or click_target, which it explicitly references as downstream consumers of its output.

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 exactly how to use the returned data: pass the provided ref back to fill_field, select_option, or click_target, and use field_type to decide which action to take. It gives clear guidance, though it does not explicitly say when not to use this tool or name alternatives for list-only tabs.

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