Skip to main content
Glama
scarletfantasy

pix-mcp

pix_get_gpu_frames

Read-onlyIdempotent

Get GPU frame timing data from a PIX capture to analyze frame pacing. Shows per-frame timestamps from Present to flip, helping identify whether stutters originated from CPU waiting or GPU work.

Instructions

The present timeline: one row per frame, from the Present call to the flip.

This is the frame-pacing view, and the reason to take a timing capture rather than a GPU one. Each frame carries the whole chain as separate timestamps - when Present was called, when it reached the queue, when the GPU finished writing, when the display scanned it out - so a stutter can be attributed to the part of the chain that grew rather than just to the frame that was late. block_on_fence and wait_on_swapchain are where a CPU thread sat waiting for the GPU or for a buffer to free up.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
end_timeNo
capture_idYes
start_timeNo
cursor_positionNo
timeout_secondsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already mark the tool as read-only, idempotent, and non-destructive, so no side-effect disclosure is needed. The description adds valuable behavioral context about the row content and the meaning of timestamps and wait points, going beyond what the annotations provide. There is no contradiction with annotations.

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 three sentences, front-loaded with the core definition, then expands on why the frame-pacing view is useful. The last sentence about block_on_fence and wait_on_swapchain is somewhat niche but contributes to interpreting the timeline.

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?

The description is strong for tool selection and output interpretation, but it omits how to constrain the query and what the six parameters mean. An output schema exists, which mitigates return-value uncertainty, but invocation guidance remains thin.

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

Parameters1/5

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

Schema description coverage is 0%, and the description provides no parameter-level guidance. It does not explain capture_id, limit, start_time, end_time, cursor_position, or timeout_seconds, leaving an agent to infer all argument semantics from names alone.

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 the resource as 'The present timeline: one row per frame, from the Present call to the flip' and calls it 'the frame-pacing view', which distinguishes it from GPU-timeline tools. However, it does not use an explicit verb like 'returns' or 'gets', so the action is carried mostly by the tool name.

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 explains when this tool is the right choice: it is the frame-pacing view and the reason to take a timing capture rather than a GPU one, especially for attributing stutters to a stage in the present-to-flip chain. It does not explicitly name an alternative sibling tool or state 'use X instead', so it stops short of a 5.

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