Skip to main content
Glama
vikranthviki

Causal Decision Agent

by vikranthviki

spec_curve

Read-only

Enumerates all defensible model specifications, runs each regression, and returns the distribution of coefficients to reveal robustness across analytic choices.

Instructions

Specification-curve analysis (Simonsohn et al. 2020): enumerates every combination of model choices the user declares defensible, runs them all, and returns the sign/magnitude distribution. Use when an agent needs to report robustness across a researcher-degree-of-freedom multiverse.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
xYesFocal regressor (treatment) column.
yYesOutcome column.
alphaNo
detailNoPayload depth: 'minimal' (~150 tokens) for sub-step calls where only the point estimate is needed; 'standard' (~1K tokens) for diagnostics + coefficient table; 'agent' (~2K tokens, default) adds violations / next_steps / suggested_functions so the LLM can plan its next call without another round-trip.agent
controlsNoThe multiverse of control sets: a list of control-column lists, one per specification.
se_typesNoStandard-error flavours to sweep (e.g. 'classical', 'hc1', 'cluster').
as_handleNoIf true, cache the fitted result on the server and return result_id + result_uri alongside the JSON payload so a subsequent tools/call can chain without re-running.
data_pathYesAbsolute path or URL to a data file. Supported: .csv / .tsv / .txt (delimited), .parquet / .pq, .feather / .arrow, .xlsx / .xls, .dta (Stata), .json / .jsonl. Schemes: file://, s3://, gs://, https://.
result_idNoOptional handle to a previously-fitted result (returned by an earlier call when as_handle=true). Tools that operate on a fitted object accept this in place of re-supplying data_path + columns.
cluster_varNoCluster column for clustered SEs.
data_columnsNoOptional column projection. Parquet/Feather/Stata loaders honour this for fast partial reads.
data_sample_nNoOptional uniform random subsample size (seed=0, deterministic) — useful on huge panels.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, openWorldHint=false), so the bar is lower. The description adds real behavioral context beyond that: the exhaustive 'runs them all' trait signals potentially heavy computation, and 'returns the sign/magnitude distribution' tells the agent what kind of result to expect. No contradiction with annotations.

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 essential: the first front-loads the action and method, the second delivers the usage condition. Zero filler words, and the methodological citation earns its place by anchoring the agent to the established technique.

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, so return-value documentation is already covered. The 12 parameters are 92% documented in the schema (including the detail enum with token counts), and the description conveys the essential scope and cost signal ('runs them all'). Nothing critical for correctly invoking the tool is missing.

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 coverage is 92%, so the schema already documents the parameters well (baseline 3). The description adds marginal conceptual framing — 'model choices the user declares defensible' maps onto the controls/se_types multiverse parameters — but it doesn't clarify syntax or formats beyond the schema. It stays at baseline.

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 a specific method (specification-curve analysis, Simonsohn et al. 2020) with a concrete verb chain: enumerates model-choice combinations, runs them all, returns the sign/magnitude distribution. This is distinct from sibling robustness/sensitivity tools because it uniquely identifies exhaustive multiverse enumeration as the core behavior.

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?

"Use when an agent needs to report robustness across a researcher-degree-of-freedom multiverse" gives an explicit, well-phrased trigger condition. It stops short of naming excluded alternatives or sibling tools one should prefer instead, so it lacks the when-not dimension that would make it a 5.

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

Deploy Server

Other Tools