Skip to main content
Glama

Search AILANG docs

docs_search
Read-onlyIdempotent

Full-text search of the AILANG documentation for a version (case-insensitive, on page titles and text). Returns the top 10 matches, docs pages before archived teaching prompts, each with its path, title, first 10 headings and an excerpt around the match.

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>",
      "forVersion": "<forVersion>"
    },
    "name": "docs_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
forVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds real behavioral value beyond that: case-insensitive matching, which fields are searched, a top-10 cap, ranking precedence between docs and archived prompts, and the exact shape of each result (path, title, first 10 headings, match excerpt). Missing only what happens on zero matches or whether the cap is configurable.

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?

A single dense sentence with the search action and matching rules front-loaded, followed by result count, ordering, and result shape. No filler or redundancy.

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?

There is no output schema, and the description compensates by describing the result fields and ordering, which is the main completeness risk for this tool. The remaining gap is the unspecified format of forVersion, which matters for a two-required-parameter tool where both must be supplied correctly.

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 0%, so the description must carry parameter meaning and only partly does. 'Query' is clarified as case-insensitive full-text over titles and body, but 'forVersion' is left unexplained — no hint whether it expects a semantic version, a release identifier, or a keyword, despite ailang_versions being a sibling that presumably supplies valid values.

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: full-text search of the AILANG documentation, scoped to a version. It also distinguishes its corpus from related ones by noting that docs pages rank before archived teaching prompts. It stops short of naming which sibling to use for browsing or stdlib lookups, so the differentiation is implicit rather than explicit.

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

Usage Guidelines3/5

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

Usage is implied by the phrase 'full-text search' plus the ranking note, so an agent can infer this is for keyword lookup rather than navigation. However, there is no explicit when-to-use or when-not guidance, and no pointer to alternatives such as docs_nav or stdlib_search for related needs.

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.