Skip to main content
Glama

get_variables

Retrieve variables, DataFrames, and their data types from a running Marimo notebook by session ID to inspect and debug notebook state.

Instructions

Get variables, DataFrames, and their types from a running notebook.

Args: session_id: The session ID from list_notebooks.

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": {
      "session_id": "<session_id>"
    },
    "name": "get_variables"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it discloses a precondition (notebook must be running) and implies a read-only inspection operation via 'Get'. It does not say what happens when the notebook is not running, nor anything about output shape (though an output schema exists, reducing that need).

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?

One front-loaded sentence plus a terse Args note; no filler, and the key constraint (running notebook) appears immediately.

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?

The tool is simple (one required param) and has an output schema, so return values need not be described. The description covers the source, the resource, and the identifier's provenance; only failure conditions when no notebook is running are absent.

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?

Schema coverage is 0% and the single parameter is undocumented in the schema, but the description compensates by explaining session_id comes from list_notebooks, telling the agent how to obtain a valid value. That is meaningful added semantics beyond the schema.

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 ('Get variables, DataFrames, and their types') and adds the source ('from a running notebook'), which is more than a restated name. It does not explicitly distinguish itself from siblings like get_cell_data or get_cells, so it falls 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 Guidelines3/5

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

The phrase 'from a running notebook' implies the notebook must be live, and the param note points at list_notebooks as the way to obtain a session_id. There is no explicit when-to-use or when-not-to-use guidance relative to the other get_* tools.

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