Skip to main content
Glama

workload_fetch

Idempotent

Downloads a workload's pinned test program, checks its SHA-256, and caches the verified binary for reuse in later runs.

Instructions

Downloads a test program from this project's GitHub releases once, checks its SHA-256 against the one this package pins, and keeps it in ~/Library/Caches/metal-gpu-trace; later calls reuse it. The programs are built from source by the project's workloads workflow.

Input Schema

NameRequiredDescriptionDefault
nameYesa workload name from workload_list, such as drawstress

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.10.1
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "type": "object"
      +}
  2. Addedv0.7.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true, openWorldHint=true, and destructiveHint=false, so the description's job is mostly to add context. It does: network fetch from GitHub, SHA-256 integrity verification against a pinned hash, and a specific cache path in ~/Library/Caches/metal-gpu-trace. It omits what happens on checksum mismatch or offline failure, which keeps it from a 5.

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 action and integrity check, followed by cache location and reuse semantics. The provenance sentence about the workloads workflow justifies trust in the binary rather than padding, and no sentence is redundant.

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?

With rich annotations and an output schema present, the description covers the essential mechanics: source, verification, cache location, and idempotent reuse. The remaining gap is failure behavior (checksum mismatch, no network), which matters for an open-world download but is a modest omission.

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% and the single `name` parameter is documented in the schema with an example and a pointer to workload_list. The description itself adds no parameter guidance, so the baseline of 3 is appropriate given the schema carries the load.

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 names a specific action and resource: downloading a test program from the project's GitHub releases, verifying its SHA-256, and caching it locally. An agent can distinguish this from read-only siblings like workload_list or perf_run because the caching and download behavior is stated. It stops short of explicitly directing agents to workload_list for valid names, which would sharpen differentiation.

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?

'later calls reuse it' implies the tool is safely re-invoked and that a first call seeds the cache, which is useful implied guidance. However, there is no explicit when-to-use instruction (e.g. 'call before perf_run if the workload is not cached') and no stated alternatives or exclusions relative to workload_list or presentmon_install.

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