Skip to main content
Glama
@particlr/mcp
by brac

Validate Effect

validate_effect
Read-onlyIdempotent

Runs a .prt JSON document through the parse, migrate, and validate pipeline, returning a normalized document plus schema version or path-anchored errors for fixes.

Instructions

Validate a .prt document (JSON string) against the real parse -> migrate -> validate pipeline. Returns ok + the canonical normalized doc + schemaVersion (and the pre-migration version), or structured, path-anchored errors worded for you to fix.

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": "validate_effect"
  }
}

Input Schema

NameRequiredDescriptionDefault
docNoThe .prt document as a JSON string.
handleNoA handle from open_effect — use instead of doc to avoid resending the document.

Output Schema

NameRequiredDescriptionDefault
okYes
errorsYes
warningsYes
migratedFromYesThe doc's ORIGINAL schemaVersion if it was migrated up, else null.
normalizedDocYesCanonical serializeParticle() output on success (agents iterate on this); null on failure.
schemaVersionYesThe doc's schemaVersion after migration; null when parsing failed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds real behavioral value beyond that: it discloses that a migration step runs (which explains why a pre-migration version is returned), and it characterizes failures as structured, path-anchored errors worded for the agent to fix. It stops short of describing error codes or how partial migration failures behave.

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?

A single front-loaded sentence states the action and pipeline first, then the success and failure outcomes. The parenthetical '(JSON string)' and the dual outcome clause earn their place; the sentence is dense but not padded.

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?

With an output schema present, the description need not enumerate return fields, and it still summarizes the key ones (ok, normalized doc, schemaVersion, pre-migration version). Combined with full schema coverage and safety annotations, the only gap is the absence of usage routing relative to simulate/render siblings.

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 description coverage is 100%, so both 'doc' and 'handle' are already documented in the schema, and the description's note that handle substitutes for doc largely restates that. Baseline 3 applies since the schema carries the parameter burden; nothing additional about mutual exclusivity (e.g. what happens if both are supplied, given zero required parameters) is clarified.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (validate) and resource (.prt document / JSON string) and goes further by stating the underlying pipeline it exercises (parse -> migrate -> validate). It is immediately clear what the tool does, though it does not explicitly contrast itself with siblings such as simulate_effect or render_effect.

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 only explicit routing guidance is inside the parameter explanation: use 'handle' from open_effect instead of 'doc' to avoid resending the document. That is useful, but there is no statement of when an agent should validate versus simulate or render, nor any precondition such as needing a document open first.

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