Skip to main content
Glama

oc_query

Read-onlyIdempotent

Resolve semantic queries to stable element references for automated browser interactions.

Instructions

Resolve a semantic element query into stable refs for interaction workflows. Uses local AX/DOM matching only; no external AgentQL or LLM provider is called. Pass returned refs to interact, act, fill_form, read_page(ref_id), or plan parseResult.storeAs paths.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tabIdYesREQUIRED Tab id to query.
queryYesREQUIRED Semantic query such as "checkout button" or "email field".
purposeNoHow the caller intends to use the result. Default: interaction.
limitNoMaximum refs to return. Default 5, max 20.
includeCandidatesNoWhen true, include lower-scored DOM candidates as well as AX matches. Default true.
Behavior4/5

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

Annotations already provide readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description adds useful behavioral info: uses only local AX/DOM matching, no external calls. This goes beyond annotations without contradicting them.

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?

Three concise sentences front-loaded with the core purpose. Every sentence adds value without 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?

Given 5 parameters, no output schema, and informative annotations, the description covers the tool's function, usage, and output handling well. It does not explain return format, but the overall completeness is high for a query tool.

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

Parameters3/5

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

Schema coverage is 100% with clear parameter descriptions. The description does not add significant per-parameter info beyond the schema, but provides overall context. Baseline score of 3 is appropriate.

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 explicitly states the action ('Resolve a semantic element query into stable refs') and the resource ('semantic element queries'). It distinguishes from sibling tools by noting local AX/DOM matching only, no external providers. The purpose is specific and clear.

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 gives clear context: for interaction workflows, and directs where to pass the refs (interact, act, etc.). However, it does not explicitly state when not to use or name alternatives among siblings, though the differentiation from external-provider tools is implicit.

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

Install Server

Other Tools

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/shaun0927/openchrome'

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