Skip to main content
Glama
stata-copilot

stata-copilot

by Parado-D

Stata session status

stata_status

Reports Stata session state—service reachability, Stata path/version/edition, licence, running command, and active policy mode—so you can diagnose failures and verify session readiness.

Instructions

Report the Stata session state: service reachability, Stata path/version/edition, licence, whether a command is running, and the active policy mode. Call this first when a Stata tool fails.

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

Input Schema

NameRequiredDescriptionDefault
formatNo`stata` returns the service's raw Stata-side report.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.1

TDQS

A4.3/5.0
Behavior4/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, and it does disclose the key behavior: this is a non-mutating inspection that surfaces service health, version/edition, licence state, in-flight command status, and policy mode. It does not state whether the call can block or time out, or whether it will attempt to start an unreachable service, which are the remaining behavioral gaps for a diagnostic tool.

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 sentences, front-loaded with what is reported, followed by the one operational instruction that matters. No filler and nothing buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description compensates by enumerating the fields returned, and it supplies the triage context an agent needs. For a zero-required-parameter status tool, nothing material is missing.

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 100% and the single `format` parameter's enum values are already documented in the schema, including what `stata` returns. The description adds no further parameter meaning, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Uses a specific verb (report) with a specific resource (Stata session state) and then enumerates exactly what is covered: service reachability, path/version/edition, licence, running-command state, and policy mode. That enumeration makes it clearly a session-level diagnostic rather than a per-job check like stata_job_status, so an agent can tell them apart without opening a schema.

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?

Gives an explicit trigger: 'Call this first when a Stata tool fails', which is exactly the triage guidance an agent needs. It stops short of naming when-not-to-call conditions or naming sibling diagnostics, but the primary usage context is unambiguous.

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