Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PROLOG_REASONER_LLM_MODELNoLLM model for library modegpt-5.4-mini
PROLOG_REASONER_LOG_LEVELNoLog level for the serverINFO
PROLOG_REASONER_SWIPL_PATHNoPath to SWI-Prolog executableswipl
PROLOG_REASONER_LLM_API_KEYNoAPI key for library mode only — leave unset for MCP
PROLOG_REASONER_LLM_PROVIDERNoLLM provider for library mode (openai or anthropic)openai
PROLOG_REASONER_LLM_TEMPERATURENoLLM temperature for library mode0.0
PROLOG_REASONER_LLM_TIMEOUT_SECONDSNoLLM timeout for library mode30.0
PROLOG_REASONER_EXECUTION_TIMEOUT_SECONDSNoExecution timeout for Prolog10.0

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}
extensions
{
  "io.modelcontextprotocol/ui": {}
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
execute_prologB

Execute Prolog code and return reasoning results.

Write Prolog facts and rules, then run a query against them. Supports CLP(FD) constraints, negation-as-failure, and all standard SWI-Prolog features.

list_rule_basesA

List all saved rule bases with description and tags.

Returns {"rule_bases": [{"name": str, "description": str, "tags": list[str]}, ...]} sorted by name. Metadata is extracted from the leading % description: / % tags: comments of each rule base file (see §4.10).

get_rule_baseB

Retrieve the Prolog source of a saved rule base.

save_rule_baseA

Save a named rule base containing Prolog rules that can be reused across execute_prolog calls.

Use this for stable, reusable knowledge (e.g. piece_moves for chess piece movement rules). For one-time facts, include them directly in prolog_code instead.

delete_rule_baseC

Delete a saved rule base by name.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.7/5.0

Scored across 5 tools

Disambiguation5/5

Each tool targets a distinct action: delete, execute, get, list, or save rule bases, with no overlap in functionality.

Naming Consistency5/5

All tool names follow a clear verb_noun pattern with snake_case (e.g., delete_rule_base, execute_prolog), maintaining uniformity.

Tool Count5/5

Five tools is well-scoped for a Prolog reasoning server, covering rule base CRUD and execution without excess or deficiency.

Completeness4/5

Core operations are present (CRUD for rule bases plus execution), but missing an explicit update tool; users must delete and re-save to modify a rule base.

Maintenance

ActivityInactive
ResponsivenessUnresponsive