Skip to main content
Glama

Fetch Results

fetch_results

Download a finished simulation's results archive to a local directory, returning its file path and size for opening or publishing. Call only after the run reaches a terminal state.

Instructions

Download a finished simulation's results to a local file.

Writes the results archive to dest_dir (a temp dir by default) and returns the path and size rather than the raw bytes, so the host can open or publish the file. Call only once the run is terminal (see simulation_status).

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": {
      "simulation_id": "<simulation_id>"
    },
    "name": "fetch_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
dest_dirNo
simulation_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It usefully discloses the key side effect (writes an archive to disk) and the deliberate design choice of returning a path and size rather than raw bytes, but says nothing about overwrite behavior, permission requirements, size limits, or whether the archive is consumed/removed after download.

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?

Three short sentences, front-loaded with the action, then the mechanism, then the precondition. No filler and no repetition of the schema.

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?

An output schema exists, yet the description still clarifies the return contract (path and size, not bytes) and the local-write side effect, which is the information an agent most needs to chain this into a host workflow. The remaining gap is failure/error behavior when the run is not terminal.

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 description coverage is 0%, so the description must compensate, and it does add real meaning for the ambiguous parameter: dest_dir receives the archive and defaults to a temp directory. simulation_id is only implied by 'a finished simulation's results' rather than explained, leaving one of two parameters without added semantics.

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?

States a specific verb and resource ('Download a finished simulation's results to a local file'), including the 'finished' qualifier that scopes which runs are eligible. It does not explicitly differentiate itself from the sibling fetch_dataset, which plausibly also downloads files, so an agent must infer that distinction from the resource name alone.

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?

Gives an explicit precondition: 'Call only once the run is terminal (see simulation_status)', naming the sibling that determines readiness. It stops short of stating what happens if called on a non-terminal run or when fetch_dataset would be the better choice.

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