Skip to main content
Glama

find_generated_artifacts

Read-onlyIdempotent

Locate generated-code artifacts like pass dumps, MLIR, kernel C++, and dfx outputs in repo build roots; filter by kind, repo, or program path to find the needed build stage.

Instructions

Locate generated-code artifacts across the workspace: pass dumps, .pto MLIR, kernel/orchestration C++, dfx outputs.

Scans each repo's build_output/outputs/build roots (read-only) and classifies what it finds. Combine with the debug/codegen-inspection resource to know which stage each artifact belongs to.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "find_generated_artifacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoOptional artifact kind filter, e.g. passes_dump, pto_mlir, kernel_aic_cpp, orchestration_cpp, dfx_outputs
repoNoOptional repository name (e.g. "pypto", "pypto-lib") to scope the search. Empty searches every repo's artifact roots.
max_resultsNoMaximum results to return (1–1000)
program_hintNoOptional substring of the output path (e.g. a kernel or program name) to filter on.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.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, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds behavior beyond that: it discloses the exact search roots (build_output/outputs/build) and that results are classified. It omits what 'classified' means and how max_results truncation manifests, 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the verb and scope, followed by the search roots and the companion-resource hint; every sentence carries information. Slightly long line-wrapped phrasing ('Scans each repo's build_output/outputs/build roots (read-only) and classifies what it finds') could be tighter, but nothing 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 an output schema present, return values need no explanation, and annotations cover the safety profile, so the description only needs scope, search behavior, and guidance — all of which it provides. The main residual gap is not explaining how 'classified' results are grouped or ordered, which matters for an agent deciding whether to filter by kind or program_hint.

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 every parameter (kind, repo, max_results, program_hint) is documented in the schema with defaults and bounds. The description only echoes the artifact kinds that recur as kind filter values, adding no filter syntax or interaction detail. Baseline 3 is appropriate when the schema carries the parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (locate) and resource (generated-code artifacts), then enumerates the concrete artifact classes: pass dumps, .pto MLIR, kernel/orchestration C++, dfx outputs. The scope is narrow and clearly distinct from the sibling tools, which concern entrypoints, skills, tasks, docs, and repo/health checks.

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

Usage Guidelines4/5

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

It gives clear usage context (search the workspace's build roots for artifacts) plus a concrete companion step: pair with the debug/codegen-inspection resource to determine which stage an artifact belongs to. It does not state when not to use it or name an alternative that already returns artifact paths, so it stops short of a 5.

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