Skip to content

MCP restriction enforcement points, all eight

The mcp restriction enforcement points in Elaichi run at eight places, not four, and a ninth check inside the AI client would prove nothing.

Nachi Raman Updated 8 min read
A tool call passing through successive checks between an AI client and a connected app

How many MCP restriction enforcement points are there?

More than four. An admin writes one rule and wants to know where it bites. Elaichi checks a restriction at every place a member can reach a connector or tool, including listing, connecting, advertising, executing, the final outbound-request check and opening a stored tool file.

The mcp restriction enforcement points in the deployed product are eight. Listing connectors and their tools, in the console, the REST API and the catalog tools the AI uses. Connecting or reconnecting an account. Forking a connector. Saving a toolbox entry or a step in a multi-step tool. Advertising tools to an AI app through the tool list, tool search and toolbox views. Running any tool call. The final outbound-request guard. And opening a stored tool file that came out of a now-restricted tool.

A restriction is a rule naming which connectors and tools a role or one member may reach. In Elaichi, restriction targets are role or user only; the organization default is the absence of a rule, which means allow everything. To keep a team off a tool, the rule goes on their role or on each member.

What the resolver decides, and whose access it reads

Every one of those checks asks the resolver the same question. For this person, is this connector or this tool reachable? A member is governed by two layers at once: the rules on their role, and the rules aimed at them personally. Both layers have to admit the tool, and a personal rule can only narrow what the role allows. Inside each layer, all allow rules merge into one allowlist and all block rules into one blocklist. A block always beats an allow. How restrictions sit beside roles and sharing grants is laid out in three separate access layers.

An empty allow rule is the trap. An allow rule turns on the allowlist for its layer just by existing, whatever it names. So an allow rule naming nothing blocks every connector and tool for its target. Its summary says so: "Allows nothing. Every connector and tool is blocked."

The resolver reads the person the call acts as. Not the owner of the connection, and not the toolbox entry's delegator. A tool a restriction blocks for the caller is blocked inside every toolbox entry for that caller, frozen arguments or not. Allow rules match only the operation Elaichi pinned when the rule was saved. Block rules match by name or by operation. The reasoning behind that asymmetry is in why blocks match tool names and allows do not.

Browse and connect: the checks that run before any tool call

These two run before a connection exists. They are the reason a rule can stop something from ever being set up. When an AI client or the console lists a connector's tools, restricted tools are left out. The count of what was left out comes back with the list, and a connector blocked whole is refused rather than listed as empty. In the console's own connector and connection tool lists, every tool comes back with three flags: whether it is restricted, what restricted it, and at what level (role or person). Anyone who can read the connector sees them. So confirming that one tool is restricted for you needs no permission to view restrictions.

Connecting or reconnecting an account is itself checked. That matters more than it sounds. Creating a personal connection is a default Member permission. Absent any restriction, a Member can connect any connector in the catalog with their own account. The connect-time check is what makes an approved-apps list stick when somebody tries to sign in to app number nine.

Authoring checks: forking, toolbox entries and synthetic steps

Three more checks run while somebody is building, before anything is callable. Forking is refused for a connector, or a fork of one, that a restriction blocks for the caller. Saving a toolbox entry or a synthetic tool step is refused when it names a tool restricted for the person saving it. The message reads "Tool () is restricted for your account."

These checks are convenience, not the boundary. An entry saved before the restriction existed is not refused again on later saves. It is withheld when the toolbox resolves, and refused when it is called. That is the point: execution is the layer that has to hold.

Fork lineage runs one way on purpose. A block on a connector also blocks every fork that declares descent from it, walking the lineage toward its root for up to 8 hops. A chain that is longer, loops or is broken is refused outright rather than checked partially. An allow rule does not inherit, so a fork has to be named on the allowlist itself. And a connector's identity is its slug plus its declared lineage, never the host it calls. A connector built from scratch against the same API as a blocked one is not caught by that block. That is why the permission to create a connector is the one Elaichi flags "High trust".

What an AI client sees when a tool is restricted

