Skip to main content
Glama
vikranthviki

Causal Decision Agent

by vikranthviki

did_report

Read-only

Fits selected difference-in-differences methods and generates a comprehensive report bundle with diagnostics, sensitivity analysis, and suggested next steps for evidence-based decisions.

Instructions

DID report bundle: fits selected methods and writes report artifacts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yYesSame as :func:`did_summary`.
timeYesSame as :func:`did_summary`.
alphaNoSame as :func:`did_summary`.
groupYesSame as :func:`did_summary`.
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
clusterNoSame as :func:`did_summary`.
methodsNoSame as :func:`did_summary`.auto
save_toYesDirectory path. Created if it does not exist.
verboseNoPrint progress lines.
controlsNoSame as :func:`did_summary`.
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.
first_treatYesSame as :func:`did_summary`.
data_columnsNoOptional column projection. Parquet/Feather/Stata loaders honour this for fast partial reads.
plot_sort_byNoSort the forest plot by estimate ascending.estimate
data_sample_nNoOptional uniform random subsample size (seed=0, deterministic) — useful on huge panels.
include_sensitivityNoWhether to run Rambachan-Roth breakdown M*. Defaults to ``True`` in ``did_report`` (vs ``False`` in ``did_summary``) because a report is expected to be comprehensive.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already provide readOnlyHint=true and openWorldHint=false, so the safety posture is known. The description adds the useful behavioral fact that the tool writes report artifacts, which is more than the annotations alone convey. It does not mention server-side caching or other side effects, though these are hinted at in the schema; there is no clear contradiction with the 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?

The description is a single efficient sentence with no filler: it states both what the tool fits and what it writes. Every clause carries information, and the structure is front-loaded with the key purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The input schema and output schema carry most of the burden, documenting 18 parameters and return structure. Yet for a complex reporting tool with many sibling tools, the description omits the relationship to did_summary, what a report bundle contains, and the intended workflow. It is minimally viable but not richly contextual.

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 the baseline is 3 even if the tool description adds no parameter detail. The description only gestures at 'selected methods,' which weakly maps to the methods parameter. Many parameter descriptions defer to did_summary, which is not self-contained, but they still exist and cover the fields.

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

Purpose4/5

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

The description names a concrete action ('fits selected methods') and a concrete output ('writes report artifacts'), so it is not a mere tautology of the tool name. It conveys that this is a report-producing wrapper rather than a simple estimation or plot tool. However, it does not explicitly differentiate from close siblings like did_summary or did_plot, leaving the exact contents of the 'bundle' somewhat vague.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit guidance about when to choose did_report over did_summary, did_plot, or other report-oriented siblings. The phrase 'report bundle' implies a use case, and the schema references did_summary several times, but the description itself provides no when-to-use/when-not-to-use direction.

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