Skip to main content
Glama

benchmarkEffectFPS

Measures achieved FPS, jitter, and frame timing against a target rate to benchmark shader effect rendering performance and identify frame pacing issues.

Instructions

Measure achieved FPS, jitter, and frame timing statistics against a target frame rate.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "benchmarkEffectFPS"
  }
}

Input Schema

NameRequiredDescriptionDefault
backendNoRendering backendwebgl2
effectsNoComma-separated effect IDs
effect_idNoOne effect ID, such as "synth/noise"
resolutionNoViewport resolution as [width, height]
target_fpsNoTarget FPS
duration_secondsNoBenchmark duration in seconds

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.4

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and discloses little beyond the metric names. It never says whether measurement is offscreen or composited, whether the run blocks the caller, what resources or time it consumes (only the schema's duration default hints at this), or whether calling it repeatedly is safe.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, though the terseness leaves the routing and prerequisite gaps for other dimensions to penalize.

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?

For a six-parameter benchmark tool with no annotations and no output schema, the description leaves key questions unanswered: which of effects/effect_id to supply and whether they are mutually exclusive, what the return payload contains, and whether the tool requires a compiled effect. It is not sufficient for correct invocation without trial and error.

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%, so the six parameters are already documented, and the description adds only the notion of a target rate corresponding to target_fps. The ambiguous pair effects (comma-separated IDs) versus effect_id (single ID) is left unaddressed by both the schema and the description.

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 (measure) and concrete outputs (achieved FPS, jitter, frame timing) qualified by a target frame rate, which is enough to separate it from siblings like renderEffectFrame or analyzeEffect. It stops short of explicitly naming what it is not, so an agent still has to infer the boundary from sibling names.

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 when-to-use guidance at all — nothing says whether a benchmark should be run before or after compileEffect, or how it relates to renderEffectFrame/describeEffectFrame. No prerequisites (e.g., that effects must be compiled first) and no exclusions are mentioned.

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