Skip to main content
Glama
petri-net-sim

pns-server MCP Server

run_simulation

Run a discrete-event simulation of a Petri Net to obtain final markings, mean values, min/max for places and transitions, and throughput from tagged places.

Instructions

Run a discrete-event simulation of the current Petri Net.

Executes the simulation for the given time and returns statistics: final markings, mean values, and observed min/max for all places and transitions, plus a Terminators (throughput) block sourced from places tagged "throughput".

IMPORTANT: simulation_time MUST use the same conceptual unit as the transition delays you set when building the net. Pass time_unit explicitly — the response echoes the duration in s/min/h/d so you can verify the interpretation matches your intent.

Args: simulation_time: Total simulation time in time_unit time_unit: "s" (seconds, default), "min", "h", or "d" (days)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
simulation_timeYes
time_unitNos

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses return statistics (final markings, mean values, min/max, Terminators block) and parameter constraints (time unit matching delays). It does not mention potential side effects, but simulation is likely read-only.

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 concise and well-structured: a brief purpose statement, a paragraph of details, and an Args block. Every sentence adds value without redundancy.

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

Completeness5/5

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

Given the presence of an output schema (even if not detailed here), the description sufficiently explains the return values. The two parameters are fully explained, and the tool's role in the workflow (simulating after building) is clear.

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

Parameters5/5

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

Schema coverage is 0% (no parameter descriptions), but the description adds detailed meaning: simulation_time must match transition delays, time_unit has explicit options and default, and the response echoes duration for verification.

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 it runs a discrete-event simulation of a Petri Net and returns statistics. It uses specific verb+resource and distinguishes from sibling configuration tools.

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?

While it doesn't explicitly say when not to use, it implies usage after building the net. The context of sibling tools (all configuration except get_*) makes it clear this is the execution tool.

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

Install Server

Other Tools

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/petri-net-sim/pns-server'

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