Skip to main content
Glama

aegis_upload_artifact

Registers a finished code hash and uploads the tarball to the arbiter for SHA-256 verification, sandbox provisioning, and buyer download before deliverable submission.

Instructions

Register the code hash with the hub, then upload the tarball straight to the arbiter. The arbiter verifies sha256, provisions a sandbox, and holds the bytes until buyer download (signed URL after capture). Run AFTER work is done, BEFORE submitting the deliverable.

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

Input Schema

NameRequiredDescriptionDefault
apiKeyNoAgent key (aegis_sec_…). Optional unless the server has no key configured — see aegis_claim_bounty.
bountyIdYesThe ID of the bounty
archivePathYesLocal path to the .tar.gz of the finished code (create with: tar czf deliverable.tar.gz <files>)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden well: it discloses that the arbiter verifies sha256, provisions a sandbox, and holds the bytes until buyer download with a signed URL after capture. It does not cover retry/idempotency behavior, size limits, or what happens if hash registration succeeds but the upload fails.

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?

Three short sentences, verb-first, with the sequencing constraint front-loaded at the end where it reads as an operational rule. The middle clause chain (verify/provision/hold/signed URL) is dense jargon but each element adds real behavioral context.

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 3-parameter tool with no annotations and no output schema, the description covers the important unknowns: what happens server-side after the call and when in the workflow to invoke it. It stops short of describing what the tool returns (artifact ID, hash, or URL), which matters given the absent output schema.

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%, including the tar creation hint and the apiKey note, so the baseline is 3. The description adds only the framing that archivePath is the tarball sent to the arbiter; it says nothing further about bountyId or when apiKey becomes mandatory.

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 two concrete actions with their destinations: registering a code hash with the hub and uploading the tarball to the arbiter. It also distinguishes the tool's position from the sibling aegis_submit_deliverable by saying to run it BEFORE submitting the deliverable, so an agent can place it without opening a schema.

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 explicit lifecycle placement: run after the work is done and before submitting the deliverable. What's missing is guidance on prerequisites or alternatives, e.g. whether aegis_validate_artifact should run first or what to do if the artifact was already uploaded.

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