Rein Agent Risk Scale

指示性代理風險評級(A–E)自檢,適用於可花費金錢的AI代理,基於問責性、支出上限、收款人限制、停止開關、人工升級、監控、歷史記錄及事件。自我聲明且未經驗證;並非信用評級。

託管 MCP 伺服器

npx add-mcp 'https://rein-scale.mangowave-ad191d9c.eastus.azurecontainerapps.io/mcp'

可安裝到 Claude Code、Codex、Cursor 等客戶端

文件

Rein Agent Risk Scale: MCP examples

Copy-paste examples that connect an AI agent to the Rein Agent Risk Scale self-check over MCP. The self-check gives an agent that can spend money an indicative Agent Risk Rating on an A–D scale (NR = not rated), from the controls around it: who is accountable, spend caps and where they are enforced, payee limits, a stop switch and who holds it, human escalation, monitoring, history and incidents.

MCP endpoint (streamable HTTP, no sign-in):

https://rein-scale.mangowave-ad191d9c.eastus.azurecontainerapps.io/mcp

The endpoint has three tools:

  • self_check scores a deployment from structured answers;
  • get_scale returns the A–D scale (NR = not rated) and what each grade means;
  • explain_grade says what a grade requires.

Scoring is fixed, published rules with no language model, so the same answers always give the same grade (methodology 0.3.1). Harness memory counts in your favour within your grade's band; it never moves the letter.

Self-declared and unverified; not a credit rating.

Examples

Each example is one file of under 40 lines.

fileframeworkinstall (tested versions)
examples/plain_mcp.pythe mcp Python SDK, no LLMpip install "mcp==2.3.0"
examples/openai_agents.pyOpenAI Agents SDKpip install "openai-agents==0.23.1"
examples/langgraph_agent.pyLangChain / LangGraph with the MCP adapterspip install "langchain==1.4.3" "langchain-openai==1.6.7" "langchain-mcp-adapters==0.3.2"
examples/crewai_agent.pyCrewAIpip install "crewai==1.15.23" "crewai-tools[mcp]==1.15.23"

The three agent examples use OpenAI by default (export OPENAI_API_KEY=...). Pass any model your framework accepts to main() to use another.

  • Tested: every example was run against the live endpoint on 7 October 2026 at the versions above.
  • Watched weekly: a check runs them against the latest framework releases, because releases rename things. mcp 2.x renamed its HTTP client, and it now yields two streams instead of three.

Use it from any MCP client

{
  "mcpServers": {
    "rein-agent-risk-scale": {
      "type": "http",
      "url": "https://rein-scale.mangowave-ad191d9c.eastus.azurecontainerapps.io/mcp"
    }
  }
}

There are docs written for agents at /skill.md and /llms.txt.

What a self-check is, and is not

  • Indicative. The grade comes from your own answers. It is self-declared and unverified, so the rated grade stays NR (not rated) until the controls are verified.
  • Explained. The response lists the findings that most explain the grade and the steps that would raise it.
  • Private by default. Answers and grades are stored under a pseudonymised record. A handle is published only if you set publish_opt_in: true. Never send secrets or personal data.
  • Not a credit rating, not investment advice, and not an offer of credit.

License

MIT. See LICENSE.