Skip to main content
Glama
funkyfunc

Flutter Driver MCP

by funkyfunc

get_widget_tree

Retrieve a JSON representation of the live Flutter widget tree. Use summaryOnly to filter the output, enabling quick inspection of the current UI structure for debugging or test assertions.

Instructions

Returns a JSON representation of the widget tree.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
summaryOnlyNoIf true, returns a filtered tree
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 says it 'returns a JSON representation' but doesn't disclose behavior details: whether this is a read-only operation, whether it captures the current screen or the whole session state, what the tree structure looks like, or any filtering behavior related to summaryOnly. For a tool with zero annotations, this is insufficient.

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?

One sentence, zero waste, front-loaded with the core purpose. No unnecessary elaboration. Appropriate for the modest scope of the tool.

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?

The tool has no output schema, no annotations, and an ambiguous parameter (summaryOnly). For a query tool that returns potentially large structured data, the description should clarify what the JSON contains, how summaryOnly restricts it, and how it differs from get_accessibility_tree. Given the low context in structured metadata, the description is under-developed.

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

Parameters2/5

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

Schema coverage is 100%, but the only parameter (summaryOnly) has a minimal description ('If true, returns a filtered tree') that doesn't explain what 'filtered' means—filtered how, for what purpose? The description repeats the parameter briefly without adding meaningful semantics beyond the schema.

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?

Clear verb+resource (`Returns a JSON representation of the widget tree`). It distinguishes itself from siblings like get_accessibility_tree by mentioning JSON representation and widget tree specifically, though it doesn't explicitly contrast them.

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?

No guidance on when to use this tool vs alternatives like get_accessibility_tree or explore_screen. The description doesn't explain what distinguishes widget tree from accessibility tree, which sibling tools a user might confuse it with.

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

Install Server

Other Tools

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/funkyfunc/flutter-driver-mcp'

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