Skip to main content
Glama
Amodh2022

flutter-bridge-mcp

by Amodh2022

flutter_attach

Attach the Flutter tool to a running app to enable hot reload. Required once per session before applying source edits via hot reload.

Instructions

Attach the Flutter tool to the running app so hot reload becomes possible.

Needed once per session before flutter_hot_reload: the VM Service on its own has no Dart compiler, so source edits cannot be applied without this.

Args: project_dir: the Flutter project root, the directory holding pubspec.yaml. serial: device serial when several are attached.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
serialNo
project_dirYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.3/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does disclose a key behavioral trait: without attaching, hot reload is impossible because the VM Service lacks a Dart compiler. However, it does not describe operational side effects such as whether the attach command persists, whether it can fail if no app is running, or what the user should expect while attached.

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 compact and front-loaded, stating the core action in the first sentence. The supporting explanation and parameter list each earn their place without filler. It is structured for quick agent scanning.

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?

The tool has a small parameter set and an output schema, so the description does not need to explain return values. It covers purpose, when to use it, and both parameters. It would be more complete with notes on failure modes, such as what happens if no running app is found or if attach is called when already attached.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description fully compensates. It defines project_dir as "the Flutter project root, the directory holding pubspec.yaml" and serial as "device serial when several are attached." Both parameters are given meaningful, actionable semantics that go well beyond the raw JSON schema.

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 opens with a specific verb and resource: "Attach the Flutter tool to the running app so hot reload becomes possible." It clearly differentiates the tool from flutter_hot_reload by stating it is a necessary precondition, and explains the underlying reason (VM Service has no Dart compiler). This makes the tool's purpose unambiguous even among many sibling Flutter tools.

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?

The description explicitly states when to use the tool: "Needed once per session before flutter_hot_reload". It gives clear context about the prerequisite and the consequence of skipping it. However, it does not provide explicit when-not-to-use guidance or name alternatives such as flutter_connect, so it falls just short of a 5.

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