Skip to main content
Glama
@particlr/mcp
by brac

Simulate Effect

simulate_effect
Read-onlyIdempotent

Deterministically step a .prt effect in Node without rendering to report per-layer counts over time, peak vs capacity, spatial bounds, completion, and a reproducible seed/dt state hash.

Instructions

Deterministically step a .prt effect in Node (no rendering) and report per-layer live counts over time, peak vs capacity, spatial bounds, completion, and a statehash plus the exact {seed, dt, steps} to reproduce it. Same seed + dt sequence => identical output. Validates first; an invalid doc returns validate-shaped errors.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "simulate_effect"
  }
}

Input Schema

NameRequiredDescriptionDefault
dtNoFixed timestep. Default 1/60; clamped to [0.001, 0.05] (the runtime MAX_DT).
docNoThe .prt document as a JSON string.
seedNoOverride the doc's authored seed. Default: the doc's seed.
handleNoA handle from open_effect — use instead of doc to avoid resending the document.
durationNoSeconds to simulate. Default 3; capped at 60.
sampleIntervalNoSeconds between count samples. Default 0.1; floor 0.001, widened if it would emit more than 4096 samples.

Output Schema

NameRequiredDescriptionDefault
echoYesThe exact inputs used after defaulting/clamping — replay these for an identical statehash.
boundsYesAxis-aligned bounds over every live particle across the run; null if none ever spawned.
layersYes
warningsYes
completedYesTrue if the effect reached isDone (one-shots); false for looping/unfinished.
statehashYeshex8 FNV-1a over the final public sim state — reproducible per {seed, dt, steps}.
completionTimeYesSeconds at which isDone first held; null if never.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, yet the description adds real behavior: determinism guarantee ('Same seed + dt sequence => identical output'), validation-first execution, and the shape of failure ('validate-shaped errors'). It does not discuss cost, runtime limits, or side effects of long simulations beyond the schema's duration cap.

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?

Two dense sentences, front-loaded with the core action and followed by the output and determinism contract. Every clause carries information, though the output enumeration is slightly list-heavy for a tool that already has an output schema.

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?

Covers purpose, determinism, validation behavior, error shape, and reproducibility inputs; with an output schema present it need not restate return values, and nothing an agent needs to invoke it correctly is missing.

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?

Schema coverage is 100%, so baseline is 3, but the description adds meaning the schema does not: the reproducibility contract tying seed and dt together and the returned {seed, dt, steps} triple. It does not elaborate on sampleInterval or handle semantics beyond what the schema states.

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?

States a specific verb and resource ('deterministically step a .prt effect in Node') plus the exact outputs reported, and explicitly negates rendering, which separates it from render_effect. The 'Validates first' clause also distinguishes it from validate_effect.

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 '(no rendering)' parenthetical and 'Validates first' clause imply when to prefer this over render_effect and validate_effect, and the handle-vs-doc note in the schema supports the open_effect workflow. It stops short of naming alternatives explicitly or stating when not to use it.

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