Skip to main content
Glama

profiler

Read-onlyIdempotent

Profile Godot performance at runtime with snapshots, session management, and frame-level analysis. Detect regressions, memory trends, and active nodes to optimize your project.

Instructions

性能分析工具。snapshot: 快照(FPS/内存/绘制调用/物理统计)。start/stop: 开始/停止分析会话。get_data: 收集帧级数据,含多维度采样、p99百分位、趋势退化检测、内存趋势、渲染统计。get_active_processes: 遍历场景树查找有 _process/_physics_process 的节点。get_signal_connections: 列出子树所有信号连接。运行时操作,仅影响当前执行上下文。如需持久化,请编辑 .tscn 文件。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes操作类型
node_pathNo子树根节点路径(get_active_processes/get_signal_connections,默认 root)
dimensionsNo采样维度列表(get_data,默认 ["process"])。有效值: process, physics, nav_process
target_fpsNo目标帧率,用于帧预算分析(get_data,默认 60)
frame_countNo采样帧数(get_data,默认 60)
project_pathNoGodot 项目目录路径(可选,默认使用 GODOT_PROJECT_PATH 环境变量或当前目录)
load_autoloadsNo是否加载 Autoload 上下文(默认 true)
leak_threshold_mbNo内存泄漏嫌疑阈值 MB(get_data,默认 2.0)
Behavior5/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false. The description adds valuable context by clarifying that operations affect only the current execution context and that no persistent changes are made, reinforcing the read-only nature without contradiction.

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 concise and well-structured, listing actions with brief explanations and ending with a crucial limitation. Each sentence contributes useful information without redundancy, making it easy for an agent to parse quickly.

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?

The description adequately covers all actions and the types of data collected (FPS, memory, draw calls, p99 percentile, trends, etc.) for a tool with several parameters and no output schema. It could elaborate on the return format of get_data, but the current level is sufficient for selecting and invoking the tool correctly.

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%, with each parameter thoroughly documented including enums and defaults. The description's mention of multi-dimensional sampling and frame-level data aligns with the schema but does not add significant extra meaning, so the baseline score of 3 is appropriate.

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 identifies the tool as a '性能分析工具' (performance analysis tool) and enumerates specific actions (snapshot, start/stop, get_data, get_active_processes, get_signal_connections) with explicit purposes. This distinguishes it from sibling tools by focusing on runtime profiling and scene introspection.

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 states that operations are runtime-only and affect only the current execution context, explicitly noting that persistence requires editing .tscn files. This provides a clear when-not-to-use condition, though it does not explicitly name alternative tools for persistent changes.

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