A restricted tool is left out of the tool list and out of a toolbox's runnable tools. The check runs for the person using the toolbox, against the catalog tool's own name and operation. An entry's rename, schema override or frozen values change nothing about the outcome.

It is not hidden, though. Tool search ranks the caller's restricted tools separately against the same query. A restricted tool is left out of the tools Elaichi offers a client and cannot be called. Search still names it, flagged restricted, with no schema. The matches also carry no description, and the result includes a count of restricted matches. A connector blocked whole shows as one row for the connector. Calling a restricted tool's name gets a restriction refusal rather than "Unknown tool". The refusal tells the caller whether the block comes from their role or from their own account, and that an admin can lift it through an access request. It does not name the rule, who wrote it, or what else it covers.

The advertised surface is cached in worker memory for up to 60 seconds per grant. A stale entry can only mis-advertise. Every authorization is taken again at call time.

The execute clamp: one check for every surface

Every connected-tool call Elaichi runs passes one restriction clamp, evaluated for the member the call acts as. An MCP request to run a tool goes through it, and so does the execute tool. So does each tool call inside a program the AI writes and runs, a toolbox run, the in-app Agent, and every step of a multi-step tool. Restrictions therefore bind whatever client or automation sent the call. They narrow what a member can do through a connection, whatever the credential behind that connection could do upstream.

Two details make the clamp trustworthy. Each tool call through a stored toolbox re-resolves the toolbox at call time from the organization's store, including every entry's delegation standing. The advertised list is never used to authorize a call. And when the resolver gets an answer in a shape it does not recognize, it refuses the call rather than allowing it. That happens, for example, with an organization store still running older code during a deploy. It does not cache that answer either.

The outbound-request guard: the last check before the wire

As a last check before a call leaves, Elaichi resolves the outbound URL in full. It compares that URL, and every redirect hop, with the HTTP operations named by tool-level block rules on the called connector and its declared ancestors, and refuses a match. It never refuses a request merely for reaching a host. A whole-connector block is enforced earlier, before the request is built at all.

Within a declared fork chain, the guard compares the HTTP method, path and host the called tool really sends with those of each blocked upstream tool. Renaming a tool does not escape a block written against the original. Nor does editing the resource and method keys inside a fork's config. This is the check that makes a tool-level block about what a call does rather than what it is labeled.

Why a fifth check at the client would be theater

Because Elaichi's MCP tool list names no connected app. In that list, connected tools are never listed one by one, however few there are; an AI app finds them with tool search. So an AI app setting that picks individual MCP tools can act only on four general tools, each as a whole: run a tool, run code, run a toolbox, and run a multi-step tool. It cannot tell a Salesforce call from a payroll call. And a permission set on one run tool does not cover the other three paths.

Tool annotations will not rescue it either. Elaichi treats annotations as untrusted hints for clients and keeps its own check as the gate. The execute tool and the run-code tool are labeled destructive and open-world. The real tier of whatever they are handed is not knowable before the call. So a client setting that runs read-only tools without prompting still prompts on every connected-app call, reads included. It does not make connected apps read-only.

The client vendors say the same thing about their own controls. Anthropic warns that a server name in Claude Code's allow and deny lists is not a security control, because the name is a label the user assigns (Claude Code managed MCP docs, checked October 2026). It also describes server-managed settings as a client-side control rather than a security boundary, which a user on an unmanaged device can bypass without admin access (Claude Code server-managed settings, checked October 2026). A check a user can edit is not an enforcement point.

What the client should carry instead

Per-call confirmation. Over MCP, the person's OAuth grant is the approval. Elaichi runs every call the grant's scopes cover as already approved, and sends no per-call prompt of its own. A prompt a person sees is their client's. Claude's connector tool permissions offer Always allow, Needs approval or Blocked, per connector, category or tool (Anthropic connectors help, checked October 2026). Cursor asks for approval before using MCP tools by default (Cursor MCP docs, checked October 2026). The layers are compared in human approval for AI agent actions.

Prompt-injection defense belongs there too. Nothing on Elaichi's MCP path scans tool results for injection. The gate could not run there as built: the endpoint reads only a tool name and arguments from a request to run a tool. It never has the person's prompt to judge the call against.

