Skip to main content
Glama

wait_python

Waits for a Python execution to finish, or returns its current status after a timeout. Delivers full output when the execution includes --full-output and has completed.

Instructions

等待一个 execution 结束,或在指定时限到达时返回其当前状态。

选择与等待

execution 的选择规则与 python_execution_status 相同。等待 到期只结束本次工具调用,不中断 Python cell。后续可再次调用本工具, 或用 read_python_output 查看已到达的输出。

完整输出交付

当所选 execution 的有效 # loommux: 控制注释含 --full-output 且 已达到终态时,本工具直接返回完整 combined 正文,不应用默认 300 行省略。 仍在运行的此类 execution 继续返回 running,而非不完整正文。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
executionNo要等待的正整数执行编号。省略时使用当前记录,随后 使用最近记录。
timeout_secondsNo本次调用最多等待的正数秒数;默认 30 秒。
Behavior5/5

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

No annotations provided, but description fully discloses behavioral traits: waiting does not interrupt execution, full output delivery for # loommux: --full-output, returns 'running' for incomplete full-output runs. Contradictions: none.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Description is well-structured with sections but verbose (repeats schema defaults). Could be more concise by avoiding redundant parameter details. Every sentence adds value but length is suboptimal.

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?

Despite no output schema, description explains return behavior: on timeout returns running status, on completion returns status or full output. Covers edge cases like --full-output in running state. Complete for a wait 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?

Schema covers both parameters with full descriptions (default, type, behavior). Description mainly reiterates schema info without adding new meaning. Baseline 3 with 100% schema coverage 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 it waits for an execution to end or returns its current status on timeout, with specific verb '等待' and resource 'execution'. It distinguishes from siblings like interrupt_python and read_python_output by focusing on waiting behavior.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly explains when to use this tool (wait for execution), mentions timeout only ends tool call not execution, and suggests alternatives like read_python_output or re-calling the tool. Selection rules reference sibling python_execution_status.

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/MichengLiang/loommux'

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