Skip to main content
Glama

Collect named properties of named nodes

qa_collect

Collect the properties you choose — text, value, name, state, href, attributes — from many matching page nodes in one call, giving you a table instead of repeated page reads.

Instructions

ASK FOR A TABLE INSTEAD OF A PAGE. Name WHICH nodes (a CSS selector, a role, a name fragment — any combination, scoped with within) and WHICH of their properties to take, and get back exactly that, once. «Every row in the list with its name and price», «every link in the nav and where it points», «all the inputs with what they currently hold» are one call here and a dozen with qa_snapshot plus qa_read. Take any of: text · value (what the control HOLDS, read the way the fill engine reads it) · name (accessible name) · role · tag · selector · href · state (disabled/required/invalid/expanded/checked/hidden) · geometry — plus attr: for an attribute and style: for a computed style. A property nobody can supply is named back rather than dropped, so a missing column is never mistaken for a missing feature. Read-only, and the vocabulary is closed: this is a different projection of the page, never a program the page runs.

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": {
      "nodes": "<nodes>"
    },
    "name": "qa_collect"
  }
}

Input Schema

NameRequiredDescriptionDefault
omitNoDrop these field paths and keep the rest — the cheap way to lose one huge field (["html"], ["steps"]) without listing everything you want.
takeNoWhich properties, e.g. ["name","value","state"] or ["text","attr:data-id","style:color"]. Default ["name","text"]. Alias: `properties`.
limitNoCap the rows (max 300). A capped answer says so rather than looking complete.
nodesYesWhich nodes. At least one of selector / role / nameContains; collecting the whole page is what qa_snapshot is for.
tabIdNoTarget tab (from qa_tabs); omit for the active tab
selectNoKeep only these field paths, e.g. ["ok","fields[].name"]. Dots walk into objects, and a path through a list applies to every entry, keeping it a list. A path that matches nothing is reported back with the field names that ARE there.
frameIdNoWhich frame to ask, from qa_frames. Omit for the page itself. A payment form, an SSO step or an embedded widget usually lives in a frame of its own, and a cross-origin one can only be read from inside it.
propertiesNoSame as `take`, for when that is the word that came to mind.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.5/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden — and it does: declares read-only operation, a closed vocabulary (no execution of page code), single-shot semantics ('once'), and that an unsupplied property is named back rather than silently dropped. It stops short of covering pagination/truncation behavior or result ordering, which is the only remaining gap.

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-loaded with the key distinction and then dense but purposeful; nearly every clause carries information. It is on the long side and leans on typographic emphasis (ALL CAPS, «» quotes, middot lists), which adds visual weight without adding semantics.

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 an 8-parameter tool with a nested `nodes` object, no annotations and no output schema, the definition covers intent, property vocabulary, scoping, frame targeting rationale and missing-property reporting. What it does not spell out — the shape of the returned table and how `limit`/`omit`/`select` interact with it — is partly left to schema descriptions, which are thorough.

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 real meaning beyond the schema: it enumerates the full closed vocabulary for `take` (text · value · name · role · tag · selector · href · state · geometry · attr:<name> · style:<css-property>), which the schema only samples, and defines `value` as what the control holds 'read the way the fill engine reads it'. It also explains `within` scoping.

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?

Specific verb-plus-resource: name WHICH nodes (selector/role/name fragment, scoped with `within`) and WHICH properties, and get exactly those back once. The opening line 'ASK FOR A TABLE INSTEAD OF A PAGE' plus the explicit contrast with qa_snapshot and qa_read makes it unmistakable from siblings.

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

Usage Guidelines5/5

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

Gives three concrete when-to-use scenarios ('every row in the list with its name and price', 'every link in the nav', 'all the inputs with what they currently hold') and names the alternatives they replace — 'a dozen calls with qa_snapshot plus qa_read'. The when-not case is also implied by 'this is a different projection of the page, never a program the page runs'.

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