And the honest case for skipping all of this. A company running one client against one app can get what it needs from that client's own connector-level policy. Restrictions earn their keep when the same tool is reachable from several clients, surfaces and scheduled jobs at once.

When a restriction change actually bites

Restrictions and sharing come with the Gold plan. Role, team-membership, restriction and access-grant changes reach every surface within about two minutes. A member's resolved restrictions are cached briefly behind a per-organization epoch. In Elaichi, revoking a share or disconnecting an account takes effect on the caller's next call. So does revoking a grant, removing a member or suspending one.

Creating, changing or deleting a restriction each writes its own audit entry. Approving an access request records an access grant for that one person rather than editing the role's rules. That new access arrives on the same schedule as a restriction edit.

The exact names behind the plain descriptions above are these:

restricted_count      count of restricted matches in a tool list or search
restricted            flag on each tool in console tool lists
restricted_by         what restricted it (role or member)
restricted_scope      the level the rule applies at
restriction.created   audit event
restriction.updated   audit event
restriction.deleted   audit event
execute_tool          run any connected tool
run_code              run code that calls tools
elaichi__toolbox__execute         run a toolbox
elaichi__synthetic_tool__execute  run a multi-step tool

For how rules map to roles across a whole company, start from MCP governance. For whether to write a rule against one tool or the whole app, read restrict one AI tool or the whole app. The governance use case walks the same model from the admin's side at /use-cases/governance/.

FAQ

Frequently asked questions

Where does Elaichi check a restriction on a tool?

Elaichi checks restrictions at every place a member can reach a connector or a tool. That covers listing connectors and their tools in the console, the REST API and the catalog tools the AI uses. It also covers connecting or reconnecting an account, copying (forking) a connector, and saving a toolbox entry or a step in a multi-step tool. Then come the tool list sent to an AI app, tool search and toolbox views, and running any tool call. Last are the final check before a request leaves and opening a saved tool file that came from a tool now restricted. Saying there are four checks is an undercount.

Does a restricted tool disappear from an AI client's tool list?

It is left out of the tool list and out of a toolbox's runnable tools, but it is not invisible. Elaichi's tool search still returns a restricted match by name, flagged as restricted, with no description and no way to run it. The result also carries a count of restricted matches, and a connector turned off whole shows as a single row. Asking to run a restricted tool by name gets a restriction message, not an "Unknown tool" error. The message says whether the rule came from the person's role or from their own account.

How long does a restriction change take to apply in Elaichi?

About two minutes. Role, team, restriction and access changes are saved briefly for each member and refreshed when the organization's version number changes. The change reaches the AI apps, the console and the REST API once each one sees the new version number. Some other changes are faster. Revoking a share, disconnecting an account, revoking a grant, and removing or suspending a member all take effect on the next call.

Can a restriction block another connector that calls the same API?

No. For restrictions, a connector is identified by its own name plus the connector it was copied from. The server it calls is deliberately not part of that. A block on a connector also blocks every copy that says it came from it, up to 8 copies deep. A connector built from scratch against the same app is not caught. This is why Elaichi flags the permission to create connectors as high trust.

Can Claude or ChatGPT's own per-tool setting replace a restriction in Elaichi?

No. Elaichi never lists connected tools by name in the tool list an AI app sees. So an AI app setting that controls individual MCP tools can only switch the general run tools on or off, each as a whole. It cannot single out one connected app or one tool, and a setting on one run tool does not cover the other three ways to run a tool. Per-app and per-tool control belongs in Elaichi as restrictions. The AI app's own approval prompt is a separate, useful layer.

Put AI to work in your own apps

14 days of Black, no credit card. Start with one app and one team.

When the trial ends, nothing is deleted. You move to the free Personal plan, and connections, roles and the audit log stay where they are.

Add one link to your AI app

The same link for everyone on your team.

https://api.elaichi.ai/mcp
  • ChatGPT
  • Claude
  • Perplexity
  • Grok
  • Cursor
  • Microsoft Copilot