Skip to main content
Glama

Cork docs

Search Cork's docs

search_docs
Read-onlyIdempotent

Find the sections of Cork's documentation, guides and blog that best answer a question, quoted with their links. Use it for how Cork works, installing and connecting it, its MCP tools, the cork CLI, the REST API, pricing and the sandbox. Then fetch_doc reads a whole page.

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, 1 to 10 (default 5)
queryYesThe question or keywords, e.g. "how does the write gate work"

Output Schema

NameRequiredDescriptionDefault
queryYes
resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds meaningfully on top: it discloses the returned unit is quoted sections plus links, scopes the corpus to documentation/guides/blog, and defines a follow-up path to fetch_doc. It stops short of stating result-count control or what an empty/no-match response looks like, which would be the remaining useful behavioral detail.

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?

Three sentences with no filler: purpose and return shape first, applicability second, sibling routing last. The topic list is dense but each item is a genuine coverage claim that helps an agent decide relevance.

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 two-parameter search tool with a full output schema and rich annotations, everything needed to call it correctly is present — verb, corpus, topic coverage, return unit, and the sibling handoff. Return-value details are correctly left to the output schema rather than duplicated.

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 query and limit are already documented in the schema, including the 1–10 range and default. The description's "answer a question" phrasing reinforces the query intent but adds no syntax, format, or limit guidance beyond the structured fields, making baseline 3 the correct level.

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?

"Find the sections of Cork's documentation, guides and blog that best answer a question, quoted with their links" names a specific verb (find sections), a specific corpus (docs, guides, blog), and the shape of the result (quoted excerpts with links). The final sentence explicitly separates it from the sibling fetch_doc, so an agent can pick between the two without opening either schema.

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?

It enumerates concrete topic domains — how Cork works, installation and connection, MCP tools, the cork CLI, REST API, pricing, sandbox — which gives an agent a real applicability test rather than a vague "search the docs" framing. The closing "Then fetch_doc reads a whole page" establishes the search-then-fetch sequence, though it implies rather than states the negative case (use fetch_doc when you already know the page or need full detail).

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.

Resources