Skip to main content
Glama

solari_run_code

Run code (default Python) in a session's kernel. Returns results incl. structured charts.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sessionId": "<sessionId>",
      "code": "<code>"
    },
    "name": "solari_run_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
languageNo
sessionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.7/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 burden and does little: it mentions that results come back including structured charts, but says nothing about state persistence across calls, timeouts, how errors or exceptions surface, or whether the kernel survives between invocations. For a code-execution tool, those are the behaviors an agent most needs to know.

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?

Two short sentences, front-loaded with the action and free of padding; every clause carries information. It is arguably over-terse rather than bloated, but nothing is wasted.

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?

No output schema, no annotations, and three parameters at 0% schema coverage mean the description should be doing much more work. As written it omits return structure beyond 'charts', error handling, and execution-state semantics, which leaves real gaps for a kernel-execution tool.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate and largely does not. It clarifies that 'language' defaults to Python and that the code runs against a session's kernel, but leaves 'code' format (snippet vs file path), sessionId sourcing, and allowed language values entirely unexplained.

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?

States a specific verb and resource — run code inside a session's kernel — and adds that Python is the default language. That 'kernel in a session' framing hints at stateful execution, but the description never names or contrasts itself with likely neighbors such as solari_exec or solari_run_command_bg, so an agent must infer the split.

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 explicit when-to-use or when-not-to-use guidance, and no alternative is named. The only implicit signal is that a sessionId is required, meaning a session must already exist, but nothing says how to obtain one or when shell-command execution is the better choice instead.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources