Skip to main content
Glama

find

Read-only

Locate current-page elements by one or more keywords and return matches with refs, helping you target buttons, links, inputs, or text when full snapshots are truncated.

Instructions

在当前页面按关键词查找元素(按钮、链接、输入框、文字等),只返回匹配的条目及其 ref。页面很大、完整快照被截断时,用它精确定位要操作的元素。多个关键词用空格分隔,需同时包含。

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": {
      "text": "<text>"
    },
    "name": "find"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes关键词,如 "登录"、"G1234 预订"
limitNo最多返回多少条,默认 30

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile of this read operation is covered upstream. The description adds useful behavior: only matching entries and their refs are returned, so the result is a filtered subset rather than a page dump. It does not discuss limits, ordering, or what happens with zero matches beyond what the schema's limit field states.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads what the tool does, then the trigger condition, then the keyword syntax, in three tightly packed clauses with no filler. The final clause on keyword separation is slightly operational rather than descriptive, but it earns its place by changing how the parameter is formed.

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?

With only two parameters, full schema coverage, and no output schema, this description closes the remaining gaps itself: return shape (matching entries plus ref) and keyword-matching semantics. An agent can call it correctly and interpret the result without further documentation.

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 coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not carry: multiple keywords are space-separated and must ALL be present (AND semantics, 需同时包含). That is a genuine behavioral contract for the text parameter that an agent could not derive from a plain string type.

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?

States a specific verb and resource (按关键词查找元素) plus the returned shape (只返回匹配的条目及其 ref), and explicitly scopes what is searchable (按钮、链接、输入框、文字等). This makes it clearly distinct from snapshot, which is the full-page read implied by the truncation clause.

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?

Gives a concrete selection condition: use it when the page is large and the full snapshot is truncated, to pinpoint the element to act on. The alternative data source (snapshot) is implied through the truncation condition rather than named outright, so it falls just short of explicit when-to-use vs when-not guidance.

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