Skip to main content
Glama
Flutter Inspector MCP Server

Flutter Inspector MCP Server

inspector_get_root_widget_summary_tree_with_previews

Retrieve a hierarchical widget tree with previews to debug Flutter apps, providing insights into structure and layout for efficient analysis and resolution of UI issues.

Instructions

RPC: Get the root widget summary tree with previews from the Flutter app. This provides a hierarchical view of the widget tree with preview information.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "inspector_get_root_widget_summary_tree_with_previews"
  }
}

Input Schema

NameRequiredDescriptionDefault
portNoPort number where the Flutter app is running (defaults to 8181)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/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. It states the tool retrieves data ('Get'), implying a read-only operation, but doesn't disclose behavioral traits like whether it requires specific app states, potential performance impacts, error conditions, or return format details. This leaves significant gaps for a tool interacting with a running Flutter app.

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?

The description is concise with two sentences that directly state the purpose and what it provides. It's front-loaded with the core action and avoids unnecessary details, though it could be slightly more structured by explicitly mentioning the default port or sibling differentiation.

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?

Given the tool's moderate complexity (interacting with a Flutter app), lack of annotations, and no output schema, the description is minimally adequate. It covers the basic purpose but lacks details on usage context, behavioral implications, and output format, which are important for effective tool selection by an AI agent.

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?

The input schema has 100% description coverage, with the single parameter 'port' documented as 'Port number where the Flutter app is running (defaults to 8181)'. The description adds no additional parameter semantics beyond this, so it meets the baseline of 3 where the schema does the heavy lifting.

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 clearly states the action ('Get') and resource ('root widget summary tree with previews from the Flutter app'), and specifies it provides a hierarchical view with preview information. However, it doesn't explicitly differentiate from sibling tools like 'inspector_get_root_widget_summary_tree' (without previews), which is a notable gap.

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 the similar 'inspector_get_root_widget_summary_tree' tool (which lacks previews) or other inspector tools for different views. It mentions the Flutter app context but offers no explicit usage rules or exclusions.

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

Deploy Server

Other Tools

Related Tools