How ReQlo fits
Where ReQlo sits relative to your agent and its tools, what an agent ID is, and which tool calls ReQlo can and can't protect.
If you're wondering "how does ReQlo sit between my agent and its tools?", the short answer is: it doesn't sit between them. Nothing your agent sends passes through ReQlo. This page explains what happens instead, and why.
ReQlo is a decision you ask for, not a proxy
An agent doesn't act on its own. The model only proposes a tool call, like
refund_order(order_id="ord_200", amount=500). Your code receives that proposal and runs the tool. That moment,
after the model has asked and before your code acts, is where ReQlo goes.
Model (OpenAI, Claude, …)
│
│ 1. "call refund_order(ord_200, 500)"
▼
Your code (the tool) ──2. may it?──▶ ReQlo
│ ◀──3. allow / deny / approval_required
│
│ 4. only on allow
▼
Stripe, your database, Gmail, …
│
│ 5. result (or "not allowed") back to the model
▼- The model proposes a tool call.
- Your tool code asks ReQlo: may this agent do this action, on this resource, for this user, right now?
- ReQlo checks your policies and answers
allow,denyorapproval_required. - Your code runs the real action only on
allow. - The model gets the result, or a "not allowed" message it can explain to the user.
In code, it's a few lines at the top of each tool:
def refund_order(user_id, order_id, amount):
order = db.orders.get(order_id) # facts come from your database
reqlo.enforce( # raises unless the answer is allow
agent={"id": "agt_support_7"},
subject={"id": user_id, "kind": "user"}, # from your verified session
action="refunds.create",
resource={"type": "order", "id": order_id, "attributes": {"owner_id": order.owner_id}},
context={"amount_cents": round(amount * 100)},
)
return stripe.refunds.create(...) # never reached on denyThings worth noticing:
- The model never talks to ReQlo. It doesn't know ReQlo exists, so it can't argue its way past a policy.
- ReQlo never touches Stripe, your database or any other system. It only answers a question. Your code does the work.
- Nothing changes about how your agent is built. Keep your framework, model and hosting. You add a check.
If you've used Auth0 or Stripe Radar, it's the same shape: your code calls them for a decision and acts on the answer.
What an agent ID is
When you Add agent in the dashboard, you aren't connecting, installing or deploying anything. ReQlo never reaches out to your agent. You're creating a name your policies can refer to.
Why you need one: a company usually runs more than one agent, and they shouldn't all have the same powers.
| Agent | Should be allowed to |
|---|---|
| Support bot | Read the customer's orders, refund up to $50 |
| Finance bot | Refund any amount, export invoices |
| Internal HR assistant | Read HR records, never refund anything |
All three use the same API key. The key proves the request comes from your company. The agent ID says which of your agents is asking, so a rule can say "the support bot can refund up to $50" without that rule also applying to the finance bot.
{
"id": "small-refunds",
"effect": "allow",
"actions": ["refunds.create"],
"agents": { "ids": ["agt_support_7"] },
"condition": "context.amount_cents <= 5000"
}Think of it like a Stripe customer ID: a label you pass along with each request, not a live connection.
Where the agent ID comes from
Put the agent ID in your server's configuration, next to the API key. Never let the model choose it. A model that could pick its own ID could pick the most powerful one.
Agents also give you a place to see each agent's decisions in Observability, and to disable one instantly: a disabled agent is denied everything, without a code change or a redeploy.
Which tool calls ReQlo can protect
The rule is simple: ReQlo protects an action if that action runs through code you control. Where the tool goes afterwards doesn't matter. What matters is whether your code is in the path.
| How the tool runs | Protected? | Where the check goes |
|---|---|---|
| Your backend calls a third-party API (Stripe, Gmail, Salesforce, Slack) | Yes | In your code, right before the API call. The API being someone else's doesn't matter: your code holds the credentials and makes the call. |
| Your own functions and services | Yes | At the top of the function |
| Custom tools in a framework (OpenAI Agents SDK, LangGraph, Claude Agent SDK, your own loop) | Yes | Inside the tool function. See Tool-call enforcement. |
| An MCP server you run | Yes | Inside the MCP server's tool handler. See MCP servers. |
| A remote MCP server the model provider calls directly, or a desktop app (Claude Desktop, Cursor) connects to | Yes, with the MCP gateway (beta) | Point the client at the ReQlo gateway instead of the real server |
| A provider's built-in tools (its own web search or code execution) | No | They run entirely inside the provider. There's no call to intercept |
"My agent calls tools it doesn't host"
This usually means one of two things, and they have different answers.
1. Your code calls an external service. For example, your tool calls the Gmail API to send an email. This is fully protected. You don't need to host Gmail. You need your code to be the thing that sends the request, which it is, because your server holds the Gmail credentials. Put the check before the call.
2. The model provider calls the tool for you. For example, you hand OpenAI or Anthropic a remote MCP server URL and the provider calls it directly. Your code isn't in the path, so ReQlo can't stop a call it never hears about. Your options today:
- Run the tool through your code instead. Define it as a regular function tool, so the model proposes the call and your code runs it. This is the most reliable option.
- Use the platform's approval step. Some platforms can pause before a hosted tool runs and ask your code to approve it. Answer that question with a ReQlo check.
- Put the MCP gateway in front of it. Give the provider the ReQlo gateway URL instead of the real server. Every call is checked, and the provider never holds the real server's credential.
- Put the check in the tool's server. If you control the remote MCP server, enforce there. See MCP servers.
- Don't give the agent standing credentials. If a hosted tool needs a key to act, keep the key in your backend
and only hand out short-lived access after a ReQlo
allow.
Tools reached over MCP
With MCP, the question is the same: who sends the tools/call request to the MCP server? If your code sends it,
or your code is the server receiving it, ReQlo can protect it. Who wrote the server doesn't matter.
| Setup | Who calls the MCP server | Protected? | Where the check goes |
|---|---|---|---|
| Your agent connects to MCP servers (GitHub's, Linear's, your own) | Your agent loop, via the MCP client | Yes | In your loop, before callTool |
| You run the MCP server | Any client: your agent, Claude Desktop, Cursor | Yes | In the server's tool handler. See MCP servers. |
| You give the model provider a remote MCP server URL | The provider's servers | Yes, with the gateway | Give the provider the MCP gateway URL instead |
| A desktop app (Claude Desktop, Cursor) connects to someone else's server | The desktop app | Yes, with the gateway | Configure the app with the MCP gateway URL |
The first row is the most common, and the one people miss. You don't own GitHub's MCP server, but your agent loop
receives the model's tool call and forwards it with callTool. That forwarding step is your code:
async def run_mcp_tool(session, user_id, name, args):
# session is your MCP ClientSession, connected to a server you don't own
reqlo.enforce(
agent={"id": "agt_support_7"},
subject={"id": user_id, "kind": "user"},
action=f"github.{name}", # e.g. github.create_issue, registered in ReQlo
resource={"type": "repository", "id": args["repo"], "attributes": {"owner_id": repo_owner(args["repo"])}},
)
return await session.call_tool(name, args) # never reached on denyRegister an action per MCP tool you allow (or per group of tools), so a policy can say "this agent may create issues but never delete repositories".
The honest limit
ReQlo can't protect a call that never passes through code you control. If a hosted tool can act with credentials the agent already holds, a policy in ReQlo won't stop it. Design so the powerful step always runs through your code.
Common questions
Do I install anything on the agent? No. You install the SDK in the server code that runs your tools.
Does ReQlo see my prompts or the model's output? No. It sees only what you send in the check: the agent ID, the user, the action, the resource and any context you choose to include.
What if ReQlo is down? The SDKs fail closed: enforce raises, so the action doesn't run. See
Offline and outage behavior.
Can the model skip the check? Not if the check is inside the tool. The model can only propose calls; your code decides whether to run them. A check in the prompt ("don't refund over $50") is not enforcement.
Do I need one API key per agent? No. One key per project; every agent in the project uses it. The agent ID tells them apart.
Next steps
- Quickstart: make your first decision in about 10 minutes.
- Tool-call enforcement: a reusable wrapper for every tool.
- Secure enforcement: where the check must live, and common mistakes.
Something wrong or unclear? Report an issue with this page.