Skip to main content
Glama

mechacut

logic_rules

Closed rule grammar over facts: when/require/forbid/set with and/or/not and leaf ops (eq ne gt gte lt lte in contains not_contains exists). Returns pass, per-rule trace (fired / skipped / passed / violated), violations[], errors[] naming the failing rule. Multi-step logic without drift. Free.

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": {
      "facts": "<facts>",
      "rules": "<rules>"
    },
    "name": "logic_rules"
  }
}

Input Schema

NameRequiredDescriptionDefault
factsYes
rulesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It usefully discloses the output shape (pass, per-rule trace with fired/skipped/passed/violated, violations[], errors[] naming the failing rule), but it does not state whether evaluation is read-only, deterministic, side-effect-free, or what limits apply beyond the schema's maxItems.

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?

The description is short and front-loaded with the grammar and return behavior. However, "Multi-step logic without drift." is a vague benefit claim and "Free." is unrelated to invocation, so a small amount of the text does not earn its place.

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 rule engine with nested inputs and no output schema or annotations, this is only partially complete. It documents the rule vocabulary and return fields, but omits the concrete facts/rule object shapes and precedence/limit details needed to construct valid calls.

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?

The schema has 0% description coverage for two required parameters, including a nested facts object and a rules array with no item schema. The description compensates by defining the rule grammar and leaf operators, which adds meaning beyond the bare schema, but it never explains how facts and individual rule objects are structured.

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 phrase "Closed rule grammar over facts" plus the list of when/require/forbid/set constructs and leaf operators makes clear that this evaluates a rule DSL against supplied facts; the return contract (pass, trace, violations, errors) confirms the resource. It is not tautological, but it never uses an explicit verb like "evaluate" and does not distinguish itself by name from sibling tools, so 4.

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?

The description contains no when-to-use, when-not-to-use, or alternative-tool guidance. "Multi-step logic without drift" hints at a use case for multi-step rules, but that is a benefit claim rather than routing guidance, leaving the agent to infer when this tool is preferable to the check_* siblings.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.