Skip to main content
Glama

Download a sandbox artifact

get_artifact
Read-onlyIdempotent

Download a sandbox artifact by sandbox ID and path, retrieving one file up to 50 MiB from /home/user or /tmp as raw bytes for inspection or processing.

Instructions

Download a sandbox artifact. Downloads one file of up to 50 MiB, under /home/user or /tmp, as raw bytes.

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": {
      "sandboxId": "<sandboxId>",
      "path": "<path>"
    },
    "name": "get_artifact"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
sandboxIdYesPublic Sandbox id returned by create/list/get sandbox calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds genuinely useful behavior beyond that: a hard 50 MiB ceiling, a restricted path root, and the fact that the response is raw bytes rather than structured JSON. It omits error behavior on oversized or out-of-scope paths, 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?

Two sentences, both front-loaded with the action first and the constraints second. Nothing is repeated from the title or annotations, and no sentence could be removed without losing information.

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 two-parameter read tool with no output schema, the definition covers the essentials: what comes back (raw bytes), the size limit, and the allowed path roots. The remaining gap is failure behavior — what happens for a path outside the roots or a file above 50 MiB — which an agent may need before calling.

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?

Schema coverage is only 50% — sandboxId is well documented with a pattern and provenance, but path has no schema description at all. The description partially compensates by constraining the artifact location to /home/user or /tmp and implying one file per call. It still does not clarify whether path is absolute or relative, leaving a real gap.

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 gives a specific verb and resource ('Download a sandbox artifact') and narrows scope with 'Downloads one file of up to 50 MiB, under /home/user or /tmp, as raw bytes.' That is enough for an agent to know this is a single-file byte transfer rather than a metadata lookup. It stops short of naming the sibling alternative create_download_url, which is the most likely confusion point.

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?

Usage is implied by the constraints: use this when you want the file contents as raw bytes, and only for files inside /home/user or /tmp with size at most 50 MiB. There is no explicit 'use X instead when...' routing and no statement about what to do when the file exceeds the cap or lives elsewhere, so an agent must infer the alternatives.

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