Skip to main content
Glama
@particlr/mcp
by brac

Open Effect

open_effect

Validates a .prt document and stores it under a session handle, returning validation status plus a handle to patch, simulate, or render without resending the text.

Instructions

Validate a .prt document and store it under a session handle so you can iterate without resending the text. Returns the handle + validate fields (ok, schemaVersion, warnings, errors); pass the handle to patch_effect / validate_effect / simulate_effect / render_effect. Handles live only for this session (server process); they do not survive a reconnect. Capped at 64 per session.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "doc": "<doc>"
    },
    "name": "open_effect"
  }
}

Input Schema

NameRequiredDescriptionDefault
docYesThe .prt document as a JSON string. Validated and stored under a fresh handle.

Output Schema

NameRequiredDescriptionDefault
okYes
errorsYes
handleYesA session handle ("fx-1", …) to pass as `handle` to patch/validate/simulate/render; null on failure.
warningsYes
migratedFromYesThe doc's ORIGINAL schemaVersion if it was migrated up, else null.
schemaVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only say it is not read-only, not destructive, and not idempotent. The description goes well beyond them: handles are scoped to the server process, are lost on reconnect, and are capped at 64 per session — lifetime and capacity facts an agent cannot get from any structured field and which materially affect call strategy.

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?

Three compact sentences, front-loaded with the core action and payoff, then returns, then constraints. Every sentence carries a distinct fact — no restatement of the name or title.

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?

An output schema exists, and the description still usefully names the validate fields returned, plus lifecycle and cap limits. The one real gap is failure behavior: it does not say whether an invalid document still yields a handle with errors populated or aborts without one, which is critical given the whole point is handle reuse.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single parameter already documents itself as "The .prt document as a JSON string. Validated and stored under a fresh handle." The description largely restates this; the only marginal addition is the notion of a fresh handle per call. Baseline 3 is appropriate when the schema does the work.

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 ("Validate a .prt document") and adds the second action that defines the tool's value: storing it under a session handle so the text need not be resent. This distinguishes it from the sibling validate_effect, which consumes a handle rather than minting one.

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 tells the agent the entry point role explicitly by naming patch_effect / validate_effect / simulate_effect / render_effect as consumers of the returned handle, implying this tool comes first. It stops short of an explicit "use this instead of X when Y" exclusion or a statement about what to do when the document is invalid.

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