Skip to main content
Glama
vikranthviki

Causal Decision Agent

by vikranthviki

honest_did_from_result

Read-only

Compute honest confidence intervals for a fitted difference-in-differences or event-study result using Rambachan-Roth (2023) bounds. Auto-extracts coefficients and variance from the result to assess robustness to violations.

Instructions

Rambachan-Roth (2023) honest CIs on a fitted DID / event-study result. Auto-extracts betas + sigma + pre/post-period counts from the result; the LLM never ferries arrays.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
eNoRelative event time to audit.
m_barNoBound on deviation magnitude (optional).
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
methodNoSD = smoothness deviation (Rambachan-Roth default); RM = relative magnitude.SD
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_pathNoAbsolute 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_idYesHandle to a DID / event-study result.
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 declare readOnlyHint=true, so the description does not need to cover safety. It adds value by disclosing that betas, sigma, and counts are auto-extracted from the result, and that the LLM does not need to pass arrays – a concrete behavioral detail. It also names the method (Rambachan-Roth 2023). 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 purposeful. The first front-loads the core purpose and the second explains a key convenience (auto-extraction) that shapes how the LLM should call the tool. No wasted words.

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 read-only tool with an output schema, the description covers the essential usage: it operates on a fitted result identified by result_id and auto-extracts necessary components. It does not explicitly state it requires a DID/event-study result type, but that is implied by the name and first sentence. Given the rich schema and output schema, it is adequately complete.

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 descriptions cover 100% of parameters, each with a detailed explanation (e.g., detail levels, method options, data_path formats). The description's note about auto-extracting betas/sigma/counts reinforces the role of result_id but does not add significant meaning beyond the schema. Baseline 3 applies.

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 states a specific action (computes honest CIs) on a specific resource (fitted DID/event-study result), and distinguishes itself from siblings like honest_did by emphasizing it works on a fitted result and auto-extracts arrays, so the LLM never ferries arrays. This clearly differentiates it from tools that take raw data.

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 clearly implies it should be used when a fitted DID/event-study result already exists, and that the user should pass a result_id rather than raw data. However, it does not explicitly name alternatives or state when not to use it, leaving some inference to the agent.

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