Skip to main content
Glama

find

Search the current browser page for elements by role, name, or text and return up to 20 ref matches for interaction.

Instructions

Search the current page for elements whose role/name/text contains query (case-insensitive). Returns up to 20 ref_N matches.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "find"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesText to look for, e.g. "Sign in".
tabIdNoTab ID to target. Omit to act on the current tab.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Despite having no annotations, the description discloses case-insensitive containment matching, a maximum of 20 results, and the `ref_N` identifier format. The search operation is clearly non-mutating, although no-match behavior, result ordering, and whether hidden elements are included remain unspecified.

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?

Two compact sentences front-load the operation and matching scope, then state the result limit and identifier format. Every clause earns its place, with no repetition or filler.

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 simple two-parameter locator, the description and schema cover the required query, tab targeting, matching behavior, result cap, and basic return expectations despite the absence of an output schema. Minor omissions, particularly the no-match response and how returned references are subsequently consumed, keep it from being fully 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?

Schema description coverage is 100%, but the description adds substantial meaning to `query`: it is matched against role, name, and text using case-insensitive containment. It adds nothing further about `tabId`, though the schema already documents that parameter well.

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 specifies both operation and resource: searching page elements by role, name, or text and returning element references. Its element-locator scope, rather than full-page content extraction, usefully distinguishes it from siblings such as get_page_text and read_page.

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?

It provides clear selection context: use the tool to locate elements by a case-insensitive substring on the current page, with tabId available for targeting another tab. It does not explicitly explain when a full-page reader or another browser tool would be preferable, so it stops short of alternative-based guidance.

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