Skip to main content
Glama

Follow a number across runs

perf_history
Read-only

Lists matching GPU recordings oldest-first and compares FPS, frame pacing, stutter, hitches, and memory over time so you can tell real trends from noise and spot mixed Windows/Metal runs.

Instructions

Lists the recordings whose name starts with prefix, oldest first, with FPS, 1% low, GPU ms, stutter, hitches and peak Metal MiB, and the change from first to last. A trend is real only above the spread_pct of perf_baseline. Windows and Metal runs in one series are flagged.

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": {
      "prefix": "<prefix>"
    },
    "name": "perf_history"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNonewest runs to keep, default 50
fieldsNoresult paths to keep, dotted: common.frame_pacing
prefixYesthe start of the run names to follow: letters, digits, '.', '_', '-'
skip_sNoseconds to leave out at the start (shaders compile, resources load), default 0; GPU numbers, hitches and Metal memory are recomputed without them

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.28.0
    • addedInput schema / properties / fields
      Added value: +{
      +  "description": "result paths to keep, dotted: common.frame_pacing",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / skip_s / description
      Previous value: -"seconds to leave out at the start of each recording, where shaders compile and resources load; 0 (default) keeps all. The GPU numbers, hitches and Metal memory are recomputed without them"New value: +"seconds to leave out at the start (shaders compile, resources load), default 0; GPU numbers, hitches and Metal memory are recomputed without them"
  2. Addedv0.18.0

TDQS

A4.1/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, so the safety profile is covered; the description adds real context beyond that: oldest-first ordering, the computed first-to-last delta, the mixed Windows/Metal flagging behavior, and the noise threshold for calling a trend real. It does not say what happens with zero matches, which is the main remaining gap.

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?

Three sentences, front-loaded with the operation and scope, then the returned metrics, then the interpretation threshold. No filler and no restatement of the title or annotations.

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?

An output schema exists, so return-shape explanation is not required, and annotations cover read-only safety. The description still supplies the series grouping notion (platform flagging) and the delta computation, leaving only edge cases like empty result sets or how series are keyed unstated.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, and the description still adds meaning the schema doesn't: that matching is on the leading characters of run names, that results are ordered oldest first against `limit`'s newest-kept semantics, and that deltas are computed across the retained series. This is value beyond the structured fields rather than repetition.

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 ('Lists the recordings whose name starts with `prefix`') plus scope details: oldest-first ordering and the exact metrics returned. It never names a sibling it is not (e.g. perf_runs or perf_compare), so the agent must infer differentiation, but the operation itself is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an interpretation rule ('A trend is real only above the spread_pct of perf_baseline') that usefully ties it to a sibling, implying this is the trend-viewing tool after a baseline exists. It stops short of stating when to pick this over perf_runs or perf_compare, or any prerequisite that a baseline must exist first.

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