Skip to main content
Glama
zafnz
by zafnz

flutter_pub_add

Add one or more packages to a Flutter project's dependencies. Specify the project directory and package list to update pubspec.yaml, with an option to add as dev dependencies.

Instructions

Add one or more packages to the project's dependencies.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
devNoAdd as dev dependency
packagesYesPackage names to add (e.g. ['http', 'provider'])
project_dirYesPath to the Flutter project directory

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.2.5

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavioral effects. It only states the action of adding packages, without mentioning that this modifies pubspec.yaml, triggers dependency resolution, may require network access, or can fail if a package is invalid. This is a significant transparency gap for a mutating tool.

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?

The description is a single, direct sentence with no redundant or extraneous content. It front-loads the action and resource clearly, making it easy to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no output schema and no annotations, the description is too thin. It does not explain side effects, expected results, or error conditions, which are essential for an agent to correctly invoke the tool and interpret the outcome.

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 meaningful descriptions for all three parameters (dev, packages, project_dir). The description adds minimal semantic value beyond the schema, so the baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb and resource: 'Add one or more packages to the project's dependencies.' This clearly distinguishes it from sibling tools like flutter_pub_get, which fetches existing dependencies rather than adding new ones.

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?

The description provides no guidance on when to use this tool versus alternatives such as flutter_pub_get, flutter_clean, or flutter_analyze. No conditions, exclusions, or contextual hints are given, leaving the agent to infer usage solely from the tool name and general knowledge.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zafnz/flutter-dev-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server