Skip to main content
Glama

execute_prompt

Send a prompt to a target session and retrieve the complete reply. Enable include_thinking to access the AI's reasoning when responses are unclear.

Instructions

向目标 session 发送 prompt 并等待完整回复。通过 Kimi Server REST API 直接通信。默认排除思考链内容以节省 token。若回复模糊,可设置 include_thinking 获取思考内容确认意图。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
waitNo已废弃。受 MCP 超时限制,始终即发即返。用 poll_session / list_io_records 轮询进度。
policyNo任务策略。可选值: - "read-only": 只读(禁止写文件/执行命令) - "safe-edit": 安全编辑(禁止 shell 命令,可编辑文件) - "full-access": 全部允许(默认) - 自定义策略文件路径: 如 ".kimi-tunnel/policies/review.yaml"
promptYes要发送的 prompt 内容
auto_modeNo启用自动模式:自动审批所有工具调用(scope=session),无需人工确认。默认 false。
session_idYes目标 session ID。可从 list_sessions 获取。
timeout_msNo等待超时毫秒数,默认 5 分钟
skip_memoryNo跳过共享内存上下文注入(SPEC 002)。默认 false。
include_thinkingNo是否包含 AI 的思考过程。默认 false 以节省 token。当回复模糊或不明确时设为 true。
Behavior4/5

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

With no annotations provided, the description discloses key behaviors: it excludes thinking by default to save tokens, returns immediately regardless of the wait parameter, and communicates via REST API. It lacks details on error handling or side effects, but covers the main behavioral traits.

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 concise with four front-loaded sentences. Each sentence adds meaningful information: purpose, communication method, default behavior, and usage tip for thinking content. No waste.

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

Completeness3/5

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

Given no output schema, the description should hint at the return value, but it does not. It also does not explain error scenarios. While it covers core functionality and polling guidance, it lacks completeness for a tool with 8 parameters and 2 required fields.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so parameters are already documented. The description adds value by explaining default behavior (exclude thinking) and giving a use-case for include_thinking (when replies are vague), going beyond the schema descriptions.

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 tool's purpose: sending a prompt to a target session and waiting for a reply. It specifies the communication method (Kimi Server REST API) and distinguishes itself from sibling tools like poll_session by noting that it returns immediately due to MCP timeout.

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 description provides context for when to include thinking content (when replies are vague) and explains the deprecated wait parameter, advising to use poll_session for progress. However, it does not explicitly state when not to use this tool or list all alternatives.

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/FirenzeClaw/kimi-session-orchestrator'

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