Skip to main content
Glama
smol-codeact-mcp

smol-codeact-mcp

by nanyun818

codeact_reset_session

Clears persisted variables from a sandbox session so coding agents can start fresh or remove stale state before running new Python code.

Instructions

Clear persisted variables for a sandbox session.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "codeact_reset_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idNodefault

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full disclosure burden, yet it does not say whether clearing is destructive or reversible, whether it affects in-flight executions, whether other sessions are impacted, or whether only persisted (not in-memory) variables are removed. The single distinction "persisted variables" is the one useful behavioral clue.

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?

One front-loaded sentence with no filler or redundancy. It is efficient but borders on under-specified rather than being optimally structured.

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?

For a state-mutating reset tool with no annotations, no output schema, and a completely undocumented parameter, the description is too thin — an agent cannot tell what exactly is destroyed, what the call returns, or how the default session behaves.

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 coverage is 0%, so the description must compensate for the undocumented session_id. It does so only indirectly: "for a sandbox session" implies session_id selects which session's variables are cleared, but the meaning of the "default" value and behavior of unknown IDs are unstated.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb ("Clear"), a specific resource ("persisted variables"), and a scope ("sandbox session"), so the operation is unambiguous. It does not distinguish itself from siblings such as codeact_execute or codeact_inspect_state, which keeps it short of a 5.

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

Usage Guidelines2/5

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

There is no guidance on when to call this versus the sibling tools, nor any stated precondition (e.g., between execution runs, or before starting a new task). The only hint of usage is the word "reset" in the tool name, which the description does not reinforce.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.