Skip to main content
Glama

pub_score

Retrieve pub.dev package quality metrics—points, likes, downloads, and platform tags—to compare alternatives and choose the right Dart or Flutter package.

Instructions

Get pub.dev quality/score metrics for a package: points, likes, downloads, platform tags. Use when choosing between alternative packages.

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": "pub_score"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations exist, so the description bears the full disclosure burden. It makes the read-only nature evident through "Get" and enumerates the returned metric categories, but says nothing about failure behavior for unknown packages, data freshness/caching of scores, or rate limits on pub.dev. Adequate for a simple read, with real gaps.

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, no filler, with the returned data front-loaded and the usage condition second. Every clause contributes information the agent can act on.

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, the description tells the agent what it will receive (the four metric families) and when it matters. What is missing is modest: package-identifier format and behavior when a package has no score yet.

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?

There is a single required parameter with 0% schema description coverage, so the description must define it. "for a package" only loosely implies the parameter is a package name; it does not state format expectations (bare name vs. name with publisher/version) or minimum length, which the schema only encodes as minLength 1.

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 and resource (get pub.dev quality/score metrics for a package) and enumerates exactly what comes back: points, likes, downloads, platform tags. That enumeration implicitly separates it from get_package and latest_version, but no sibling is named, so differentiation is inferred rather than stated.

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

Usage Guidelines4/5

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

"Use when choosing between alternative packages" supplies a concrete decision context, which is exactly the high-value case for a scoring tool. It stops short of exclusions or naming an alternative (e.g. compare against get_package/latest_version for non-score attributes), so it is clear context without full routing guidance.

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