Skip to main content
Glama
Hackage Haskell Packages MCP

Hackage Haskell Packages MCP

Get Hackage package cabal metadata

get_hackage_package_cabal
Read-onlyIdempotent

Fetch and parse a Hackage package's .cabal manifest to inspect license, category, maintainer, GHC tested-with versions, and build-depends for dependency and supply-chain review.

Instructions

Fetch and parse a Hackage package .cabal manifest to inspect license, category, maintainer, GHC tested-with versions, and build-depends.

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": {
      "package_name": "<package_name>"
    },
    "name": "get_hackage_package_cabal"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionNoOptional exact package version (defaults to latest).
package_nameYesExact Hackage package name (e.g. "aeson", "warp").

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint, and destructiveHint=false, so safety and idempotence are covered. The description adds that a remote manifest is fetched and parsed, which explains the open-world network dependency, but says nothing about failure behavior for unknown packages or versions, response shape, or caching. Moderate added value over annotations.

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 with the action verb first and the payoff fields listed after; every clause carries information and nothing is padded.

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?

For a simple two-parameter read tool with full schema coverage and explicit annotations, the description covers what is fetched and what is inspectable. With no output schema, one could ask for a bit more on the returned structure, but the enumerated fields largely fill that role.

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 (package_name and optional version defaulting to latest) are fully documented in the schema. The description adds no format or edge-case detail beyond that, so the baseline of 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 gives a specific verb pair (fetch and parse), a concrete resource (a Hackage package .cabal manifest), and enumerates the fields exposed (license, category, maintainer, tested-with GHC versions, build-depends). That makes the tool's output distinguishable from generic search or version-listing siblings, though it partially overlaps with get_hackage_package_maintainers by naming maintainer as a field.

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 field list — an agent can infer this is the tool for inspecting cabal-level metadata rather than revisions or versions. However, there is no explicit when-to-use framing and no direction about preferring get_hackage_package_maintainers when only maintainer data is needed.

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