Skip to main content
Glama

fol_unify

Computes the most general unifier for two first-order logic terms or atoms, returning substitutions that make them identical.

Instructions

Most general unifier of two first-order terms or atoms, e.g. "Knows(John, x)" and "Knows(y, Mother(y))". Variables start lower-case; constants, functions and predicates start upper-case.

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": {
      "x": "<x>",
      "y": "<y>"
    },
    "name": "fol_unify"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes
yYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose a real behavioral convention: variables are lower-case while constants, functions and predicates are upper-case, which governs how input is parsed. It is silent on what happens when terms are not unifiable (failure mode, occurs-check, error vs. null result), which is the main behavioral question for a unifier.

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?

Two sentences with zero filler: the operation comes first, followed by the one convention an agent cannot guess from the schema. Nothing should be cut.

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?

An output schema exists, so return values need not be described, and the casing convention plus example cover the input side adequately for a two-string pure computation. The only meaningful gap is the non-unifiable case, which an agent using this tool will likely hit and would want documented.

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% and the two parameters are bare 'X' and 'Y' strings, so the description must compensate. The example conveys that both arguments are term strings and the casing rules explain how their contents are interpreted, but it never maps the syntax guidance explicitly to the two arguments or notes that they must be syntactically well-formed.

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?

States a precise operation (most general unifier) on a precise resource (two first-order terms or atoms), with a concrete example of the input shape. An agent can distinguish this from sibling reasoning tools like resolution_proof or cnf_convert without inspecting any schema.

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 example implies the intended use (unifying two literal-ish term strings), but there is no explicit statement of when this tool is the right choice versus siblings such as entailment_check or resolution_proof, and no exclusions. Usage is inferable rather than guided.

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