Skip to main content
Glama
Hackage Haskell Packages MCP

Hackage Haskell Packages MCP

Search Hackage Haskell packages

search_hackage_packages
Read-onlyIdempotent

Search the official Hackage package index by keyword or library name to locate Haskell packages and return matching package results.

Instructions

Search the official Hackage Haskell package index by keyword or library name.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of packages to return (default 20, max 100).
queryYesSearch terms (e.g. "aeson", "servant", "tls").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.3/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds essentially nothing beyond them: it does not describe result ordering/ranking, whether the search is exact or fuzzy, or any remote-service behavior such as rate limits or failures. With annotations present the bar is lower, but no incremental behavioral context is supplied.

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 front-loaded sentence that identifies the action, the target index, and the query modalities with zero padding. 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?

This is a simple two-parameter, read-only search tool with rich annotations and no output schema, so the description does not need to explain return values. However, it is silent on result ordering and on how this tool relates to the sibling package-lookup tools, which leaves a modest but real gap for an agent choosing a tool.

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 parameters (query, limit) are fully documented in the schema, establishing a baseline of 3. The description's "keyword or library name" lightly reinforces what the query parameter accepts but adds no new syntax, matching, or format detail.

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?

"Search the official Hackage Haskell package index by keyword or library name" gives a specific verb (search) and resource (Hackage package index), which naturally distinguishes it from the sibling get_hackage_package_* tools that fetch a known package. It stops short of explicitly naming those siblings as alternatives, so it is clear but not fully differentiated.

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 only implied: the phrase "by keyword or library name" suggests this is the entry point when you don't yet know an exact package name. There is no explicit statement of when to use this versus the get_hackage_package_* lookups, and no exclusions or prerequisite guidance.

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