Skip to main content
Glama

flutter_docs

Fetch Flutter and Dart documentation by automatically detecting identifier types, including widgets, classes, and pub.dev packages, with optional topic filtering for specific information.

Instructions

Unified tool to get Flutter/Dart documentation with smart identifier resolution.

Automatically detects the type of identifier and fetches appropriate documentation. Supports Flutter classes, Dart classes, and pub.dev packages.

Args: identifier: The identifier to look up. Examples: - "Container" (Flutter widget) - "material.AppBar" (library-qualified Flutter class) - "dart:async.Future" (Dart API) - "provider" (pub.dev package) - "pub:dio" (explicit pub.dev package) - "flutter:Container" (explicit Flutter class) topic: Optional topic filter. For classes: "constructors", "methods", "properties", "examples". For packages: "getting-started", "examples", "api", "installation" tokens: Maximum tokens for response (default: 10000, min: 1000)

Returns: Dictionary with documentation content, type, and metadata

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
identifierYes
topicNo
tokensNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries full burden. It discloses key behavioral traits: 'smart identifier resolution' that automatically detects identifier types, supports multiple documentation sources, and returns structured data. However, it lacks details on error handling, rate limits, authentication needs, or performance characteristics.

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 well-structured and appropriately sized. It starts with a clear purpose statement, follows with supporting capabilities, then provides detailed parameter explanations in a logical Args/Returns format. Every sentence adds value with no redundant information.

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?

Given the tool's moderate complexity (3 parameters, smart resolution logic) and the presence of an output schema (which handles return value documentation), the description is nearly complete. It covers purpose, usage context, parameter semantics thoroughly. The main gap is lack of behavioral details like error cases or limitations, but the output schema reduces this burden.

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?

With 0% schema description coverage, the description fully compensates by providing comprehensive parameter semantics. It explains 'identifier' with detailed examples and type detection logic, 'topic' with specific use cases and valid values for different identifier types, and 'tokens' with default and minimum values - adding significant meaning beyond the bare 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 clearly states the tool's purpose as 'get Flutter/Dart documentation with smart identifier resolution' and specifies it supports Flutter classes, Dart classes, and pub.dev packages. It distinguishes from siblings like 'flutter_search' and 'search_flutter_docs' by emphasizing unified resolution rather than search functionality.

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 provides clear context for when to use this tool (for fetching documentation with identifier resolution) and implies alternatives through sibling tool names like 'search_flutter_docs' for search operations. However, it doesn't explicitly state when not to use this tool or directly compare to alternatives.

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

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