Skip to main content
Glama

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

NameRequiredDescriptionDefault
csvNoDataset as CSV text with a header row.
dataNoDataset as row objects (alternative to `csv`).
causeNoTreatment column. Inferred from the question if omitted. Must exist.
configNoPer-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.
effectNoOutcome column. If omitted, the first of `outcomes` is used, otherwise inferred from the question. Must exist.
outcomesNoSeveral outcome columns scored with the same causal graph and adjustment set. Results are returned per outcome in `channels`.
questionYesThe 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_colNoDate or period column, used for row order and test-design cadence. Must exist.
estimatorNoOne 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.
confoundersNoColumns always adjusted for, in addition to those discovered automatically. On Pulse this is `confounders`, not Guardian's `known_confounders`.
include_chartsNoAttach PNG charts (DAG, effect, trend) as image blocks. `false` omits them and keeps the report from referring to charts.
include_test_designNo`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_verdictNoAlso 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed13 schema fields changed
    • addedInput schema / properties / cause / description
      Added value: +"Treatment column. Inferred from the question if omitted. Must exist."
    • addedInput schema / properties / config / description
      Added value: +"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."
    • addedInput schema / properties / confounders / description
      Added value: +"Columns always adjusted for, in addition to those discovered automatically. On Pulse this is `confounders`, not Guardian's `known_confounders`."
    • addedInput schema / properties / csv / description
      Added value: +"Dataset as CSV text with a header row."
    • addedInput schema / properties / data / description
      Added value: +"Dataset as row objects (alternative to `csv`)."
    • addedInput schema / properties / effect / description
      Added value: +"Outcome column. If omitted, the first of `outcomes` is used, otherwise inferred from the question. Must exist."
    • addedInput schema / properties / estimator / description
      Added value: +"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."
    • addedInput schema / properties / include_charts / description
      Added value: +"Attach PNG charts (DAG, effect, trend) as image blocks. `false` omits them and keeps the report from referring to charts."
    • addedInput schema / properties / include_guardian_verdict / description
      Added value: +"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."
    • addedInput schema / properties / include_test_design / description
      Added value: +"`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."
    • addedInput schema / properties / outcomes / description
      Added value: +"Several outcome columns scored with the same causal graph and adjustment set. Results are returned per outcome in `channels`."
    • addedInput schema / properties / question / description
      Added value: +"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)."
    • addedInput schema / properties / time_col / description
      Added value: +"Date or period column, used for row order and test-design cadence. Must exist."
  2. Changed2 schema fields changed
    • addedInput schema / properties / config
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Config"
      +}
    • addedInput schema / properties / estimator
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Estimator"
      +}
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and does so: it discloses the return shape (long-form report as text plus `report`, chart PNGs as image blocks), the exact structured fields (`ate`, `ci_low`/`ci_high`, `channels`, caveats), conditional output logic for `test_design` and `guardian_verdict`, and the cost model (guardian verdict uses no quota; all-rule config makes zero LLM calls; numbers are deterministic, never LLM-generated). It also documents fallback behavior when no LLM key is configured, which is exactly the kind of trait an agent cannot infer from structure.

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?

Purpose and return behavior are front-loaded, which is good, but the Args section is a near-verbatim re-listing of a schema that is already 100% documented, adding length without adding much. The prose about return fields is dense but each sentence carries information; the redundancy is the main cost.

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 13-parameter tool with no output schema, the description explains the return payload thoroughly: primary text report, structured `report`, image blocks, effect fields, per-channel results, and conditional sections. Config step names, defaults, and fallback semantics are all stated, so an agent has everything needed to call it correctly and interpret the result.

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 baseline is 3, but the description adds real meaning beyond the schema: the mutual exclusivity of `csv` and `data`, the inference chain for `effect` ('first of outcomes, otherwise inferred from the question'), and the explicit note that Pulse uses `confounders` rather than Guardian's `known_confounders`. Most of the Args block does restate schema text, which keeps it from a 5.

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?

Opens with a specific verb and resource: 'Estimate a causal effect from a dataset and answer a business question.' An agent immediately knows this is a causal-inference analysis tool that consumes a dataset plus a plain-English question. There are no siblings to disambiguate against, so nothing further is required on this dimension.

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?

Gives a hard input constraint ('Provide exactly one of csv or data') and conditional usage rules for optional sections, e.g. test_design is included 'only when the question asks about sample size, power, or how long a test would take' unless forced. It also explains when to omit estimator (follow config) versus naming one. It stops short of explicit when-not-to-use guidance or prerequisites, but with no sibling tools there is no alternative to route to.

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.