Skip to main content
Glama

get_package

Fetch pub.dev details for a Dart or Flutter package, including description, version, homepage, SDK constraints, and publish date. Use it when a task references a package.

Instructions

Get full pub.dev info for a Dart/Flutter package: description, latest version, homepage, SDK constraints, publish date. Use when a task mentions a pub.dev package.

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": "<package>"
    },
    "name": "get_package"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageYespub.dev package name, e.g. http or provider

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavior burden. The verb "Get" and the field list imply a read-only fetch, but nothing is said about failure modes (unknown package), network/registry dependency, rate limiting, or response shape.

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 sentences, zero filler: the returned content is front-loaded and the usage trigger follows. Every clause earns its place.

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 one-parameter read tool with no output schema, listing the returned fields does real work and is the main thing an agent needs. Only error behavior for a nonexistent package is left unstated.

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 coverage is 100% and the single parameter already documents itself as a pub.dev package name with an example. The description adds no additional meaning about name resolution, case sensitivity, or scoped package names, so 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?

"Get full pub.dev info for a Dart/Flutter package" states a specific verb and resource and enumerates the returned fields (description, latest version, homepage, SDK constraints, publish date). This implicitly separates it from narrow siblings like latest_version or pub_score, but no sibling is named explicitly.

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?

"Use when a task mentions a pub.dev package" gives a clear trigger condition, but there is no when-not guidance and no routing to alternatives such as latest_version, pub_score, or get_changelog, which overlap with the fields this tool returns.

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