Skip to main content
Glama

run_do_selected_lines

Execute a specified line range of a Stata do file by providing the file path and start/end line numbers, allowing partial script execution for focused testing.

Instructions

do 파일의 선택된 라인들만 실행

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_lineYes끝 라인 번호 (포함)
file_pathYes실행할 do 파일 경로
start_lineYes시작 라인 번호 (1부터 시작)
Behavior2/5

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

With no annotations, the description carries the full burden. It discloses that only selected lines are executed, but fails to mention potential side effects (executing code), output/return values, or whether the operation is safe or reversible. This is minimal behavioral disclosure.

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?

The description is a single short sentence in Korean, completely free of redundancy or filler. It is front-loaded with the core purpose and earns its place as a compact, efficient description.

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

Completeness2/5

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

Although the schema covers parameters, the tool executes code and likely has side effects, yet the description provides no context about what happens after execution, what is returned, or any warnings. With no annotations or output schema, this is a significant gap for a code-execution tool.

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?

The input schema provides complete descriptions for all three parameters (file_path, start_line, end_line), achieving 100% coverage. The description adds no extra semantic detail beyond the schema, so the baseline score of 3 is appropriate.

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?

The description clearly states the action (execute) and scope (only selected lines of a do file), which differentiates it from siblings like run_do_file (whole file) and read/write/edit operations. The Korean phrase '선택된 라인들만 실행' is specific and leaves no ambiguity.

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?

No guidance is provided on when to choose this tool over run_do_file or other alternatives. The description only states what it does, without indicating context, prerequisites, or exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mkprevo/stata-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server