Skip to main content
Glama

Download every trial of a run as a CSV file

export_run
Read-onlyIdempotent

Gives you one of your finished runs as a file of every trial, as a CSV, and returns a temporary download link. Use this when the user wants the raw data as a file: all the trials of a run to open in a spreadsheet such as Excel or Google Sheets, or to hand to someone. The file has one row per trial: a trial column (counting from 0), then one column per node and period, named like "revenue [p2]" (the node id, then period 2). Every node and every period is included unless you pass nodes or periods to include only some. The values are the exact values drawn in each trial. It returns download_url, expires_at, rows (the trial count) and columns (the header row). The link needs no credential and expires; call again for a fresh one. Only a simulation made with an account (run_monte_carlo_simulation) keeps its trials; for any other run it returns per_trial_not_kept. To read or analyse trials yourself in the conversation, such as how correlated two nodes were across trials, use get_simulation_results with trials instead: this tool is for handing the data over as a file, not for reading it. It reads a run that already happened and never runs the model again. It needs a Neumann account: send your key, or your signed-in token, in the Authorization header as a Bearer credential. No Neumann tool takes an api_key argument. Cost: free -- it debits no credits and spends none of your free daily runs -- but it needs an account; an anonymous caller gets account_required.

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": {
      "run_id": "<run_id>"
    },
    "name": "export_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodesNoIds of the nodes to include, one column per node and period. Default: every node.
run_idYesThe run to export, as returned by any run tool or list_runs. It must be a run_monte_carlo_simulation run made with an account, the only kind that keeps its trials.
periodsNoTime period indices to include, counting from 0. Default: every period.

Output Schema

NameRequiredDescriptionDefault
rowsYesHow many rows the file has: one per trial.
run_idYesThe run the file is of.
billingNoWho you are and what this call cost: principal, auth source, credits debited and balance, or the anonymous allowance left today.
columnsYesThe file's header row, in order: trial, then one name like "revenue [p2]" (node id, then period) per column.
expires_atYesWhen download_url stops working, as an ISO-8601 time.
download_urlYesA temporary web address of the .csv file. It needs no credential. Open it, or give it to the user; it stops working at expires_at, and calling export_run again returns a fresh one.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / run_id / description
      Previous value: -"The run to export, as returned by any run tool. It must be a run_monte_carlo_simulation run made with an account, the only kind that keeps its trials."New value: +"The run to export, as returned by any run tool or list_runs. It must be a run_monte_carlo_simulation run made with an account, the only kind that keeps its trials."
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, it discloses the link is credential-free and expires with a re-call needed, the exact failure modes (per_trial_not_kept, account_required), the auth mechanism (Bearer key or signed-in token, no api_key argument), that the model is never re-run, and that it is free of credit cost. That is unusually rich behavioral context for a read-only tool.

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?

Front-loaded with the action and the file format, then routing, then behavior, then cost/auth — a sensible order. It is fairly long and repeats the account requirement twice (in the sibling caveat and the auth sentence), which is minor redundancy rather than filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter export tool with an output schema, the description still covers scope, filtering defaults, return fields (download_url, expires_at, rows, columns), error cases, and auth/cost. An agent can invoke it and handle failures without consulting anything else.

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 100%, so the baseline is 3, but the description adds real meaning: the column layout ('revenue [p2]' = node id plus period), the default of every node and period, and that values are the exact drawn values. It stops short of elaborating on node-id or period-range edge cases beyond what the schema states.

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?

States a specific verb and resource: exports a finished run as a CSV of every trial and returns a temporary download link. It also distinguishes itself from the nearest sibling by naming get_simulation_results and the condition that selects it (reading/analysing trials in-conversation).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use ('when the user wants the raw data as a file... to open in a spreadsheet or hand to someone') and when-not-to-use ('to read or analyse trials yourself... use get_simulation_results with trials instead'). It also names the prerequisite run type: only run_monte_carlo_simulation runs with an account keep trials.

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