Skip to main content
Glama
stata-copilot

stata-copilot

by Parado-D

Read the run ledger

stata_history

Lists executed Stata commands with success status, return code, duration, and working directory to document reproducible analysis runs and audit past results.

Instructions

List commands executed through this server (newest last), with success, return code, duration and cwd. The same rows are appended to <cwd>/.stata-copilot/runs.jsonl — a reproducibility trail for the paper.

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

Input Schema

NameRequiredDescriptionDefault
limitNoHow many entries (default 20).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose two non-obvious traits: ordering ('newest last') and the fact that the same rows are persisted to `<cwd>/.stata-copilot/runs.jsonl`. It stops short of stating explicitly that the call is read-only or how many sessions the ledger spans, but 'List' implies a non-mutating read.

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?

Two compact sentences with the resource and returned fields front-loaded, followed by the persistence note. The closing clause about the paper is mildly rhetorical but still carries useful context about the ledger's purpose.

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 simple one-parameter read tool with no output schema, the description compensates well by enumerating the returned fields, the ordering, and the on-disk trail. Nothing essential is missing, though a note on truncation behavior with the limit would make it airtight.

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?

There is only one parameter and schema description coverage is 100%, so the schema already documents the limit and its default. The description adds no further semantics about the limit, which is the correct baseline here.

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 states a specific verb and resource ('List commands executed through this server') and names the returned fields (success, return code, duration, cwd), so the agent knows exactly what it gets. It does not distinguish itself from sibling readers such as stata_job_log or stata_results, leaving that comparison to the agent.

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?

The phrase 'a reproducibility trail for the paper' implies the audit/reproducibility use case, but there is no explicit when-to-use or when-not-to-use guidance relative to sibling log/result tools. The usage context is inferred rather than stated.

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