Skip to main content
Glama

reset_python

Restart the IPython kernel, preserving execution history and sequential cell numbering; any running execution is killed before restart.

Instructions

重启 IPython kernel,并保留 loommux 服务器会话中的 execution 历史。

重置边界

若存在 running execution,它会先标记为 killed;随后旧 kernel 停止并创建替代 kernel。已存在的记录及其输出流仍可按原整数 execution 读取,下一次接受的 cell 使用连续的下一个编号。

Returns: 新 kernel 的状态与 PID;重启失败时返回 workspace 或 kernel 启动错误。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

With no annotations, the description carries full burden. It explains that running executions are killed, old kernel stops, new kernel created, and outputs remain accessible, but fails to mention that in-memory variables are lost upon restart, which is a critical behavioral trait for a reset operation.

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 concise, with a clear first sentence stating purpose, followed by a structured section on boundaries and returns. No unnecessary information, though it could be slightly more compact.

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?

Covers key behaviors (killing running, preserving outputs, new kernel) and return values, but misses mentioning variable loss and does not explain internal terms like 'loommux'. Given moderate complexity, additional context would improve completeness.

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?

No parameters exist (empty schema), and the description adds value by explaining what the reset entails and the return values (status, PID, error). Baseline for zero parameters is 4, and the description meets that expectation.

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?

Clearly states 'restart IPython kernel' with a specific verb and resource, and distinguishes from siblings by noting preservation of execution history. The description explicitly contrasts with other tools like run_python or interrupt_python.

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 use when a kernel reset is needed, and explains the behavior, but lacks explicit guidance on when to use this tool versus alternatives (e.g., interrupt_python) or prerequisites. No 'do not use if' statements are 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/MichengLiang/loommux'

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