pulse_analyze
Estimate a causal effect from a dataset and answer a business question.
Provide exactly one of csv (CSV text) or data (list of row objects).
Returns the full long-form Pulse report (the same answer an email reply
contains) as the primary text content and as report in the structured
result, followed by chart PNGs as image content blocks (unless
include_charts is false). Structured fields: the adjusted effect size
(ate/effect_size) with its confidence
interval (ci_low, ci_high, ci_range), per-channel effects
(channels, keyed by outcome), confidence, and caveats. A test_design
(how long a spend-cut test would take to confirm the effect, and whether the data
already suffices) is included only when the question asks about sample size,
power, or how long a test would take, or when include_test_design is true;
otherwise it is null. With include_guardian_verdict it also returns
guardian_verdict {verdict: pass|caution|hold, reason}, computed locally.
All numbers are deterministic statistics, never LLM-generated.
Args:
question: The business question, e.g. "Does ad spend drive sales?".
csv: Dataset as CSV text.
data: Dataset as a list of row records (alternative to csv).
cause: Treatment column (inferred from the question if omitted).
effect: Outcome column (inferred if omitted).
confounders: Columns to adjust for, in addition to those discovered.
outcomes: Several outcome columns, for by-channel effects.
time_col: Time column (used for the test-design cadence).
include_guardian_verdict: Also return a pass/caution/hold verdict.
include_charts: Attach chart images (DAG, effect, trend) as image content.
include_test_design: Force the spend-cut test design / sample-size section on
(true) or off (false). Omit (null) to include it only when the question
asks about sample size, statistical power, or how long a test would take.
estimator: Optional estimation method: ols_adjusted, aipw, ipw, psm or
dml_forest (or "rule" for the deterministic default). Omit to follow
config.estimator (default "rule"; "llm" lets the model choose from that
list, falling back to the rule choice when no LLM key).
config: Optional per-step engine config, e.g. {"summary": "rule"}. Keys:
cleaning, discovery, estimator, summary; each "rule" (deterministic, no
LLM call) or "llm" (LLM-assisted; falls back to rule and says so in
engine_steps when no key is configured or the call fails). Defaults:
cleaning=llm, discovery=llm, estimator=rule, summary=llm. All "rule"
makes zero LLM calls. Numbers are deterministic in every mode.
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": {
"question": "<question>"
},
"name": "pulse_analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | No | Dataset as CSV text with a header row. | |
| data | No | Dataset as row objects (alternative to `csv`). | |
| cause | No | Treatment column. Inferred from the question if omitted. Must exist. | |
| config | No | Per-step engine config with keys cleaning, discovery, estimator, summary, each `rule` (deterministic, no LLM call) or `llm`. Defaults: cleaning=llm, discovery=llm, estimator=rule, summary=llm. Unknown keys or values are rejected. All `rule` makes no LLM calls. | |
| effect | No | Outcome column. If omitted, the first of `outcomes` is used, otherwise inferred from the question. Must exist. | |
| outcomes | No | Several outcome columns scored with the same causal graph and adjustment set. Results are returned per outcome in `channels`. | |
| question | Yes | The business question in plain English. Also used to infer cause and effect when omitted, and to decide on optional sections (test design, subgroups, robustness checks). | |
| time_col | No | Date or period column, used for row order and test-design cadence. Must exist. | |
| estimator | No | One of rule, llm, ols_adjusted, aipw, ipw, psm, dml_forest. `null` follows `config.estimator` (default `rule`). `llm` lets the model pick from the supported set (falls back to the rule choice without an LLM). A named estimator forces that method, falling back if the data can't support it. Unknown values are rejected. | |
| confounders | No | Columns always adjusted for, in addition to those discovered automatically. On Pulse this is `confounders`, not Guardian's `known_confounders`. | |
| include_charts | No | Attach PNG charts (DAG, effect, trend) as image blocks. `false` omits them and keeps the report from referring to charts. | |
| include_test_design | No | `true`/`false` forces the spend-cut test design section on or off. `null` includes it only when the question asks about sample size, power or test duration. | |
| include_guardian_verdict | No | Also return `guardian_verdict` {verdict: pass|caution|hold, reason}. Computed locally with Guardian's rule; uses no Guardian quota. `verdict` is null if the estimate is unavailable. |