Skip to main content
Glama

stata_results

Retrieve structured coefficient tables and key statistics from active or stored Stata estimations to read results precisely instead of parsing text output.

Instructions

Structured coefficients and statistics of the active (or a stored) estimation.

name: optional estimates store name; if given it is restored first. Returns a coefficient table (b, se, t/z, p, CI) plus e() scalars and key macros (cmd, depvar, vce, clustvar, absvars...). Use this to read results precisely instead of parsing text output.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "stata_results"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
include_baseNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full load: it discloses that a stored estimate is restored first (an active-state side effect) and that output includes e() scalars and macros. It omits error behavior when no active estimation exists, the read-only guarantee, and what the include_base flag changes in behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

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

It is short and front-loaded with the core meaning, and the parenthetical for `name` is efficient. The line break mid-thought after 'estimation.' is slightly awkward, but nothing is wasted.

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?

An output schema exists, so the return-value description is optional reinforcement. The real gap is the undocumented `include_base` parameter and the unstated precondition/side effect around restoring a stored estimate, which an agent needs before calling.

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 coverage is 0%, so the description must compensate. It explains `name` well (an `estimates store` name that is restored first), but `include_base` is never mentioned at all, leaving half the parameters undocumented anywhere.

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?

States a concrete verb+resource: structured coefficients and statistics from the active or a stored estimation, which is clearly distinct from running commands (stata_run) or rendering tables (stata_table). It doesn't explicitly name how it differs from stata_table, but the scope is unambiguous.

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

Usage Guidelines3/5

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

It gives one clear usage instruction — use this to read results precisely rather than parsing text output — which is genuinely helpful routing guidance. It stops short of stating when not to use it, whether an estimation must already be active, or what happens when there are no results.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.