Skip to main content
Glama
umuro

prolog-mcp

by umuro

prolog_retract

Remove matching facts or rules from a specified Prolog layer. Deletion persists to disk and survives daemon restarts.

Instructions

Retract matching facts or rules from a layer. Removes from disk and reloads — retraction survives daemon restarts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
termYesProlog fact or rule head to retract, e.g. 'handles(billing, telegram)'
layerYes'agent:<id>' or 'session:<id>' — must include the colon and an id
Behavior4/5

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

Without annotations, the description fully carries the burden. It discloses persistence ('retraction survives daemon restarts') and the reload process. However, it omits details on side effects (e.g., reload scope) and error states (e.g., missing term).

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 concise sentences: the first states the action, the second adds critical behavioral context. No extraneous information, optimally front-loaded for quick understanding.

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?

For a simple 2-parameter tool, the description covers core functionality and persistence but lacks details on return value, success/failure indication, and behavior when no matching fact exists. This gap could hinder correct invocation.

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 100% with clear descriptions for both parameters (term example and layer format). The tool description adds little beyond restating 'from a layer', so baseline 3 is appropriate.

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?

The description clearly states the action 'Retract matching facts or rules from a layer' with a specific verb and resource. It distinguishes from siblings like prolog_assert (add) and prolog_reset_layer (clear all) by focusing on selective permanent removal.

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?

No explicit when-to-use or when-not-to-use guidance is provided. The context of siblings implies usage for persistent removal, but no alternatives or exclusions are mentioned, leaving the agent to infer from the name alone.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/umuro/prolog-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server