RuleCloud Guardrails

Guardrail scans and rule generation for AI agents via scan_code, get_default_rules, and suggest_fix.

Should I use this

Quality & Safety

B
Description quality
85%
Schema completeness
68%
Naming quality
90%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~294Tokens (tool definitions)
~533 BTypical response size
Minimal attention impact (0.23% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "rulecloud": {
      "url": "https://rulecloud-production.up.railway.app/mcp/"
    }
  }
}

Remote endpoints

https://rulecloud-production.up.railway.app/mcp/streamable-http

What it can do

Tool inventory

Tools (4)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
⚪scan_code(code, filename, rules_yaml)

Scan inline source with hybrid Guardrail + Python rules; counts toward monthly quota.

Input Schema

{
  "type": "object",
  "properties": {
    "code": {
      "type": "string"
    },
    "filename": {
      "type": "string"
    },
    "rules_yaml": {
      "default": "",
      "type": "string"
    }
  },
  "required": [
    "code",
    "filename"
  ]
}

Output Schema

{
  "type": "object",
  "additionalProperties": true
}
🟢get_default_rules

Return the canonical starter guardrail.yaml schema and example rules.

Input Schema

{
  "type": "object",
  "properties": {}
}

Output Schema

{
  "type": "object",
  "additionalProperties": {
    "type": "string"
  }
}
⚪generate_guardrail_rules(description)

Compile plain-English policy into valid guardrail.yaml (uses AI Copilot).

Input Schema

{
  "type": "object",
  "properties": {
    "description": {
      "type": "string"
    }
  },
  "required": [
    "description"
  ]
}

Output Schema

{
  "type": "object",
  "additionalProperties": {
    "type": "string"
  }
}
🟡suggest_fix(code, rule_id, violation_message, line)

Pro: minimal patch for a violation (Free plan returns upgrade prompt).

Input Schema

{
  "type": "object",
  "properties": {
    "code": {
      "type": "string"
    },
    "rule_id": {
      "type": "string"
    },
    "violation_message": {
      "type": "string"
    },
    "line": {
      "type": "integer"
    }
  },
  "required": [
    "code",
    "rule_id",
    "violation_message",
    "line"
  ]
}

Output Schema

{
  "type": "object",
  "additionalProperties": {
    "type": "string"
  }
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded4 tools