Skip to main content
Glama

Record what the bridge could not do

qa_gap

Record a missing bridge capability or list known gaps, so agents can report a blocked task instead of silently switching browser drivers.

Instructions

SAY WHAT THE BRIDGE COULD NOT DO, IN ONE SENTENCE — and it becomes a line in a file the human reads (~/.qiksy/gaps.jsonl). This is the sanctioned way out of a dead end, and it exists because the usual way out is worse: an agent that hits a wall silently switches to another browser driver, and the run stops being the test that was asked for. Use it when the bridge genuinely lacks a capability — not when a control refused once (that is the ladder in the instructions: qa_probe, raw, a CSS selector, qa_click by name). op:"list" reads the log back, newest first, which is also how you check whether your gap is already known.

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": "qa_gap"
  }
}

Input Schema

NameRequiredDescriptionDefault
opNo"add" records a gap; "list" reads them backadd
urlNoThe page it happened on (the query string is stripped before it is written)
verbNoThe verb you were using when you hit it, e.g. "qa_read"
limitNoFor "list": how many to return (default 50)
triedNoWhat you already tried — the rungs of the ladder you climbed, so nobody re-suggests them
wantedNoWhat you needed the bridge to do, in one sentence. Required for "add".
blockedNoTrue when this stopped the task outright, rather than merely costing extra calls

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does most of it: it discloses the persistence destination and that a human reads the file, the ordering of list results, and the rationale for why silent driver-switching is discouraged. It stops short of stating retention, deduplication behavior, or what a list entry actually contains (fields per gap), which matters for a side-effecting writer with no output schema.

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?

The core instruction and destination are front-loaded in the first clause, and the exclusions are actionable. The 'usual way out is worse' rationale is somewhat discursive for a tool description, but it earns part of its space by explaining why an agent should not silently switch drivers.

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 7-parameter, unannotated tool with no output schema, the description covers purpose, when/when-not, storage location, and list ordering, which is close to sufficient. The remaining gap is return-value detail for op:"list" (per-entry fields, limits/truncation beyond the schema's default 50), which the absent output schema leaves to the prose.

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 100% and each parameter is described in the schema itself, so the baseline is 3. The description adds only light meaning beyond that — clarifying op:"list" returns newest first and restating the one-sentence constraint on 'wanted' — without explaining how 'tried', 'verb', or 'blocked' are used in practice.

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 names a specific action (say what the bridge could not do, in one sentence) and the resulting resource (a line in ~/.qiksy/gaps.jsonl), plus the read-back mode via op:"list". It is unmistakably different from siblings like qa_probe or qa_click, which it explicitly positions as the alternative ladder rather than the same job.

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?

It states the condition for use ('when the bridge genuinely lacks a capability') and the exclusion ('not when a control refused once'), then names the concrete ladder to try first: qa_probe, raw, a CSS selector, qa_click by name. It also says how to check whether a gap is already known via op:"list".

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