Skip to main content
Glama
scarletfantasy

nsight-graphics-mcp

Analyze GPU Trace PC samples and stalls

analyze_gpu_trace_pc_sampling
Read-onlyIdempotent

Decode PC-sampling records to identify stall reasons, attribute samples to shaders and code blocks, and rank top shader and instruction-PC hotspots within a trace, time window, or marker.

Instructions

Decode raw PC-sampling records into sample/stall reasons, exact shader/code-block attribution, and top shader and instruction-PC hotspots. Scope the query to the entire trace, a frame-relative time window, or a timed marker id such as BasePass. This does not require shader PDBs; source-line and SASS text correlation are not claimed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stageNoExact shader stage such as PS, VS, CS, or GS.
end_msNoInclusive time-window end relative to the presented frame.
top_pcsNo
start_msNoInclusive time-window start relative to the presented frame.
marker_idNoUse one paired BeginEvent/EndEvent marker as the time window. Cannot be combined with start_ms or end_ms.
report_idYesGPU Trace report session id returned by collect_gpu_trace_report or open_gpu_trace_export.
shader_hashNo
top_reasonsNo
top_shadersNo
Install Server

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, covering safety. The description adds valuable context beyond those: that no shader PDBs are required and source-line correlation is not claimed, which sets expectations for accuracy and input requirements. No contradictions 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the primary action, followed by scoping and limitations. Every sentence adds value, and there is no redundancy with the schema or annotations.

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?

Despite lacking an output schema, the description conveys expected results (sample/stall reasons, code-block attribution, hotspots). It covers purpose, temporal scoping, and a key prerequisite. It could be more complete by detailing parameter interactions (e.g., marker_id vs time range), but for a polished tool description, it is largely sufficient.

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 coverage is 56%, leaving 4 parameters without descriptions. The description compensates for time-window parameters (start_ms, end_ms, marker_id) by explaining frame-relative and marker scoping, and it hints at output parameters (top_shaders, top_pcs). However, it does not explain stage or shader_hash semantics, which the schema only minimally covers.

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 uses a specific verb ('Decode raw PC-sampling records into sample/stall reasons, exact shader/code-block attribution, and top shader and instruction-PC hotspots') and clearly identifies the resource. It distinguishes from siblings like summarize_gpu_trace_range by narrowing to PC-sampling analysis.

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 explicitly states scoping options (entire trace, frame-relative window, marker id) and adds a limitation ('does not require shader PDBs; source-line and SASS text correlation are not claimed'). It doesn't name alternative tools, but the context is clear enough to infer when this tool applies.

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

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/scarletfantasy/nsight-graphics-mcp'

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