Skip to main content
Glama
marcinkuk

trailsearch-mcp

by marcinkuk

trailsearch_search

Search the web via a self-hosted API, returning tailored results with configurable limits, domain filters, recency, and optional synthesized answers or page crawling.

Instructions

Search the web through a self-hosted TrailSearch API (SearXNG-backed, Tavily-compatible).

Args: query: search query string. max_results: number of results to return (1-20, default 5). mode: "search" (fast, results only) or "crawl" (also fetches page content). search_depth: "basic" or "advanced". include_answer: request a short synthesized answer. include_domains: only include results from these domains. exclude_domains: skip results from these domains. days: restrict results to the last N days (1/7/30/365). topic: optional topic hint (e.g. "news").

Returns: JSON string with the search results (title, url, content/snippet, score).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNo
modeNosearch
queryYes
topicNo
max_resultsNo
search_depthNobasic
include_answerNo
exclude_domainsNo
include_domainsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the full burden of disclosing behavior. It mentions the return format (JSON string with results) and the input parameters, but it does not disclose potential side effects, rate limits, authentication requirements, or any underlying API constraints. While it is read-only in nature, this is not explicitly stated, and the description lacks depth on operational behaviors, leaving some ambiguity.

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?

The description is concise and well-structured: one sentence for the purpose, a clean list of arguments with short explanations, and a clear return statement. It avoids unnecessary fluff, front-loads the main action, and is easy to scan. No redundant information is present.

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?

The description covers the essential aspects: purpose, parameters, and return format. It mentions the output as a JSON string with specific fields (title, url, content/snippet, score), which is sufficient given that an output schema exists (though not shown). However, it does not address edge cases like error handling, pagination, or rate limits, and it does not mention the sibling tool or when to prefer this tool over it. These gaps prevent a perfect score but do not make the description inadequate for basic usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema provides only types and defaults with no descriptions (0% schema coverage). The description compensates by explaining each parameter in detail, such as 'query: search query string', 'mode: 'search' (fast, results only) or 'crawl' (also fetches page content)', and 'include_answer: request a short synthesized answer'. This adds significant meaning beyond the schema, fully covering all 9 parameters.

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 description clearly states the tool's purpose: 'Search the web through a self-hosted TrailSearch API' and mentions it is SearXNG-backed and Tavily-compatible. This distinguishes it from the sibling tool 'trailsearch_extract', which likely extracts content from a given URL, making the purpose specific and unambiguous.

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?

The description provides clear context on what the tool does and its parameters, but it does not explicitly compare it to the sibling tool 'trailsearch_extract'. It is implied that this tool is for web searching while the sibling is for extraction, but an explicit 'when to use this vs. that' statement is missing. This gives a clear context but lacks explicit exclusions, warranting a 4 rather than a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/marcinkuk/trailsearch-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server