Skip to main content
Glama

stata_help

Reads the official Stata help file for any command or installed package, returning syntax and documentation to answer usage questions.

Instructions

Read the official Stata help file for a command (also works for installed packages, e.g. reghdfe, csdid).

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": {
      "command": "<command>"
    },
    "name": "stata_help"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYes
max_charsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 burden. It usefully signals that the content is official local help text (a safe read, not command execution) and that installed packages are covered, but it says nothing about what happens for an unknown command, whether output is truncated, or how the file is located.

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?

A single front-loaded sentence with no filler; the qualifier about packages is placed where it matters most, right after the core statement.

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?

An output schema exists, so return values need not be described, and an output limit parameter is the only notable omission. For a simple documentation-lookup tool this is close to complete, though with zero annotation coverage a line about failure on unknown commands would help.

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% for two parameters. The examples ('reghdfe, csdid') do add real meaning to `command` beyond the bare schema title, but `max_chars` (default 15000) is never mentioned, so truncation behavior and its interaction with this read are invisible to the caller.

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 specific verb and resource: 'Read the official Stata help file for a command.' The parenthetical about installed packages (reghdfe, csdid) sharpens what counts as a valid target. It does not explicitly separate itself from the nearby stata_guide sibling, so it stops short of a 5.

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?

Usage is implied by the purpose — consult this when you need documentation for a Stata command or installed package — but there is no explicit when-to-use framing, no exclusions, and no named alternative (e.g. when to prefer stata_guide or stata_results instead).

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