Skip to main content
Glama

Test logic

editor_testLogic
Read-only

Simulate logic rules against sample answers and return visibility/required/calculated results. Read-only. Uses the same engine as the published form runtime.

Input Schema

NameRequiredDescriptionDefault
formIdYes
answersNoMap of fieldId → answer value (any JSON-serializable shape). Keys are question/input/hidden/calculated field IDs from editor_getDocument. Values follow the per-field type — strings for text, numbers for number, booleans for switch, arrays for checkbox/ranking, etc. For a payment input, true simulates a completed payment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / answers / additionalProperties
      Previous value: -trueNew value: +{}
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, and the description's 'Read-only' merely repeats that. The one genuinely additive statement is that it uses the same engine as the published form runtime, which signals high-fidelity simulation — useful, but nothing about error behavior or result shape is disclosed.

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 short sentences with the core action front-loaded, followed by the safety trait and the fidelity guarantee. Zero filler.

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 no output schema, the description does name the three result categories the agent gets back (visibility/required/calculated), which is the key gap-filler. It stops short of describing how results map to fields or how missing/invalid answers are handled.

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 50%: formId is undocumented but self-evident, while answers carries a thorough schema description covering field-ID keys, per-type values, and the payment special case. The description adds only the loose phrase 'sample answers' on top of that, so it neither compensates for nor extends the schema meaningfully.

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?

States a specific verb and resource: simulate logic rules and return visibility/required/calculated results. An agent can distinguish it from editor_setLogic (which writes logic) and editor_insertLogic (which creates logic elements) by the simulation framing, though no sibling is named explicitly.

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 phrase 'against sample answers' and 'Read-only' imply this is a dry-run tool for verifying logic before publishing, but no when-to-use or when-not-to-use condition is stated, and no alternative (e.g. editor_setLogic) is referenced. Usage must be inferred.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.