Skip to main content
Glama

mdn_search

Search MDN Web Docs by keyword and return matching documentation pages with titles, summaries, and URLs; set a result limit to control output.

Instructions

Search MDN Web Docs by keyword. Returns matching documentation pages with titles, summaries, and URLs.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMax results to return (default 5)
queryYesSearch query for MDN documentation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/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 disclosure burden. It does usefully state the shape of the result (titles, summaries, URLs), but says nothing about ranking, empty-result behavior, pagination, rate limits, or whether results are capped by the limit parameter.

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 zero filler: the first states the operation, the second states the return. It is front-loaded and appropriately sized for a two-parameter search tool.

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?

For a simple search tool with a fully documented schema, the description covers what it does and what comes back, which is close to sufficient. However, with no annotations and no output schema, the omission of ranking semantics, empty-result handling, and how it differs from the sibling lookup tools leaves real gaps.

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% with only two parameters, both documented in the schema (query as a string, limit with default 5 and max 20). The description adds only the phrase "by keyword" for query and nothing about how limit affects results, so baseline 3 applies.

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?

The description names a specific verb and resource ("Search MDN Web Docs by keyword") and states the return payload, so the operation is unambiguous. It does not distinguish itself from siblings like mdn_doc or mdn_list, leaving the agent to infer which one to pick.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance and no alternative named. Usage is only implied by the word "keyword" — an agent must guess whether to use this versus mdn_doc for a known page or mdn_list for browsing.

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

Deploy Server

Other Tools