Skip to main content
Glama
vikranthviki

Causal Decision Agent

by vikranthviki

ges

Read-only

Discover causal structures from observational data with Greedy Equivalence Search, returning validated equivalence-class DAGs and diagnostics for reliable decision-making.

Instructions

Greedy Equivalence Search. Validation: validated evidence tier (known-truth, reference, external-parity, or Monte Carlo artifact). Assumptions: Causal Markov condition and faithfulness (PC/GES/FCI); Causal sufficiency for PC/GES (no latent confounders); FCI relaxes this; Acyclicity; LiNGAM additionally assumes a linear non-Gaussian model. Pre-conditions: Constraint-/score-based discovery needs i.i.d. observational data with enough samples for reliable conditional-independence tests; Invariance-based discovery (ICP) needs data labelled by environment / intervention. Failure modes: Unstable skeleton / many undirected edges -- faithfulness or sample size is the likely culprit -> Increase the sample, relax the CI-test threshold, or switch to FCI if latent confounders are plausible. Alternatives: sp.pc_algorithm, sp.fci, sp.ges, sp.lingam. Typical minimum N: 500.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
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
max_iterNoMaximum total edge additions + removals.
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.
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

A3.7/5.0
Behavior5/5

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

The annotations only declare readOnlyHint=true and openWorldHint=false. The description goes far beyond that by enumerating statistical assumptions (Causal Markov, faithfulness, causal sufficiency, acyclicity), pre-conditions, failure modes with likely causes and remedies, and a typical minimum sample size. This is precisely the kind of behavioral disclosure that helps an agent anticipate edge cases. 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single dense paragraph covering validation, assumptions, pre-conditions, failure modes, alternatives, and minimum N. Every sentence carries useful information, but the lack of bullet points or section breaks makes it harder to scan quickly. It is not excessive in length, but structure could be improved.

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 complex causal discovery tool, the description covers validation tier, assumptions, data requirements, failure modes with remedies, and alternative tools. The output schema exists so return values need not be explained. It lacks an example or a more explicit statement of what a typical result looks like, but the provided context is quite complete for an agent to decide whether to call this tool and how to react to common failure modes.

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 description coverage is 100%, so every parameter already has a detailed description in the schema. The tool description does not add parameter-specific semantics beyond the schema; it only mentions sample size requirements in a general way and does not discuss data_path, max_iter, detail, etc. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with 'Greedy Equivalence Search', which essentially restates the tool name, and then dives into assumptions and failure modes without ever explicitly stating that this tool performs score-based causal discovery on observational data. An agent familiar with GES may infer the purpose, but there is no direct 'perform GES to estimate a causal DAG' statement, and the differentiation from siblings like pc_algorithm or fci rests on the algorithm name rather than an explicit comparison.

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?

The description provides clear pre-conditions (i.i.d. observational data with enough samples for CI tests; labelled data for invariance-based methods), a typical minimum N, and a concrete conditional alternative: switch to FCI if latent confounders are plausible. It lists alternate tools, but does not explicitly say when to choose GES over PC or LiNGAM. Overall it gives solid context and at least one explicit exclusion, so not quite a full 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