Skip to main content
Glama

Summarize a capture

capture_summary
Read-only

Reads a Metal .gputrace capture without Xcode to inspect command buffers, encoders, draws, debug groups, and the top 100 call IDs by frequency.

Instructions

Reads a Metal .gputrace capture without Xcode: command buffers, encoders, draws, debug groups, and the 100 most frequent call ids out of calls_total.

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": {
      "capture": "<capture>"
    },
    "name": "capture_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsNoresult paths to keep, dotted: common.frame_pacing
captureYesa .gputrace bundle inside METAL_TRACE_OUT or METAL_TRACE_READ

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.28.0
    • changedInput schema / properties / capture / description
      Previous value: -"path of a .gputrace bundle saved from Xcode, inside METAL_TRACE_OUT or METAL_TRACE_READ"New value: +"a .gputrace bundle inside METAL_TRACE_OUT or METAL_TRACE_READ"
    • addedInput schema / properties / fields
      Added value: +{
      +  "description": "result paths to keep, dotted: common.frame_pacing",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
  2. Changed1 schema field changedv0.10.1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "type": "object"
      +}
  3. Changed1 schema field changedv0.7.1
    • addedInput schema / properties / capture / description
      Added value: +"path of a .gputrace bundle saved from Xcode, inside METAL_TRACE_OUT or METAL_TRACE_READ"
  4. First observedv0.2.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description adds meaningful context beyond that: it works without Xcode and returns a bounded slice of 100 frequent call ids out of calls_total. The truncation limit is a useful behavioral disclosure an agent would otherwise miss. It stops short of describing ordering, cost, or how the capture path is resolved.

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?

A single front-loaded sentence that lists contents compactly with no filler. The list of returned sections is dense but each item earns its place by telling the agent what the summary contains.

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 read-only tool with an output schema, fully described parameters, and only two inputs, the definition covers purpose and output scope adequately. The only material gap is routing guidance relative to the capture_* siblings, which an agent must infer.

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 100%, with both the 'fields' dotted-path filter and the 'capture' bundle location described in the schema itself, so the baseline is 3. The description adds no additional meaning about these parameters, though 'calls_total' hints at the shape of the summary output rather than parameter behavior.

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?

States a specific verb and resource ('Reads a Metal .gputrace capture') and then enumerates the contents returned (command buffers, encoders, draws, debug groups, frequent call ids), so the agent knows the scope of the summary. It does not name or distinguish itself from siblings like capture_records or capture_diff, so it falls short of a 5.

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 guidance: nothing says to pick this for an overview versus capture_records for detail or capture_diff for comparison. The only contextual hint is 'without Xcode,' which describes independence from external tooling rather than when to select this tool over an alternative.

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