Skip to main content
Glama

navmesh

Bake, configure, and query Unity's NavMesh for AI navigation, including pathfinding, obstacle management, and agent settings.

Instructions

Manage Unity NavMesh navigation system. Actions:

  • bake: Bake the NavMesh for the current scene

  • clear: Clear all NavMesh data

  • get_settings: Get NavMesh agent settings (radius, height, slope, climb)

  • set_settings: Modify NavMesh agent settings

  • get_areas: List NavMesh area names and costs

  • set_area: Set area cost by index

  • get_agents: List all NavMeshAgent components in scene

  • add_agent: Add/configure NavMeshAgent on a GameObject

  • find_path: Calculate a path between two positions

  • sample_position: Find the nearest NavMesh point to a position

  • get_obstacles: List all NavMeshObstacle components

  • add_obstacle: Add NavMeshObstacle to a GameObject

  • get_surfaces: List NavMeshSurface components (AI Navigation package)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xNoX position for sample_position
yNoY position for sample_position
zNoZ position for sample_position
toNoEnd position JSON for find_path: {"x":0,"y":0,"z":0}
costNoArea traversal cost
fromNoStart position JSON for find_path: {"x":0,"y":0,"z":0}
rangeNoSearch range for sample_position
shapeNoObstacle shape: box or capsule
speedNoAgent movement speed
actionYesNavMesh action to perform
carvingNoEnable carving on obstacle (true/false)
objectIdNoInstance ID of a GameObject
areaIndexNoNavMesh area index (0-31)
agentClimbNoStep height for settings
agentSlopeNoMax slope angle for settings
objectPathNoHierarchy path of a GameObject
agentHeightNoAgent height for settings
agentRadiusNoAgent radius for settings
accelerationNoAgent acceleration
angularSpeedNoAgent turning speed
stoppingDistanceNoDistance to stop from target
Behavior2/5

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

The description notes that 'clear' removes all NavMesh data and 'bake' generates the NavMesh, implying destructive potential. However, it does not explicitly warn about irreversible actions or required permissions. With only a readOnlyHint=false annotation, the description should provide more safety cues.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is relatively concise but uses a bullet list that is easy to scan. However, it could be better structured by grouping read vs write actions or adding a brief usage note. It is not excessively long but lacks optimal organization.

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 the tool's complexity (21 parameters, 13 actions, no output schema), the description is insufficient. It does not explain how parameters are action-specific, nor what return values or side effects to expect. The agent would need to infer parameter-action mapping from parameter descriptions alone.

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?

All 21 parameters have descriptions in the input schema (100% coverage), so the schema carries the semantic load. The description adds no extra meaning about how parameters relate to actions, e.g., x,y,z are only for sample_position. Baseline 3 applies as the description does not detract.

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 states 'Manage Unity NavMesh navigation system' which clearly indicates the tool's domain. It lists 13 specific sub-actions, giving a good overview. However, the overall purpose is somewhat generic and could be more precise about what managing NavMesh entails beyond the listed actions.

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?

There is no guidance on when to use this tool versus other siblings like physics or terrain, nor when to choose one action over another. The description simply enumerates actions without context for selection or prerequisites, leaving the agent to infer usage.

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/joel-wehr/unity-mcp'

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