Skip to main content
Glama

vm_step

(session_id, input) -> output for channel adapters. First call for a session must include 'program'; the trace runs and suspends/finishes.

Instructions

(session_id, input) -> output for channel adapters. First call for a session must include 'program'; the trace runs and suspends/finishes. Subsequent calls for the same session_id resume the suspended trace with 'input' as the new turn's payload — 'program' may be omitted. Response includes 'suspended': bool signalling whether the caller must call vm_step() again to continue the conversation.

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": "vm_step"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputNoContext (first call) or resume payload (later calls).
programNonano_vm.Program JSON. Required on first call.
save_asNoOptional name to save the program under.
session_idYesCaller-owned conversation identifier (e.g. a chat_id).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it discloses that the tool is session-stateful, that execution can suspend mid-trace, that a 'suspended' boolean in the response dictates whether another call is needed, and that 'program' becomes optional on resume. Remaining gaps are session lifetime, concurrent-call behavior, and error handling, none of which are addressed.

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 body is dense and front-loaded: first-call requirements, then resume semantics, then the response contract. The opening pseudo-signature '(session_id, input) -> output for channel adapters' is the weakest part, since 'channel adapters' is unexplained jargon and the arrow notation duplicates what the schema states.

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 stateful tool with nested object parameters and no output schema, the description covers the essential contract: the call sequence, the resume path, and the 'suspended' signal that governs looping. It is only missing the meaning of save_as and what the returned output actually contains beyond the suspension flag.

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 description coverage is 100%, so all four parameters are already documented, and the description largely restates that 'program' is required on the first call and that 'input' is the payload. It does add one non-obvious detail, that 'program' may be omitted on subsequent calls. It never mentions save_as, leaving that parameter's purpose entirely to 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?

The description states a concrete verb-and-resource behavior: it runs a trace for a session, suspending or finishing, and resumes it on later calls. That is far more than the opaque name 'vm_step' conveys. It stops short of differentiating from the sibling run_program, so an agent cannot tell from the text alone why it should step rather than run a program outright.

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?

It gives explicit sequencing rules: the first call for a session must include 'program', later calls with the same session_id resume the suspended trace and may omit 'program'. That is strong when-to-use guidance within the tool's own protocol. It offers no exclusions or alternative routing, despite run_program and get_trace being plausible choices for related goals.

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