Skip to main content
Glama

sample_performance

Collect selected runtime performance monitors across stepped frames in a paused Godot debug session, returning bounded series, units, and numeric summaries while advancing the game and leaving it paused.

Instructions

Sample selected runtime Performance monitors across stepped frames in a paused debug session. Returns bounded series, units and numeric summaries. Advances the game and leaves it paused; not passive/full profiling.

Input Schema

NameRequiredDescriptionDefault
kindNophysics
samplesNo
monitorsNo
sessionIdNoExplicit process/debug session handle; required for follow-up tools on MCP 2026-07-28
timeoutMsNo
intervalFramesNo

Output Schema

NameRequiredDescriptionDefault
kindYes
pausedYes
metricsNo
samplesYes
summariesYes
sampleCountYes
advancedFramesYes
intervalFramesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.1

TDQS

B3.4/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and destructiveHint=false; the description adds real behavioral context beyond them — that the call advances the game, leaves it paused afterward, and returns bounded series with units and summaries, so the agent knows there is a side effect on runtime state. It stops short of covering timeout or session-expiry 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?

Three tight sentences with the core action front-loaded and the caveat about advancing the game placed where it is likely to be read. No filler, though the return-value sentence partially duplicates the output schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return shape needn't be spelled out, and the side-effect disclosure is helpful. But for a 6-parameter tool at 17% schema coverage, the description leaves too much of the sampling configuration undocumented to be fully complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 17% and only sessionId carries a description. The description says nothing about kind (physics vs process), the samples count, the monitors list, intervalFrames stepping, or timeoutMs, so an agent must infer all five from bare schema constraints.

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?

States a specific verb and resource: sampling selected runtime Performance monitors across stepped frames in a paused debug session. It also draws a line against passive profiling, which distinguishes it conceptually from get_performance_monitors, though it never names that sibling.

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

Usage Guidelines3/5

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

The clause 'not passive/full profiling' and 'in a paused debug session' imply when this tool applies and when it does not, but there is no explicit instruction such as 'use get_performance_monitors for a single passive snapshot' or any stated prerequisite like an active debug session.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.