Skip to main content
Glama

truth_table

Compute truth tables and model counts for one or more logical formulas, including unused symbols that affect the count. Use it to evaluate formula satisfiability and verify logical results.

Instructions

Truth table and model count for one or more formulas. Syntax: ¬ ~ ! -, ∧ &, ∨ |, ⇒ =>, ⇔ <=>. extra_symbols: symbols in the problem that don't appear in the formula (they still double the model count).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "formulas": "<formulas>"
    },
    "name": "truth_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
formulasYes
extra_symbolsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior4/5

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

No annotations exist, so the description carries full burden. It usefully discloses the operator syntax and the non-obvious behavioral trait that extra symbols still double the model count, though it says nothing about error handling or output size limits.

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?

Two tight sentences: the core function is front-loaded, followed by the necessary syntax and parameter note. No wasted wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists so return values needn't be explained, and extra_symbols is clarified. However the formulas parameter's expected structure and the exact meaning of 'model count' remain under-explained for a 2-param tool with 0% schema coverage.

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 0%, so the description must compensate. It gives meaning to extra_symbols (symbols not in the formula that double the model count) and lists operator syntax relevant to the formulas format, but does not fully document the expected input format or element structure of the formulas array.

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 operation (compute truth table and model count) on a specific resource (one or more formulas). It is clearly identifiable among the logic/AI siblings, though it does not name a contrasting alternative.

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?

Provides syntax conventions but gives no guidance on when to use this versus alternatives like cnf_convert or entailment_check, nor any prerequisites or exclusions.

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