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
Based on automated analysis of tool definitions and protocol compliance.
Context Cost
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-httpWhat it can do
Tool inventory
Tools (4)
⚪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
Evidence