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

TableJSON 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. 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, so the 'Read-only' sentence largely repeats structured data. The one genuinely additive trait is runtime fidelity ('same engine as the published form runtime'), but nothing is said about error behavior or whether anything is persisted.

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, front-loaded with the action and output, with no filler. Every clause carries information.

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 the necessary work of naming the three result categories (visibility/required/calculated), which is enough for an agent to understand the return. It stops short of describing the response shape or error handling, but the core need is met.

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 only 50%: the 'answers' property is richly documented while 'formId' has no description anywhere. The phrase 'against sample answers' loosely maps to the answers parameter but adds no detail beyond the schema, and formId is left entirely undefined.

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?

Names a specific verb (Simulate) and resource (logic rules), and states exactly what comes back: visibility/required/calculated results. This clearly separates it from siblings like editor_setLogic and editor_insertLogic, which define logic rather than test it.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool is for testing logic rules but never states when to reach for it versus editor_setLogic or editor_insertLogic, or any preconditions (e.g. logic must already exist). 'Uses the same engine as the published form runtime' is fidelity context, not usage guidance.

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.