Skip to main content
Glama

kimi_run

Run a non-interactive Kimi Code agent in a specified working directory. Provide a task prompt and absolute path to let the agent read, edit, and execute commands within scoped boundaries.

Instructions

Start a new non-interactive Kimi Code agent session in a working directory. The Kimi CLI may read, edit, and run commands in that directory. Scope the prompt and work_dir carefully.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptYesTask for Kimi Code
work_dirYesAbsolute working directory
timeout_secondsNo
Behavior4/5

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

The description discloses a key behavioral trait: the Kimi CLI may read, edit, and run commands in the working directory. This is critical side-effect information, especially with no annotations available. It also notes the session is non-interactive. However, it omits details about authentication, output handling, and session lifecycle.

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 two sentences, with the first sentence front-loading the purpose and the second delivering a concise warning. No redundant or filler content—every word earns its place.

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?

The tool executes potentially arbitrary commands in a working directory, yet the description does not explain what happens after starting the session, how results are returned, or that it may run asynchronously and require status checks via sibling tools. With no output schema and no annotations, the description leaves critical operational details uncovered.

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 already provides descriptions for prompt and work_dir, though terse. The description adds value by advising to 'scope the prompt and work_dir carefully,' which implies their importance. However, the third parameter, timeout_seconds, is left completely unexplained, leaving a gap in parameter coverage.

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 specific action (start a new non-interactive session), the resource (Kimi Code agent), and the working directory. It distinguishes itself from sibling tools like kimi_resume (resuming sessions) and kimi_list_sessions by emphasizing 'start a new' and 'non-interactive'.

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 description implies usage for starting new sessions and warns to scope the prompt and work_dir carefully, but it does not explicitly mention when to use this tool instead of alternatives like agents_spawn or kimi_resume. No clear 'when not to use' guidance is provided.

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/Kvxw1105/agent-gateway-mcp'

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