Skip to main content
Glama

search_packages

Query pub.dev to find Dart and Flutter packages, filtering results by SDK, topic, platform, or limit for relevant dependencies.

Instructions

Search for packages on pub.dev by query with optional filters

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

Input Schema

NameRequiredDescriptionDefault
sdkNoFilter by SDK: dart, flutter
limitNoMaximum number of results (default 10)
queryYesSearch query string
topicNoFilter by topic (e.g., http, firebase, state-management)
platformNoFilter by platform: android, ios, web, linux, macOS, windows

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

TDQS

C2.9/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 disclosure burden and delivers very little: it doesn't say whether results are ordered, how pagination or 'limit' truncation behaves beyond the schema default, or whether the call hits a remote service subject to rate limits. Only the implicit read-only nature of 'search' is conveyed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single sentence with zero filler, and the core action is front-loaded. It is compact to the point of under-specification rather than bloated, but nothing in it is wasted.

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 read-only search with fully documented parameters and no output schema, the description covers the essentials. It is nonetheless thin on result-set behavior (ordering, page size implications) and on how it differs from the sibling similar-packages search.

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%, with each parameter (query, sdk, topic, platform, limit) documented and two enums enumerated, so the schema does the heavy lifting. The description adds only the generic phrase 'optional filters' and no extra meaning such as filter combination or matching behavior, which is the baseline 3.

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?

States a specific verb and resource ('Search for packages on pub.dev') plus the query-plus-filters shape, so the agent knows exactly what the tool does. It does not distinguish itself from the sibling search_similar_packages, leaving the two search tools overlapping from the definition alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance and no named alternative, even though search_similar_packages sits right next to it in the catalog. The agent must infer from names alone which search to pick.

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