Skip to main content
Glama

Search Drizzle docs

search_docs
Read-onlyIdempotent

Search Drizzle ORM documentation by title, section, or full page text to find relevant pages or answer snippets. Filter by SQL dialect or section; typo-tolerant queries return useful results.

Instructions

Search the Drizzle ORM documentation. depth "index" (default) fuzzy-searches titles, slugs and sections from /llms.txt — instant, use it to pick the right page. depth "full" downloads /llms-full.txt once (a few MB) and searches the actual page text, returning a snippet around every match — use it when you need the answer, not just a link. Filter with dialect (pg, mysql, sqlite, mssql, cockroach, singlestore) and/or section. Tolerates typos: "migraton" still finds Migrations.

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
depthNo"index" (default) = fast title/section search. "full" = content search with snippets.
limitNoMaximum results (default 10, max 50).
queryYesWhat to search for, e.g. "relational queries" or "batch api".
dialectNoRestrict results to one SQL dialect, e.g. "pg".
sectionNoRestrict results to one section, e.g. "Migrations".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.2

TDQS

A4.5/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 goes on to disclose the cost and latency of each mode ('instant' vs. 'downloads /llms-full.txt once (a few MB)') and the return shape ('returning a `snippet` around every match'), which is exactly the kind of context annotations cannot provide. Only auth/quota behavior and index-mode result fields are left unstated.

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?

Sentences are front-loaded in priority order: what it is, index mode, full mode, filters, then typo tolerance. The em-dash clauses compress cost and latency notes into the same sentence as the mode they belong to, and nothing reads as 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?

With no output schema, the description compensates by explaining what each depth returns (matched titles/slugs/sections vs. text snippets). Combined with the safety annotations and 100% schema coverage, an agent has enough to choose a mode, pick filters, and interpret results.

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 coverage is 100% and describes each parameter, so the baseline is 3. The description adds value beyond the schema by enumerating the full dialect set (pg, mysql, sqlite, mssql, cockroach, singlestore), which the schema only hints at with a single example string, and by reiterating the depth default and its meaning.

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 first sentence names a specific verb and resource ('Search the Drizzle ORM documentation'), and the description immediately scopes what is being searched in each mode (titles, slugs and sections from /llms.txt vs. actual page text from /llms-full.txt). An agent can tell exactly what this tool returns and how it differs from a plain page-fetch.

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?

Usage is explicit for each mode: index is 'instant, use it to pick the right page', full is 'use it when you need the answer, not just a link'. That is a real when-to-use decision rule. It stops short of naming the siblings (fetch_page, list_topics) as alternatives or stating when not to use search at all, so 4 rather than 5.

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