Skip to main content
Glama

physics

Run runtime Godot operations: raycast detection, body info, collision diagnostics, spatial queries, and collision shape overlays. Persist changes via .tscn.

Instructions

物理系统统一工具。支持 5 种操作:raycast(3D 射线检测)、body_info(物理体碰撞信息)、diagnose(物理诊断,含速度/接触点/碰撞形状/ConcavePolygonShape3D 警告)、query_spatial(空间范围查询碰撞体)、collision_overlay(碰撞形状可视化覆盖层)。运行时操作,仅影响当前执行上下文。如需持久化,请编辑 .tscn 文件。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toNo射线终点 {x,y,z}(raycast 必填)
fromNo射线起点 {x,y,z}(raycast 必填)
actionYes操作类型:raycast | body_info | diagnose | query_spatial | collision_overlay
centerNo查询中心点 {x,y,z}(query_spatial 必填)
radiusNo查询半径(query_spatial,默认 10.0)
body_pathNo物理体节点路径(body_info / diagnose 必填)
parent_pathNo父节点路径(collision_overlay,默认 root)
project_pathNoGodot 项目目录路径(可选,默认使用 GODOT_PROJECT_PATH 环境变量或当前目录)
exclude_pathsNo排除节点路径数组(raycast 可选)
collision_maskNo碰撞掩码(raycast / query_spatial 可选)
color_overrideNo统一颜色,如 "1,0,0,0.5"(collision_overlay 可选)
load_autoloadsNo是否加载 Autoload 上下文(默认 true)
Behavior3/5

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

The description adds a key behavioral trait: operations are runtime-only and do not persist, with a pointer to .tscn editing for persistence. Annotations are all false, so this context is valuable. However, it doesn't detail specific side effects or error behavior.

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 a single paragraph that front-loads the tool's purpose and enumerates operations in a compact list. It's concise, with no redundant filler, and the runtime/persistence note is useful. Not perfectly structured but efficient.

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?

For a tool with five actions and no output schema, the description provides a high-level summary of each action's behavior, including specifics like diagnose containing speed/contact points/collision shapes. It also clarifies runtime-only behavior. It doesn't detail return formats or errors, but it's reasonably complete.

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?

The input schema already describes all 12 parameters with 100% coverage. The description adds a natural-language summary of actions but doesn't provide parameter details beyond what the schema already contains. Baseline 3 is appropriate.

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 identifies it as a unified physics system tool and enumerates five specific operations (raycast, body_info, diagnose, query_spatial, collision_overlay), each with a brief Chinese summary. However, it does not explicitly distinguish itself from sibling tools, though the scope is evident.

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?

It states '运行时操作,仅影响当前执行上下文' (runtime operations, only affect current execution context) and '如需持久化,请编辑 .tscn 文件' (for persistence, edit .tscn). This provides clear context for when to use the tool and when not to, though it doesn't name alternative tools.

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/wgt19861219/godot-mcp-enhanced'

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