Skip to main content
Glama
petri-net-sim

pns-server MCP Server

auto_layout

Re-layout a Petri net using topological left-to-right layering, assigning coordinates based on arc topology to resolve cluttered or overlapping layouts.

Instructions

Re-layout the entire net using topological left-to-right layering.

Assigns x,y coordinates to every element based on the arc topology. Elements with no predecessors get layer 0; successors get later layers. Elements in the same layer are distributed symmetrically around center_y.

Call this after building the complete net when the automatic cursor placement produced a cluttered or overlapping layout.

Args: start_x: X coordinate for the first (leftmost) layer (default 100) center_y: Vertical center for all layers (default 200) x_step: Horizontal distance between layers in canvas units (default 150) y_step: Vertical distance between elements in the same layer (default 120)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
start_xNo
center_yNo
x_stepNo
y_stepNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries full burden. It explains the algorithmic behavior: topological layering, successor inheritance, symmetrical distribution. However, it does not explicitly state whether existing positions are overwritten or mention any side effects, so slightly less than perfect.

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 compact yet informative: first sentence states action, followed by algorithmic details, usage context, and a clear parameter list. No redundant information; every sentence adds value.

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?

The tool has 4 optional parameters and an output schema (not shown but existence noted). The description explains the algorithm and when to call it, which is sufficient for this layout tool. No missing critical information.

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%, but the description provides detailed explanations for all four parameters, including defaults and units (canvas units, coordinates). This adds significant value beyond the schema's bare defaults.

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 the tool's purpose: to re-layout the entire net using topological left-to-right layering. It explains the algorithm and distinguishes itself from sibling tools, which are all element addition/connection tools, so no confusion.

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 explicitly says 'Call this after building the complete net when the automatic cursor placement produced a cluttered or overlapping layout,' providing clear when-to-use guidance. No explicit when-not or alternatives are given, but siblings are unrelated, so it's acceptable.

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