Skip to main content
Glama
Hoogle MCP Server

Hoogle MCP Server

by hnbc6667777

search_hoogle

Search Haskell functions, types, modules, and packages by function name, type signature, or keyword to find relevant Hoogle results.

Instructions

在Hoogle中搜索Haskell函数、类型、模块或包。可以使用函数名、类型签名或关键词进行搜索。

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_hoogle"
  }
}

Input Schema

NameRequiredDescriptionDefault
countNo返回结果的最大数量(默认10,最多100)
queryYes要搜索的内容,可以是函数名、类型签名(如 'a -> [a]')或关键词

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, yet it discloses nothing beyond the search surface. It does not say whether this hits a remote Hoogle API, whether results are ordered by relevance, that the operation is read-only/non-destructive, or anything about latency or rate limits.

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, the purpose front-loaded ahead of the input modes, with zero redundant or filler wording. Nothing could be removed without losing information.

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 two-parameter search tool this covers purpose and input modes adequately, but with no output schema in play the description should describe the return shape (e.g., result entries and ranking) and the read-only nature of the call. Those gaps leave it merely adequate rather than complete.

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%: the query parameter documents accepted forms and the count parameter documents default 10 and max 100. The description only restates the query input modes already present in the schema, adding no format or edge-case detail beyond it, so the 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 pairs a specific verb ('搜索' / search) with a concrete resource (Hoogle) and enumerates the searchable entity types: Haskell functions, types, modules, and packages. An agent immediately understands what this tool targets. There are no siblings to differentiate from, so it stops short of the 5 bar.

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?

It states the three input modes (function name, type signature, keyword) and the schema even supplies a type-signature example, which implies how to invoke it. However, it gives no explicit when-to-use vs when-not guidance or any context on what kind of question this tool answers versus other lookups.

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