Skip to main content
Glama

Search the WebAbility MCP docs

search_docs
Read-onlyIdempotent

Search this server's own documentation before guessing. Covers: the output controls (level, minImpact, rules, wcag, format, offset), the accepted WCAG tag and rule-id forms, the fix.op set and the three fixability tiers, verify_fix failure reasons, Lite vs hosted (localhost, tunnel, storageState), tool error codes and which are retriable, fair-use limits, and how generate_report_pdf / start_audit / get_audit differ. The index is inside the package: offline, no account, no cost, a few milliseconds. Call it when an argument name, an enum value or an error code is not obvious from the tool description — one search usually costs less than one failed call.

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": {
      "query": "<query>"
    },
    "name": "search_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many sections to return (default 3, max 5)
queryYesWhat you need to know, in your own words or as the exact term (e.g. "minImpact", "fixability", "localhost", "rate limit", "not-verifiable")
contextNoExplain in 15-25 words, in third person, why this tool is called and how it supports the user's goal. For analytics only. You MUST describe only the abstract purpose of the tool call. NEVER include, repeat, paraphrase, or infer personal, sensitive, or identifying information from the user request or tool results, including names, emails, phone numbers, IPs, IDs, or credentials. You MUST generalize specific entities into roles such as "a user", "the customer", or "an account". Example: "Retrieving a customer's recent orders to investigate a billing issue and help support determine the appropriate resolution."
llm_modelNoThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "hits": {
      +          "items": {
      +            "properties": {
      +              "id": {
      +                "type": "string"
      +              },
      +              "title": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "title"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "query": {
      +          "type": "string"
      +        },
      +        "total": {
      +          "type": "number"
      +        }
      +      },
      +      "required": [
      +        "query",
      +        "hits",
      +        "total"
      +      ]
      +    },
      +    {
      +      "properties": {
      +        "error": {
      +          "properties": {
      +            "code": {
      +              "type": "string"
      +            },
      +            "next": {
      +              "properties": {
      +                "action": {
      +                  "type": "string"
      +                },
      +                "args": {
      +                  "type": "object"
      +                },
      +                "tool": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "tool"
      +              ],
      +              "type": "object"
      +            },
      +            "retriable": {
      +              "type": "boolean"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "retriable",
      +            "next"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "error"
      +      ]
      +    }
      +  ],
      +  "type": "object"
      +}
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, closed-world, so the safety profile is covered. The description adds genuinely new operational facts: the index ships inside the package, works offline, needs no account, costs nothing, and returns in milliseconds. It stops short of describing result shape, but an output schema exists to cover that.

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 directive and the cost rationale are front-loaded, and every sentence is doing work — the topic list is long but earns its place by telling the agent what is answerable and therefore whether a search is worth it. Slightly dense with enumerated items, but there is no filler.

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

Completeness5/5

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

For a four-parameter lookup tool with an output schema and full annotation coverage, the description supplies everything needed: what it searches, when to call it, the cost, and the latency profile. No gap would cause an agent to call it wrongly or skip it when it should.

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 both the query examples and the limit bounds (default 3, max 5) are already documented in the schema. The description's sample terms (minImpact, fixability, localhost, rate limit, not-verifiable) reinforce the query parameter but add no syntax or format meaning beyond what is supplied, and it says nothing about context or llm_model. Baseline 3 is appropriate.

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?

States a specific verb and resource ("Search this server's own documentation") and immediately enumerates the subject areas it indexes, so the agent knows this is a self-help lookup rather than a page/document search over user content. That clearly separates it from every sibling, all of which are audit or site-management 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?

Gives explicit triggers — an argument name, an enum value, or an error code that is not obvious from a tool description — plus a decision heuristic ("one search usually costs less than one failed call") and a precondition ("before guessing"). The agent knows exactly when to reach for this instead of attempting a sibling call.

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.