Skip to main content
Glama

Heal locator

heal_locator

Finds the element a broken Selenium locator was meant to target after a UI change and suggests a verified replacement with confidence, reasons, and runner-up candidates; does not edit files.

Instructions

Find the element a broken Selenium locator meant after a UI change and suggest a verified replacement, with confidence, reasons and the runner-up candidates. Never edits files.

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

Input Schema

NameRequiredDescriptionDefault
urlYes
locatorYes
sessionNoOptional: reach a page behind a login or several steps into a flow

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.2

TDQS

A3.5/5.0
Behavior3/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 usefully discloses that the tool never edits files and that results include confidence, reasons and runner-up candidates, but it says nothing about whether it drives a live browser session, needs network/page access, or how long verification takes.

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 short sentences with the core action front-loaded and the safety guarantee trailing; every clause earns its place and nothing is padded.

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?

The description sketches the return shape (confidence, reasons, runner-up candidates), which partially compensates for the missing output schema. However, for a three-parameter tool with a nested session object at low schema coverage, the unexplained 'url' and 'locator' semantics leave real gaps.

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 only 33%: 'url' and 'locator' carry no descriptions in the schema, and the description adds no meaning for either beyond the word 'broken'. Only the optional 'session' parameter is explained, and that explanation comes from the schema itself.

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: find the element a broken Selenium locator meant after a UI change and suggest a verified replacement. An agent can immediately tell this is for repairing broken locators, though the description does not explicitly contrast it with the sibling check_locator.

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

Usage Guidelines4/5

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

Gives a clear triggering condition ('after a UI change', 'broken Selenium locator') that tells the agent when this tool applies. It names no exclusion cases or alternative tools, so the agent must infer when check_locator or explore_page would be a better fit.

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