Skip to main content
Glama
stata-copilot

stata-copilot

by Parado-D

Fingerprint the loaded data

stata_signature

Read and compare Stata dataset fingerprints—observations, variables, data hashes, and sort order—to prove whether a command or do-file changed the data, optionally loading a .dta first.

Instructions

Read the datasignature fingerprint of the dataset currently in memory: observations, variables, two data hashes, and the sort order. Compare two fingerprints to prove whether a command or do-file changed the data. Optionally load a .dta first.

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

Input Schema

NameRequiredDescriptionDefault
cwdNoWorking directory for the load.
datasetNoOptional .dta path to load before fingerprinting.
timeoutNoSeconds for the load (default 120).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

A3.8/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 burden; it does disclose the return contents and the optional pre-load step, which is genuinely useful. However, it never says that loading a .dta replaces the dataset currently in memory, nor whether the operation is read-only otherwise, which is the most consequential behavior for an agent to know.

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 tight sentences with the primary action and its returned fields front-loaded, followed by the comparison use case and the optional load. Nothing is redundant or padded.

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 tool with no output schema and no annotations, the description does a good job of enumerating what the fingerprint contains and how to use it comparatively. The remaining gap is the side effect of loading a dataset over the in-memory one, which an agent would want stated explicitly.

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 description coverage is 100%, so cwd, dataset, and timeout are already documented, including the default of 120 seconds. The description only restates that the dataset load is optional and precedes fingerprinting, adding no new semantics beyond the schema.

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?

A specific verb and resource: it reads the `datasignature` fingerprint and even enumerates the components (observations, variables, two hashes, sort order), so the agent knows exactly what comes back. It does not name or differentiate itself against siblings such as stata_profile_data, so it falls 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 Guidelines4/5

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

It states the intended workflow clearly: compare two fingerprints to prove whether a command or do-file changed the data, and notes that a .dta can optionally be loaded first. There are no explicit exclusions or named alternatives, which keeps it at 4 rather than 5.

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