Skip to main content
Glama

fol_forward_chaining

Derives logical conclusions from definite clauses by applying first-order forward chaining round by round to answer a query.

Instructions

First-order forward chaining over definite clauses ("A(x) & B(x, y) => C(y)" or ground facts), round by round.

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": {
      "kb": "<kb>",
      "query": "<query>"
    },
    "name": "fol_forward_chaining"
  }
}

Input Schema

NameRequiredDescriptionDefault
kbYes
queryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

C2.7/5.0
Behavior1/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing beyond the algorithm name: no statement about termination, handling of non-definite clauses, error behavior, complexity limits, or what 'round by round' means for output. With no annotations and no behavioral detail, this is a serious gap for an inference engine that can loop or fail.

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?

A single front-loaded sentence with a useful inline syntax example and no filler. It is efficient, though the extreme brevity leaves no room for the missing query semantics.

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

Completeness2/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 explained, but for an inference tool with zero annotations and zero schema coverage the description omits the required 'query' parameter entirely and says nothing about failure modes or termination. It is under-specified relative to the tool's complexity.

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 0%, so the description must compensate, and it only partially does: it explains the expected form of the 'kb' entries (definite clauses like "A(x) & B(x, y) => C(y)" or ground facts) but never mentions the required 'query' parameter or how it relates to forward saturation. Half the parameters remain undocumented in both schema and description.

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?

The description names a specific algorithm and resource (first-order forward chaining over definite clauses) and gives a concrete syntax example of the accepted clause form, so an agent can distinguish it from fol_backward_chaining by direction of inference. It stops short of an explicit sibling differentiation statement.

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?

There is no when-to-use or when-not-to-use guidance, and no mention of when to prefer this over fol_backward_chaining, forward_chaining, or fol_unify despite those siblings existing. The only implicit cue is the algorithm name itself.

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