Skip to main content
Glama
phunkaeg

apitrace-mcp

by phunkaeg

trace_launch

Launch a game under apitrace to begin capturing graphics API calls for later analysis. Returns a session ID to stop the trace after the desired gameplay is recorded.

Instructions

Launch a game under apitrace and start capturing. Returns a session id.

This runs the game -- it does not block. Let the user play the part they want captured, then call trace_stop (ideally after they quit the game normally, so the trace is flushed cleanly).

api: gl, d3d7, d3d8, d3d9, or dxgi (D3D10/11). Empty auto-detects from the PE. method: 'iat' (default) or 'mhook'. Try mhook when a game loads the graphics DLL dynamically and IAT patching misses it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
apiNo
argsNo
methodNoiat
outputNo
game_exeYes
working_dirNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A4.1/5.0
Behavior4/5

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

The description discloses the key behavioral trait that this runs the game and does not block, and warns about flushing cleanly on normal quit. Since annotations only carry generic flags with no safety detail, this extra context is valuable for an agent managing side effects.

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 main action and return value are front-loaded, followed by a concise non-blocking/cleanup note and a tight parameter legend. Every sentence earns its place, with no filler or repetition.

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 covers the launch lifecycle, session id, and the two least obvious parameters, but for a 6-parameter tool with zero schema descriptions it leaves output and working_dir unexplained and does not mention prerequisites such as wrapper installation. The presence of an output schema mitigates return-value documentation, but not these call-preparation gaps.

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?

Input schema coverage is 0%, and the description compensates for api and method by enumerating valid values and default behavior. However, args, output, and working_dir are left undocumented, so the compensation is only partial despite those being non-trivial parameters.

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 states a specific action and resource: 'Launch a game under apitrace and start capturing' and mentions it returns a session id. This clearly distinguishes it from siblings like trace_stop, trace_status, and replay_trace.

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 gives an explicit workflow: launch, let the user play, then call trace_stop after normal quit for a clean flush. It also gives conditional method guidance ('Try mhook when... IAT patching misses it') and explains empty api auto-detection. It doesn't explicitly name when not to use the tool, but the operational context is strong.

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/phunkaeg/apitrace-mcp'

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