Skip to main content
Glama

session_start

Starts a persistent code execution session with stateful REPL for Python3 and Node, and a lasting workspace directory for other languages, returning a session ID.

Instructions

Start a persistent session. python3/node get a stateful REPL worker (variables/imports persist across execute_code calls); other languages get a persistent workspace directory. Returns session_id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
languageNopython3

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed4 schema fields changedv0.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / language / title
      Added value: +"Language"
    • addedInput schema / title
      Added value: +"session_startArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  2. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the burden of disclosing side effects. It explains that python3/node get a stateful REPL with persistence, other languages get a workspace, and a session_id is returned. It does not cover lifecycle aspects like whether sessions need to be explicitly stopped, but it is transparent about the core behavior without contradicting any annotations.

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 two sentences long, front-loaded with the primary purpose 'Start a persistent session,' and every clause adds value—explaining language-specific behavior and the return value. There is no redundancy or unnecessary detail.

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

Completeness4/5

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

For a tool with one optional parameter and no output schema, the description adequately covers purpose, language-specific behavior, and return value. It does not mention session_id usage in subsequent calls or error handling, but the sibling tool names (session_run, session_stop) imply the workflow, making it reasonably complete without over-explaining.

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?

The schema has only one optional parameter 'language' with 0% coverage and no enums, so the description compensates by explaining the semantic difference: python3/node yield a stateful REPL, while other languages yield a persistent workspace. This adds meaningful meaning beyond the raw schema, though it does not enumerate all possible language values.

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 'Start a persistent session' with a specific verb and resource. It further distinguishes behavior for python3/node versus other languages, making it distinct from sibling tools like execute_code that likely run one-off code. The return value (session_id) is also specified, adding to clarity.

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 clear context: use this to start a persistent session where variables/imports persist or a workspace directory is created. However, it does not explicitly mention when not to use it or name alternatives like execute_code for one-off execution, so it stops short of full 'when/when-not' guidance.

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

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/The-40-Thieves/codecalc'

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