prolog_assert
Assert facts or rules into a persistent Prolog knowledge base, with permanent storage or session-scoped ephemeral facts.
Instructions
Assert a fact or rule into the KB. Persists to disk and survives daemon restarts. Use agent:main (default) for permanent knowledge; use session: for ephemeral facts tied to the current session.
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": {
"term": "<term>"
},
"name": "prolog_assert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | Yes | Prolog fact or rule, e.g. 'handles(billing, telegram)' or 'route(X,C) :- handles(X,C)' | |
| layer | No | 'agent:<id>' for permanent storage (default: agent:main) or 'session:<id>' for session-scoped ephemeral storage |