Skip to main content
Glama

scrape_url_elements

Read-only

Scrape elements from a page by CSS selector Costs 1 credit per successful request.

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": {
      "url": "<url>",
      "elements": "<elements>"
    },
    "name": "scrape_url_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
browserNoBrowser that renders the page. Omit to use the default Chrome browser. Set to "kitesurf" to use the Kitesurf browser engine.
elementsYesCSS selectors of the elements to scrape

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true and idempotentHint=false, so the safety and idempotency profile is covered. The description adds genuinely useful non-schema context: a cost of 1 credit per successful request, which tells the agent billing only applies on success. It says nothing about failure modes, rendering waits, or selector-miss behavior, so it is additive but not rich.

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 with no filler, and the core action is front-loaded. The only flaw is that the cost sentence is run together with the first without punctuation or separation, making it read as one run-on line.

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

Completeness2/5

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

There is no output schema, so the description is the only place to explain what comes back — element text, outer HTML, attributes, ordering relative to the input selectors — and it says nothing. For a scraping tool whose return shape is genuinely ambiguous, that is a material omission.

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 67%, with the browser parameter fully documented in-schema (including its single enum value) and elements described as CSS selectors. The description reinforces the selector mechanism but adds no format or constraint detail for url or for how multiple selectors map to results. Baseline 3 is appropriate when the schema carries most of the load.

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?

States a specific verb and resource (scrape elements from a page) plus the mechanism (by CSS selector), which is enough to distinguish it from siblings that return whole-page formats like get_url_markdown or get_url_html_content. It stops short of explicitly naming those alternatives, so it is clear but not differentiated in-text.

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

Usage Guidelines2/5

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

The description gives no when-to-use or when-not-to-use guidance and names no alternative for whole-page retrieval. An agent must infer from the sibling names alone that this tool is for targeted element extraction rather than full-page content.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.