Skip to main content
Glama

Read a capture's records

capture_records
Read-only

Page through a .gputrace command stream to inspect records and resolve their Metal call names. Use offset, limit, and field filters to analyze GPU work without Xcode.

Instructions

Returns one page of the records of a .gputrace command stream, with their Metal call names when known.

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_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNodefault 50, at most 500
fieldsNoresult paths to keep, dotted: common.frame_pacing
offsetNodefault 0
captureYesa .gputrace bundle inside METAL_TRACE_OUT or METAL_TRACE_READ

Output Schema

NameRequiredDescriptionDefault
rowsYes
totalYes
offsetYes
next_offsetYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 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"
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"rows per page, default 50, at most 500"New value: +"default 50, at most 500"
    • changedInput schema / properties / offset / description
      Previous value: -"first row, default 0"New value: +"default 0"
  2. Changed1 schema field changedv0.10.1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "next_offset": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "offset": {
      +      "type": "integer"
      +    },
      +    "rows": {
      +      "type": "array"
      +    },
      +    "total": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "total",
      +    "offset",
      +    "rows",
      +    "next_offset"
      +  ],
      +  "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

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 genuine behavioral context that the capture is paginated and that Metal call names may be absent ('when known'), which prepares the agent for partial results. It does not discuss ordering, page exhaustion, or error behavior for a bad capture path.

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 sentence that front-loads the verb and resource and contains no filler. Every clause carries information: pagination scope, resource type, and the caveat about call name availability.

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 paged list tool with a full-coverage schema and an output schema present, the description covers what the tool returns and its paging nature. The remaining gap is routing guidance against the many capture_/trace_/perf_ siblings, which is not addressed.

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%, with limit defaults, offset defaults, fields dotted-path semantics, and the capture bundle location all documented in the schema. The description adds no parameter meaning beyond that, so the baseline 3 applies.

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: returns one page of records from a .gputrace command stream, with Metal call names where known. That scope is concrete and distinguishable from summary/diff style siblings, though it does not name any sibling directly.

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 when-to-use or when-not-to-use guidance, and no pointer to capture_summary, capture_diff, or trace_query for related needs. The only implied cue is that results are paged, so an agent must infer that paging is the alternative to a summarization tool.

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