Skip to main content
Glama

check-well-formed

Validate logical statement syntax to catch errors before reasoning operations, ensuring formulas follow first-order logic rules for predicates, quantifiers, and operators.

Instructions

Check if logical statements are well-formed with detailed syntax validation.

When to use: Before calling prove/find-model to catch syntax errors early. When NOT to use: You already know the formula syntax is correct.

Example: statements: ["all x (P(x) -> Q(x))"] → Returns: { valid: true, statements: [...] }

Common syntax issues:

  • Use lowercase for predicates/functions: man(x), not Man(x)

  • Quantifiers: "all x (...)" or "exists x (...)"

  • Operators: -> (implies), & (and), | (or), - (not), <-> (iff)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
statementsYesLogical statements to check
verbosityNoResponse verbosity: 'minimal' (token-efficient), 'standard' (default), 'detailed' (debug info)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/automenta/mcplogic'

If you have feedback or need assistance with the MCP directory API, please join our Discord server