Skip to main content
Glama

Compare two captures

capture_diff
Read-only

Compares two .gputrace captures by confirmed Metal calls, reporting totals per call with deltas and the 100 debug groups with the largest change, without needing Xcode.

Instructions

Compares two .gputrace captures by their confirmed Metal calls: totals per call (a, b, delta) and the 100 debug groups with the largest change. Needs no Xcode.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "a": "<a>",
      "b": "<b>"
    },
    "name": "capture_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
aYesthe first .gputrace (usually the one before a change)
bYesthe second .gputrace
fieldsNoresult paths to keep, dotted: common.frame_pacing

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.28.0
    • addedInput schema / properties / fields
      Added value: +{
      +  "description": "result paths to keep, dotted: common.frame_pacing",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Addedv0.27.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds useful behavioral context beyond that: the comparison is scoped to 'confirmed Metal calls,' results are limited to the 100 largest-changing debug groups, and it runs without Xcode. It does not discuss ordering, tie-breaking, or behavior when the captures are incompatible, so a 3 is appropriate.

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 compact sentences, front-loaded with what is compared and immediately followed by what comes back. Every clause earns its place, including the short 'Needs no Xcode' qualifier.

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 simple read-only comparison with an output schema and full parameter documentation, the description supplies enough: input expectation, comparison basis, and result shape. The missing piece is routing against sibling comparison tools, which keeps it from a 5.

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 all three parameters, including the dotted 'fields' filter path example, are already documented. The description adds nothing about parameter semantics beyond what the schema states, which matches the baseline 3.

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 states a specific verb and resource ('Compares two .gputrace captures by their confirmed Metal calls') and even names the output shape (totals per call a/b/delta plus the top 100 changed debug groups). It is clear what the tool does, but it never distinguishes itself from compare-like siblings such as perf_compare or perf_ab.

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 explicit when-to-use or when-not-to-use guidance and no named alternative, despite several plausible sibling tools for comparison and diffing. The only usage signal is the aside 'Needs no Xcode,' which hints at a standalone workflow but doesn't tell an agent when to pick this over perf_compare.

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