Skip to main content
Glama
petri-net-sim

pns-server MCP Server

connect_wip_return

Wire the work-in-progress (WIP) return arc to recycle a WIP slot when an entity reaches an exit place, maintaining token flow to downstream consumers.

Instructions

Wire the WIP return arc — recycle a WIP slot when an entity reaches the exit place.

For every transition that already produces tokens into exit_place_id, an extra output arc to the controller's WIPSlots place is added. Tokens are NOT consumed — the entity continues to flow through the exit place to its downstream consumer.

Call AFTER wiring the WIP-controlled section, so the producer transitions of exit_place_id exist.

Args: wip_controller_name: Instance name passed to add_wip_controller exit_place_id: Output place ID of the last pattern in the controlled section

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wip_controller_nameYes
exit_place_idYes

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 full burden. It discloses key behaviors: tokens are NOT consumed, an extra output arc is added, and the entity continues to flow. It could mention potential side effects like duplicate calls, but the given information is adequate for a safe operation.

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 description is concise and well-structured with clear sections for action, behavior, and parameters. Every sentence adds value, and it avoids redundancy. The length is appropriate for the tool's complexity.

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?

Given the tool's complexity and the presence of an output schema (though not provided in the input), the description covers the essential aspects: purpose, parameter meanings, and execution order. It could include error handling or idempotency, but it is complete enough for effective use.

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?

With schema coverage at 0%, the description compensates well. It explains 'wip_controller_name' as the instance name passed to 'add_wip_controller', and 'exit_place_id' as the output place ID of the last pattern. This adds meaningful context beyond the schema's simple type definitions.

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 action ('Wire the WIP return arc') and the resource/context ('recycle a WIP slot when an entity reaches the exit place'). It distinguishes from sibling tools like 'connect_return_loop' and 'connect_blocking_consumer' by specifying the exact behavior of adding an output arc to the controller's WIPSlots place.

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 states when to call the tool ('Call AFTER wiring the WIP-controlled section, so the producer transitions of exit_place_id exist'), providing clear ordering context. It does not explicitly list when not to use, but the context is sufficient for proper usage.

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