Skip to main content
Glama

batch_evaluate

Run a JavaScript expression on multiple URLs in sequence to validate consistent behavior across known pages.

Instructions

Visit several URLs in sequence and run the same JS expression on each. For controlled checks across known pages where view_page/run_plan would be too chatty; not for normal reading, clicking or form work.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlsYesURLs to visit in order
settle_msNoWait in ms after each page load before evaluating
continue_on_errorNoContinue with the remaining URLs if one fails
evaluate_per_pageYesJS expression evaluated on each page
timeout_per_page_msNoTimeout per page in ms (navigate+settle+evaluate)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed7 schema fields changedv2.10.5
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / continue_on_error / description
      Previous value: -"Continue processing remaining URLs if one fails (default: true)"New value: +"Continue with the remaining URLs if one fails"
    • changedInput schema / properties / evaluate_per_page / description
      Previous value: -"JavaScript expression to evaluate on each page after it loads"New value: +"JS expression evaluated on each page"
    • changedInput schema / properties / settle_ms / description
      Previous value: -"Wait time in ms after each page load before evaluating (default: 2000)"New value: +"Wait in ms after each page load before evaluating"
    • changedInput schema / properties / timeout_per_page_ms / description
      Previous value: -"Timeout per page in ms for the full navigate+settle+evaluate cycle (default: 30000)"New value: +"Timeout per page in ms (navigate+settle+evaluate)"
    • changedInput schema / properties / urls / description
      Previous value: -"Array of URLs to visit and evaluate sequentially"New value: +"URLs to visit in order"
  2. First observedv2.7.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden of behavioral disclosure. It does reveal the core behavioral pattern (sequential navigation, uniform JS expression per page), but it does not disclose that arbitrary JS execution can have side effects or mutate page state, nor what the tool returns for each URL. For a tool that runs JavaScript across multiple pages, that safety-relevant gap is notable.

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

Conciseness5/5

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

Two sentences with zero filler: the first fronts the action (what the tool does), the second delivers routing guidance (when and when-not). Every clause earns its place.

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 a moderate-complexity tool with fully documented parameters, the description covers purpose and usage completely. The remaining gaps are the return format (no output schema exists to fill it) and unstated side-effect potential of JS evaluation (no annotations exist either). These are meaningful but do not prevent an agent from invoking the tool correctly.

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%, so the schema already documents all five parameters. The description reinforces evaluate_per_page's semantics ('the same JS expression on each') but adds no new parameter-level detail beyond the schema. Baseline 3 is appropriate since the schema does the heavy lifting.

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?

The description states a specific verb-resource-action combination: 'Visit several URLs in sequence and run the same JS expression on each.' It also explicitly distances itself from siblings by naming view_page/run_plan and stating what it is not for ('normal reading, clicking or form work'), making it impossible to confuse with the other browsing tools.

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?

The description gives an explicit when-to-use condition ('controlled checks across known pages'), names the alternatives it replaces ('where view_page/run_plan would be too chatty'), and lists exclusions ('not for normal reading, clicking or form work'). An agent can make a correct routing decision with no additional inference.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Silbercue/public-browser'

If you have feedback or need assistance with the MCP directory API, please join our Discord server