Skip to main content
Glama

Insert ai validation

editor_insertAiValidation

Insert an AI Validation: one sentence the answers it names must fit, checked with AI while the respondent fills in the form. A note shows under it when they do not fit; the respondent can still submit. It reads questions above it and hidden fields, so insert it after the last question it reads. Result: data.aiValidations..

Input Schema

NameRequiredDescriptionDefault
keyNoCallback key; defaults to the next free ai_validation, ai_validation_2, …
afterNoNodeId to insert after. Use $prev to chain. Omitting appends to end (usually wrong).
formIdYesForm ID to insert into
parentIdNoParent node ID to insert into (e.g., column1)
positionNoPosition among siblings: inside parentId when given, else at the top level ('first' = top of the form, e.g. a title). Not combinable with after.
sentenceYesThe rule as parts: text, and a chip for every answer it reads (plain text is not checked). E.g. [{"fieldId":"fi1","fieldName":"Invoice"}," is dated in 2026."]

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, the description discloses important runtime behavior: validation happens with AI while the respondent fills in the form, a note appears when answers do not fit, submission is still allowed, and the result is stored at data.aiValidations.<key>. It also explains the ordering dependency created by reading preceding questions and hidden fields.

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?

The description is compact and front-loaded: it states what is inserted, how it behaves, the ordering requirement, and the result path in four efficient sentences. Every sentence adds useful information and there is no wasted text.

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 helpfully states the runtime result path, and it explains the key ordering dependency. It does not cover failure modes or the full return value of the insert operation, but annotations and the rich input schema cover most other needs.

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 the schema already carries detailed parameter meaning. The description adds conceptual context about the sentence and key result path, but it does not materially explain individual parameters such as formId, parentId, position, or after beyond what the schema provides.

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?

The description states a specific verb and resource: inserting an AI Validation sentence that checks named answers with AI while the respondent fills in the form. This is clearly distinct from sibling insert tools such as logic, calculated fields, or question inserters because the unique validation behavior is explained.

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?

It gives a concrete placement rule: insert it after the last question it reads because it reads questions above it and hidden fields. That is clear usage context, but it does not explicitly compare this tool against alternatives such as editor_insertLogic or explain 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.