Skip to main content
Glama

Ask Kimi (new session) [experimental]

kimi_ask

Ask Kimi Code a coding question or task in a new session and get the agent's final message. Provide a workspace for context-aware answers.

Instructions

Ask Kimi Code (kimi -p) a question or task in a NEW session. EXPERIMENTAL.

⚠️ Community-verified only — built without a Kimi account, so no authenticated round-trip has ever run and the author cannot verify it. It won't answer until you authenticate: run kimi login (device-code) or put an API key in ~/.kimi-code/config.toml, then check kimi_status. Returns the agent's final message, read straight from stdout. Kimi Code is Moonshot's terminal coding agent (Kimi K2 family); point workspace at a project dir for context-aware answers.

Kimi print mode has NO sandbox and auto-executes every tool call (like antigravity), so run it only with trusted prompts on trusted content.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNoOptional model alias (`-m`, from ~/.kimi-code/config.toml); omit to use config's default_model. Not validated up front (Kimi has no `models` list), so a bad alias surfaces as Kimi's own run-time error.
promptYesQuestion or instruction for Kimi.
timeout_sNoMax seconds to wait for kimi to complete. Default 180.
workspaceNoWorking root (kimi's cwd). Defaults to the server cwd.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

Annotations already flag readOnlyHint=false, openWorldHint=true, idempotentHint=false, but the description adds substantial behavioral context: the tool is experimental and community-verified only, no authenticated round-trip has ever been run, it requires authentication, reads output from stdout, and — critically — 'has NO sandbox and auto-executes every tool call (like antigravity).' This goes well beyond the annotations and fully warns the agent of the tool's dangerous side effects.

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?

The description is longer than average but every sentence contributes meaningful information: purpose, experimental status, auth steps, return format, what Kimi Code is, workspace tip, and a critical safety warning. It is front-loaded with the primary action and uses line breaks to separate warnings. Slightly verbose but justified by the tool's complexity and risk.

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?

Given the tool's experimental, unauthenticated, and dangerous nature, the description is remarkably complete. It explains the output (agent's final message from stdout), prerequisites, the safety model (no sandbox, auto-execution), and how to get better results (workspace). The presence of an output schema reduces the need to describe return values, and the description covers the rest comprehensively.

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 all four parameters (model, prompt, timeout_s, workspace) are already documented. The description adds one useful hint for the workspace parameter ('point workspace at a project dir for context-aware answers'), but adds nothing new for prompt, model, or timeout_s. With high schema coverage, this marginal extra keeps it at baseline 3.

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 opens with a specific verb-resource pairing: 'Ask Kimi Code... a question or task in a NEW session.' This clearly distinguishes the tool from the sibling kimi_continue (which presumably continues a session) and kimi_status. It also names the underlying command (`kimi -p`) and states what it returns, making the tool's function unambiguous.

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?

The phrase 'in a NEW session' provides clear context for when to use this tool versus continuation alternatives, even though no alternative is explicitly named. It also gives prerequisites (authentication via `kimi login` or API key, then checking `kimi_status`) and a safety restriction ('run it only with trusted prompts on trusted content'). Missing an explicit 'use kimi_continue instead' but otherwise strong.

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/SinanTufekci/agent-intern'

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