Skip to main content
Glama

pt_simulation_mode

Switches Packet Tracer between Realtime and Simulation mode so packets pause in the event queue for step-by-step tracing and analysis.

Instructions

Switches PT between Realtime and Simulation mode.

In Simulation mode packets do NOT move on their own: they stay queued in the event list and have to be moved with pt_simulation_step. That is what allows reading the path packet by packet with pt_read_packet_trace.

Parameters:

  • on: True enters Simulation (default), False goes back to Realtime.

Example: pt_simulation_mode(on=True)

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

Input Schema

NameRequiredDescriptionDefault
onNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.12.0

TDQS

A4.4/5.0
Behavior4/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 most of it well: it discloses the key non-obvious behavior that packets stay queued and do not move on their own, which is exactly the kind of consequence an agent needs before toggling global state. It omits whether the mode is global/per-session, whether existing queued events are flushed on return to Realtime, and any permission requirements.

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?

Front-loaded with the action, then the behavioral consequence, then the parameter, then a call example — every block earns its place. No redundant restatement of the tool name or filler.

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?

An output schema exists, so return values need not be explained, and the description covers mode semantics, follow-up tools, and the parameter. For a global state toggle it could say more about side effects on other sessions or on events already queued, which is the main residual gap.

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 description coverage is 0%, so the description must compensate, and it does: the single parameter 'on' is explained directionally (True enters Simulation and is the default, False returns to Realtime), which is genuinely needed since 'on' is ambiguous without it. It could add what happens to in-flight or queued events when toggled off, but the core semantics are covered.

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 first sentence states a specific verb and resource — switching PT between Realtime and Simulation mode — and both modes are named, so an agent can distinguish this from state-changing siblings like pt_ui_mode. The follow-on sentences immediately describe the observable consequence of the mode, not just its label.

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 gives clear context for choosing this tool: Simulation mode is what makes packet-by-packet inspection with pt_read_packet_trace possible, and packets must be advanced with pt_simulation_step. It also covers the reverse direction (on=False returns to Realtime). It stops short of explicit exclusions — e.g., when NOT to leave realtime, or whether the switch affects other concurrent users.

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

Deploy Server

Other Tools