Skip to main content
Glama

Android Navigation 3 Guide

android_navigation3_guide
Read-only

Get the official Navigation 3 reference covering NavKey, NavDisplay, scenes API, and migration from Navigation 2 to generate correct navigation code for Android projects.

Instructions

Complete Navigation 3 reference (stable November 2025) — the current official navigation library. ALWAYS call this before generating any navigation code. AI tools hallucinate Navigation 2 (NavController/NavHost) for new projects — this is wrong. Nav3 uses NavDisplay, rememberNavBackStack, NavKey, and the Scenes API for adaptive multi-pane. Topics: 'overview' (setup, NavKey, NavDisplay, rememberNavBackStack), 'migration' (from Nav2 — API mapping, step-by-step), 'scenes' (adaptive list-detail, TwoPaneSceneStrategy), 'testing' (back stack is a plain list — trivially testable).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topicNoNavigation topic: 'overview', 'migration', 'scenes', 'testing', 'backstack', 'key'
Behavior4/5

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

The description adds context that the tool is a 'stable reference' and is safe to call (no destructive actions). Annotations already mark it as read-only, so no contradiction. The description effectively reinforces the non-destructive nature.

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 well-structured with a clear opening, critical warning, and topic breakdown. It is slightly lengthy but every sentence adds value. Could be slightly more concise, but overall effective.

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 no output schema, the description implies return of reference text but does not explicitly describe response format. However, it covers essential usage context, topic options, and guidance, making it largely complete for a reference tool.

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 coverage is 100% with a brief parameter description; however, the tool description adds rich detail for each topic value (e.g., 'overview' includes setup, NavKey, etc.; 'migration' includes API mapping). This significantly aids correct parameter selection beyond the 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 it is a 'Complete Navigation 3 reference' and specifies the library version and purpose. It differentiates from sibling tools by emphasizing it is the current official navigation library and explicitly lists covered topics.

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

Usage Guidelines5/5

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

The description explicitly instructs 'ALWAYS call this before generating any navigation code' and warns against hallucinating Navigation 2. It provides a clear when-to-use guidance and lists specific topics to request.

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/VIKAS9793/AndroJack-mcp'

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