Skip to main content
Glama

page_elements

Read-only

Lists interactive elements—links, buttons, and inputs—on a web page and returns selectors for targeting them in automation.

Instructions

List the interactive elements (links, buttons, inputs) on the page, one JSON object per line, each with a selector.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "page_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/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 is covered. The description adds real value beyond that by disclosing the return shape ('one JSON object per line, each with a selector'), which tells the agent how to parse results. It omits limits such as truncation or element-count caps on large pages, keeping it below 5.

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?

A single compact sentence that front-loads the verb and resource, then the output format. No filler; the only minor weakness is that the output-format clause is packed in without separate emphasis.

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?

With no output schema, the description partially compensates by describing the line-delimited JSON and selector field. However, the undefined url parameter and the absence of any note on result volume or scope make it only adequate for a page-inspection tool.

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

Parameters2/5

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

Schema description coverage is 0% for the single 'url' parameter, so the description must carry the burden and does not. It says 'on the page' without clarifying whether the url argument selects the target page or whether the current page is always used, leaving a genuinely ambiguous parameter undocumented.

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?

The description uses a specific verb and resource ('List the interactive elements (links, buttons, inputs) on the page') and enumerates the element types, which clearly separates it from siblings like get_page_html or read_page. It stops short of naming an alternative, so a 4 rather than a 5.

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?

Usage is only implied: an agent can infer this is the tool for discovering clickable/fillable targets, but there is no explicit when-to-use, when-not-to-use, or pointer to alternatives such as get_page_html or read_page when non-interactive content is needed.

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