Skip to main content
Glama
petri-net-sim

pns-server MCP Server

export_pnml

Export the current Petri Net model to PNML XML format for compatibility with tools like TINA, PetriObjModel, and CPN Tools.

Instructions

Export the current Petri Net to PNML XML format.

Returns the full PNML XML content as a string. Compatible with TINA, PetriObjModel, and CPN Tools.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations exist, so the description carries the burden. It states it exports the current net and returns a string, implying no side effects. However, it does not explicitly confirm read-only nature or discuss performance/limits. The compatibility note adds value.

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?

Two sentences, front-loaded with the main purpose. No redundant or filler content. Every sentence adds value: purpose, output type, and compatibility.

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 simple export tool with no parameters and an output schema, the description covers input (current net), output (string), and compatibility. It does not explain 'current Petri Net' context, but that is likely assumed. Sufficiently complete.

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?

There are zero parameters, and the description adds no parameter-level details. Per guidelines, 0 params gets baseline 4, and the description is clear about output format, which is sufficient.

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 'Export the current Petri Net to PNML XML format' with a specific verb ('Export') and resource ('PNML XML'). It distinguishes from siblings (many add_* and connect_* tools) by being the only export operation.

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 description mentions compatibility with TINA, PetriObjModel, and CPN Tools, but does not explicitly state when to use this tool vs alternatives or any prerequisites. No exclusions or usage contexts are provided.

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