Skip to main content
Glama

elements

List page headings, links, buttons, forms, tables, or images by type and return accessible details for each, helping agents inspect page structure without parsing raw HTML.

Instructions

Lists all elements of a specific type on the page (like a screen reader rotor). Returns accessible information about each element.

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": {
      "session": "<session>",
      "type": "<type>"
    },
    "name": "elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeYesType of elements to list
limitNoMaximum number of elements to return (0 = no limit). Default: 0
sessionYesThe session name to query

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It only states that it lists elements and returns 'accessible information', without disclosing whether an active session/page is required, whether off-screen elements are included, whether the call has any side effects, or what shape the results take.

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?

Two short sentences, front-loaded with the core action and followed by the analogy plus a return-value note. Little wasted wording, though the return sentence is thin enough that it barely earns its place.

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

Completeness3/5

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

For a simple three-parameter read tool with no output schema, the essentials of what it does are covered. Missing are the session/page prerequisites and any characterization of the returned 'accessible information', which matter given zero annotation coverage.

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 description coverage is 100%, with the type enum fully enumerated and limit/session documented, so the schema does the heavy lifting. The description adds no meaning beyond the schema beyond 'specific type', so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clear specific verb and resource: 'Lists all elements of a specific type on the page', with a concrete analogy (screen reader rotor) that pins down the concept. It does not differentiate itself from siblings like query, section, or overview, which likely also surface page content, so the agent must infer which is which.

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

Usage Guidelines3/5

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

The rotor analogy and the enumerated element types imply when this tool is appropriate (enumerating headings/links/buttons/etc. on the current page). There is no explicit when-not guidance and no mention of alternatives such as query or section, so the agent gets implied rather than stated routing.

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