Skip to main content
Glama

stata_data

Inspect an in-memory Stata dataset to produce overviews, summaries, codebooks, listings, tabulations, missing-value checks, and counts filtered by varlist or if conditions.

Instructions

Inspect the dataset in memory.

action: overview | describe | summarize | detail (summarize, detail) | codebook | list | tabulate | xtdescribe | missing | count varlist: optional Stata varlist; condition: optional Stata if expression (without the word if); n: rows for list.

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_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNo
actionNooverview
varlistNo
conditionNo

Output Schema

NameRequiredDescriptionDefault
resultYes

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?

No annotations are supplied, so the description carries the full behavioral burden. 'Inspect the dataset in memory' usefully establishes that this operates on the currently loaded dataset and is observational, but it never states prerequisites (e.g., what happens if no dataset is loaded), whether any action mutates state, or limits on output size for large datasets.

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?

The purpose is front-loaded in a single sentence, followed by a compact parameter block with no filler. The formatting of the action list, particularly the stray parenthetical and the line-wrapped enumeration, slightly undermines readability but nothing is padded.

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 return values need not be described. However, with four undocumented schema parameters and no annotations, the definition should say more about each action's effect and about the required precondition of an in-memory dataset; the action list is a bare menu rather than an explanation.

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 description coverage is 0%, so the description is the only source of parameter meaning, and it does supply it: varlist is an optional Stata varlist, condition is an optional Stata `if` expression without the word 'if', and n sets rows for `list`. The action enumeration is the weakest part, since the '(summarize, detail)' parenthetical is ambiguous about which tokens are valid.

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 opening line gives a specific verb and resource ('Inspect the dataset in memory'), which is clearly distinct from siblings like stata_run, stata_do, and stata_graph. It does not explicitly name or exclude any sibling, so it stops short of full differentiation.

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 when-to-use/when-not guidance and no routing to alternatives such as stata_results or stata_run. The action menu implies that this tool covers inspection, but with no explanation of what distinguishes overview from describe, summarize, codebook, or count, an agent cannot reliably choose an action.

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