Skip to main content
Glama
petri-net-sim

pns-server MCP Server

add_unbatch

Expands a single batch or container token into multiple individual tokens, enabling downstream processing of each item independently.

Instructions

Unbatch (Split / Unpack) pattern.

One incoming token (representing a batch or container) is expanded into batch_size individual tokens. The inverse of Batch.

Structure: [P: Input] -(weight=1)-> [T: Split] -(weight=N)-> [P: Output]

Use cases:

  • One received pallet token expanded into 48 individual box tokens

  • One batch job record split into individual work orders

  • One container unloaded into individual items for independent processing

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
batch_sizeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/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 of behavioral disclosure. It explains the transformation logic (weight=1 to weight=N) and use cases, but does not mention safety aspects like whether the tool modifies the model, if it's idempotent, or potential side effects. The behavioral description is adequate but not exhaustive.

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 relatively concise and well-structured, starting with a clear pattern name and including a visual structure representation. The use case list is helpful but adds length. Overall, it's efficient with minimal redundancy.

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 existence of an output schema (which covers return values), the description adequately explains the main behavior and provides use cases. It does not discuss error conditions or edge cases, but for a modeling tool, the description is sufficiently complete.

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

Parameters2/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. It implicitly explains 'batch_size' through the transformation description ('batch_size individual tokens'), but 'name' is not described. The description adds some context but does not fully detail the parameters, leaving ambiguity about what 'name' represents.

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 expand one token into multiple tokens (unbatch/split). It provides concrete use cases and explicitly positions it as the inverse of 'Batch', which differentiates it from sibling tools like add_batch.

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 says 'The inverse of Batch' and lists use cases, giving clear context on when to use the tool. However, it does not explicitly state when not to use it or compare to other splitting tools, though the contrast with add_batch is sufficient for most scenarios.

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