Skip to main content
Glama

artifact-invalidator

Which derived artifacts must be rechecked after these inputs changed? (bounded dependency graph) — Given a dependency graph of artifacts (each lists the artifact ids it was derived from) and the ids that changed, returns every artifact that transitively depends on a change, in an order safe to recompute (inputs before dependents), and the artifacts that are unaffected. A cycle or an unknown input id is a defect in the graph and returns fail with the cycle path. Changed ids that are unknown fail

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": {
      "artifacts": "<artifacts>",
      "changed": "<changed>"
    },
    "name": "artifact-invalidator"
  }
}

Input Schema

NameRequiredDescriptionDefault
changedYes
artifactsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full behavioral burden; it does so by specifying transitive propagation, safe recompute ordering with inputs before dependents, unaffected artifacts, and failure behavior for cycles or unknown ids. Permissions and rate limits are unmentioned, but they are not material for this deterministic graph query.

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?

The definition is front-loaded with the core question and then packs output ordering and error behavior into a compact explanation. Minor redundancy around unknown-id failures and the awkward phrase 'returns fail' keep it from being maximally tight.

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 no output schema and no annotations, the description explains what is returned, the safe order, and error cases. It still does not specify the exact response object shape or keys, leaving some parsing ambiguity for the agent.

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

Parameters4/5

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

With schema description coverage at 0%, the description supplies the key semantics: artifacts is the dependency graph where each artifact lists the ids it was derived from, and changed is the set of changed ids. It does not restate size limits or string constraints, but it adds the necessary conceptual mapping for both parameters.

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?

The description names the exact computation: given a dependency graph and changed ids, return all transitive dependents in recompute-safe order plus unaffected artifacts. It is specific enough to distinguish this from a generic invalidation or cache-check tool.

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 clearly frames the use case as determining which derived artifacts must be rechecked after inputs change. It does not name alternatives or explicit when-not cases, so it stops short of the top score.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources