Skip to main content
Glama

Collect evidence for judgment

collect_evidence
Read-only

Gathers screenshots, text, and context for WCAG success criteria that need human judgment. Use the evidence to review and submit accessibility audit decisions.

Instructions

Gathers material for success criteria that cannot be decided mechanically and need a look at the content. Supported criteria: 1.1.1, 1.3.2, 1.3.3, 1.4.5, 1.4.9, 1.4.11, 2.3.1, 2.4.2, 2.4.4, 2.4.6, 2.4.9, 2.5.1, 2.5.2, 3.1.1, 3.1.2, 3.3.1, 4.1.3. Each comes with the question to answer (question), the condition for failure (failWhen) and the material (evidence: images with their text alternatives, text in HTML order, link text with context, headings and labels, and so on). A full-page screenshot is returned as an image. Call it for criteria that audit_page marked needs_judgment, then run audit_page again with your decisions in judgments.

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>"
    },
    "name": "collect_evidence"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL of the page to check (http, https or file). A dev server such as http://localhost:3000/ works too.
waitMsNoExtra time to wait after load, in milliseconds.
criteriaNoSuccess criteria to gather material for. Omit to gather for every supported one.
screenshotNoWhether to attach a full-page screenshot. Default true.
waitForSelectorNoAfter load, wait until an element matching this CSS selector appears. Use it to wait for an SPA to render.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.5/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. Beyond that, the description discloses what the tool actually produces — per-criterion question, failWhen condition, evidence material (images with text alternatives, HTML-ordered text, link text with context, headings and labels) and a full-page screenshot returned as an image. It does not mention timing/cost of full-page captures or any navigation side effects, so it falls just short of a 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?

It is a single dense paragraph, but it is front-loaded with the purpose and the criterion list, which is unavoidably long because no enum exists. The trailing workflow instruction ('Call it for criteria that audit_page marked needs_judgment...') is placed well and nothing is redundant. Slightly sprawling sentence structure keeps it from a 5.

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?

With no output schema and five parameters, the description carries the return-value burden and does so in part: it explains the question/failWhen/evidence triple and the screenshot image. It does not state the overall response shape (e.g., whether results are grouped per criterion) or how empty evidence is represented, which is a modest gap for a data-gathering tool.

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 description coverage is 100%, so the baseline is 3; the description earns an extra point by listing the valid criterion identifiers, which the schema does not enumerate (no enum on the criteria array). That mapping is genuinely useful meaning beyond the schema, though it adds little about waitMs, waitForSelector, or screenshot semantics already documented in the schema.

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 opens with a specific verb and resource ('Gathers material for success criteria') and immediately narrows the scope to criteria 'that cannot be decided mechanically and need a look at the content.' It also enumerates the exact supported criteria IDs, so an agent knows precisely what this tool covers versus the fragment/axe/style checkers among its 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?

Usage is explicit and sequenced: 'Call it for criteria that audit_page marked needs_judgment, then run audit_page again with your decisions in judgments.' That names the prerequisite tool, the trigger condition, and the follow-up step, so the agent knows both when to invoke it and what to do with the result.

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