Skip to main content
Glama

aegis_validate_artifact

Validates a deliverable .tar.gz before upload by checking archive shape, aegis.json schema, banned paths, entrypoint rules, and referenced assets; fix all FAIL results first.

Instructions

Dry-run validation of the deliverable tarball: shape, aegis.json schema, banned paths (node_modules/.git/secrets), entrypoint rules, and referenced-asset existence. Fix every FAIL before aegis_upload_artifact.

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": {
      "archivePath": "<archivePath>"
    },
    "name": "aegis_validate_artifact"
  }
}

Input Schema

NameRequiredDescriptionDefault
archivePathYesLocal path to the .tar.gz to validate (same file you would upload)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and 'dry-run' plus the enumerated check list makes clear the operation is non-mutating and local. It also implies the response contains PASS/FAIL entries. It does not state auth/network requirements or the exact result structure, 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?

Two short sentences, no filler. The scope of validation is front-loaded and the follow-up action directive comes last, which matches how an agent reads a pre-flight tool.

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 one-parameter, no-output-schema validation tool, the description covers what is checked and the required next action. The only omission is how failures are reported back (structure of the FAIL list), which an agent would otherwise have to discover by calling it.

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?

There is a single parameter with 100% schema description coverage, so the schema already explains archivePath as the .tar.gz to validate. The description adds no further detail such as path format, size limits, or whether relative paths are accepted, so baseline 3 applies.

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?

Names a specific verb (dry-run validation) and resource (deliverable tarball), then enumerates the exact check categories: shape, aegis.json schema, banned paths, entrypoint rules, referenced-asset existence. This is clearly distinguishable from aegis_upload_artifact, which performs the real upload.

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?

Explicitly positions the tool as a pre-flight step: 'Fix every FAIL before aegis_upload_artifact' gives a clear ordering against a named sibling. It stops short of stating whether validation is mandatory or what to do if the archive is absent, but the when-to-use signal is strong.

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