Skip to main content
Glama
Arenukvern

Flutter Inspector MCP Server

inspector_get_parent_chain

Retrieve the parent widget chain for a specified widget ID in Flutter apps, aiding in debugging widget tree structures. Supports custom debug port configurations.

Instructions

RPC: Get the parent chain for a widget (ext.flutter.inspector.getParentChain). Connects to the default Flutter debug port (8181) unless specified otherwise.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
objectIdYesID of the widget to get parent chain for
portNoOptional: Custom port number if not using default Flutter debug port 8181
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions connecting to a debug port, implying network interaction, but doesn't disclose critical behavioral traits: whether it's read-only or mutative, error handling, authentication needs, rate limits, or what the parent chain output looks like. For a tool with network dependencies and no annotations, this is a significant gap.

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 appropriately sized with two sentences: one states the purpose and RPC method, the other provides connection details. It's front-loaded with the core function. There's no wasted text, though it could be slightly more structured (e.g., bullet points for behavior).

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?

Given no annotations, no output schema, and a tool that interacts with a debug port (implying potential network/authentication issues), the description is incomplete. It lacks details on return format, error conditions, permissions, or side effects, which are crucial for an AI agent to use this tool effectively in a debugging context.

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%, so the schema already documents both parameters ('objectId' and 'port') clearly. The description adds minimal value beyond the schema by reiterating the default port 8181 and that 'port' is optional. Baseline 3 is appropriate when 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 tool's purpose: 'Get the parent chain for a widget' with the specific RPC method 'ext.flutter.inspector.getParentChain'. It distinguishes from siblings by focusing on parent chain retrieval, unlike other inspector tools that get children, details, or screenshots. However, it doesn't explicitly contrast with similar tools like 'inspector_get_children_details_subtree'.

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

Usage Guidelines3/5

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

The description implies usage context by mentioning the default Flutter debug port (8181) and the option to specify a custom port. It doesn't provide explicit guidance on when to use this tool versus alternatives (e.g., 'inspector_get_children_details_subtree' for child exploration) or any prerequisites, leaving usage somewhat open to interpretation.

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

Related 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/Arenukvern/mcp_flutter'

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