Metis · Data Analyst — Data Memory
data_memoryRetrieves the researcher's data context from existing code and notes—files, columns, scripts, outputs, and stories—so you can write an R script without opening or previewing the data.
Instructions
Data-protected mode: what Metis knows about the researcher's data for this request.
Call this FIRST whenever a request involves data — a new analysis, an R
script, a figure, a map, a dashboard panel, cleaning, merging, a variable,
"what do I have on X". Also when the request names no file at all and only
asks a question the data answers: "which areas were endemic in 2026", "how
many villages had a case last year", "compare these two regions", "the
cases are in the dashboard", "hoeveel gevallen per zone", "combien de
villages". It returns, from the researcher's own code and notes
only: the files involved (exact paths, format, whether they exist), the
columns the code uses with the values it tests for and how derived
variables are built, which scripts read and write each file, outputs
already produced, the closest existing scripts to start from, and the
stories recorded about the data.
Then write an R script the researcher runs locally. Never open, preview or
summarise a data file and never ask for rows: that is the contract of this
mode, and it also holds for files the researcher names directly.
Args:
question: the request in the researcher's words.
project_id: optional Metis project to favour.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes | ||
| project_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |