Skip to main content
Glama
lpenguin
by lpenguin

diff_draws

Identify differences in resolved pipeline, bind groups, and bindings between two draw commands to pinpoint why one draw renders correctly and another does not.

Instructions

Structurally diff the resolved state (pipeline, bind groups, vertex/index bindings, draw params) of two draw commands — useful when a working draw and a broken draw share a pipeline and the difference must be in bound resources.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cmdAYesCommand index of the first draw.
cmdBYesCommand index of the second draw.
captureIdNoCapture id (default: most recent).
Behavior4/5

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

With no annotations, the description carries the burden, and it does disclose the core behavior: it compares resolved draw state rather than raw commands and lists the compared categories. It doesn't explicitly state return shape or read-only nature, but 'diff' strongly implies a non-mutating comparison.

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?

A single front-loaded sentence states the operation and its scope, followed by a use-case clause. No filler or redundant restatement of the tool name.

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?

For a low-complexity, three-parameter tool with complete schema descriptions, the description is largely sufficient. It lacks an explicit statement of the output shape, but the absence of an output schema and the simple diff semantics keep this to a minor gap.

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 schema already documents cmdA, cmdB, and captureId. The description adds context that these are draw commands to compare, but does not need to repeat parameter details; baseline 3 applies.

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 ('structurally diff') and a precise resource ('resolved state of two draw commands'), and enumerates the state components (pipeline, bind groups, vertex/index bindings, draw params). This distinguishes it from single-draw inspectors like get_draw_state.

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 a concrete scenario: use when a working and broken draw share a pipeline and the difference likely lies in bound resources. It does not explicitly name alternatives or state when not to use, but the context is clear enough for an agent to select it.

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

Install Server

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/lpenguin/webgpu_inspector_mcp'

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