Skip to main content
Glama

make_rules

Turn a plain-English policy into a jailbreak-proof guardrail. Write rules the way you would explain them to a colleague — ICME compiles them into formal logic (SMT-LIB) that a mathematical solver enforces. No prompt engineering. No LLM judges. The solver either proves an action complies or it doesn't. Returns a policy_id and test scenarios for review. Costs 300 credits. Requires api_key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
policyYesYour policy in plain English, e.g. 'No action may access user data without explicit consent. External API calls require approval above $100.' Up to 50 rules.
api_keyYesYour ICME API key (from create_account or create_account_card)

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changed
    • changedInput schema / properties / api_key / description
      Previous value: -"Your ICME API key (from create_account)"New value: +"Your ICME API key (from create_account or create_account_card)"
    • changedInput schema / properties / policy / description
      Previous value: -"Natural language policy text with numbered rules (up to 50 rules)"New value: +"Your policy in plain English, e.g. 'No action may access user data without explicit consent. External API calls require approval above $100.' Up to 50 rules."
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It reveals that the policy is compiled into SMT-LIB logic enforced by a mathematical solver, that it is deterministic ('The solver either proves an action complies or it doesn't'), and that it costs 300 credits and requires an api_key. It also states the return value (policy_id and test scenarios). This is substantial behavioral context, though it does not mention potential timeouts, rate limits, or failure modes.

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?

The description is four sentences, front-loaded with the core purpose. Every sentence adds value: purpose, mechanism, contrast with alternatives, and output/cost/requirement. There is no redundancy or fluff, making it highly concise and well-structured.

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

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Even though there is no output schema and no annotations, the description covers the essential context: what the tool does, how it works, what it returns, and the cost. It explains the return value (policy_id and test scenarios) and the deterministic nature. It does not specify whether the operation is synchronous or asynchronous, which could be relevant given the sibling poll_session, but overall it is sufficiently complete for a rule-creation tool.

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 100%, so the baseline is 3. The description adds minimal parameter-specific detail: it repeats the need for an api_key and gives a general instruction ('Write rules the way you would explain them to a colleague'), but the schema already explains the 'policy' parameter with examples and limits. Thus, the description only marginally enhances parameter understanding.

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 tool's function: 'Turn a plain-English policy into a jailbreak-proof guardrail.' It uses a specific verb ('turn') and identifies the resource (policy) and the outcome (guardrail). It distinguishes itself from sibling tools like check_action and check_logic, which are for evaluating actions rather than creating rules. The mention of 'Returns a policy_id and test scenarios' further clarifies the purpose.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use the tool: when you have a plain-English policy and need to enforce it as a formal guardrail. It contrasts with typical LLM-based approaches by stating 'No prompt engineering. No LLM judges,' implying it is for deterministic enforcement. However, it does not explicitly name alternative tools or state when not to use it, so it falls short of a 5.

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.

TDQS

A4.2/5.0
Disambiguation4/5

Each tool has a distinct role, but the presence of payment-method variants (check_action vs check_action_paid, create_account vs create_account_card, top_up vs top_up_card) introduces minor overlap that is clearly explained. The check tools are differentiated by output detail and purpose, though quick_check and check_action could be confused at a glance.

Naming Consistency4/5

Names predominantly follow a verb_noun pattern (check_action, create_account, run_tests), with consistent _paid and _card suffixes for payment variants. Minor deviations like quick_check (adjective_noun) and top_up (phrasal verb) are understandable but break the pattern slightly.

Tool Count5/5

With 14 tools, the set covers the full lifecycle of policy creation, testing, action checking, payment, and proof verification without bloat. Each tool serves a clear purpose within the service's scope.

Completeness4/5

The primary workflow (create policy, test policy, check actions, verify proofs) is well covered, including multiple payment options. Missing utilities like listing or deleting policies and credit balance checks are minor gaps that don't block the core use case.

Resources