---
title: "MCP Gateway: Per-Key Rules on Every Agent Tool Call | Verosek"
description: "Check every agent tool call against the key's rules before it runs, down to the operations and tables in its SQL. A refused call never reaches the tool."
url: https://verosek.com/mcp-tools
---

MCP Tools

# 100 connectors. No rule, no run.

Every tool scoped. Every argument typed. Every call logged before it executes.

[Book a call](https://cal.com/verosek-solutions-u9ztip/30min)

MCP Tools is the tool side of Verosek's AI + MCP Gateway: it checks every tool call against the agent key's rules before it runs, and decides SQL from the parsed statement, down to tables, row bounds and read-only mode.

## Two use cases, One layer.

{ VEROSEK RUNS THE TOOLS }

Via /v1/chat/completions

Verosek runs the model and the tools in a loop, under your rules. Your app sees only the final answer. Every step is audited.

Your app calls Verosek. The LLM and the tools run in a loop, N turns or loops until done, and your app gets the final answer.

{ YOUR CODE RUNS THE TOOLS }

MCP clients reach /mcp, a gated hub filtered by key. PostgreSQL and Slack are reachable, and Redis is blocked.

Via /v1/chat/completions

The model streams tool calls to your app. Verosek intercepts each one, enforces policy per virtual key, logs it, and returns the filtered result. A tool your own code runs is allowed until you set the key's list. Then it follows that list and a check of its arguments against your schema.

Full Stack Catalog

## Scoped connectors across 7 categories.

PostgreSQL, MySQL, MongoDB, Redis, Elasticsearch, Snowflake, BigQuery, Databricks, Supabase, Neo4j, GitHub, GitLab, Bitbucket, Jira, Linear, Jenkins, Azure DevOps, Docker, Kubernetes, Playwright, Notion, Confluence, Google Drive, Dropbox, SharePoint, Slack, Teams, GitBook, Airtable, Evernote, Google, Bing, Exa, SerpAPI, Firecrawl, Zapier, n8n, Make, Airflow, Temporal, Stripe, PayPal, Square, Salesforce, HubSpot, Prometheus, Grafana, Splunk, Sentinel, AWS, Azure, GCP

Access Control

## Rules down to the argument. Enforced every call.

Not just which tools. Which arguments. Which values.

A rule can also rewrite a call's arguments before it runs, such as adding a row limit.

A replay of a call the rules allow: an agent asks to read the orders table, Verosek finds it within the key's rules, and the tool's result comes back.

A replay of a call the rules refuse: an agent asks to drop the orders table, Verosek refuses it in your SDK's shape, and the call never reaches your system.

Per-Tool Controls

## One rule set per tool type. Per virtual key.

Tool type · Controls

SQL (seven dialects, parsed) · Which operations, Which tables, Flagged columns, How many rows, Read-only

NoSQL (mongodb) · Which operations, Which collections, How many results, Read-only

Key-value (redis) · Which commands, Which keys, Read-only

Search (elasticsearch) · Which indices, How many results, Read-only

Filesystem · Which operations, Which paths, Read-only

API (github, gitlab, slack) · Which operations, Which targets

Payments (stripe) · Which operations, Amount limits

Containers (docker)

Which operations, Which images, Exec off unless allowed, No privileged runs or host mounts, Read-only

Kubernetes · Which operations, Which namespaces, Secrets off unless allowed, Exec off unless allowed, Read-only

Cloud (aws, azure, gcp)

Which services, Which regions, Which operations, Raw commands off unless allowed, Read-only by default

Browser · Which domains, Scripts off unless allowed, File transfer off unless allowed, Read-only

Messaging

Which operations, Which recipients, Which templates, No IDs or cards in the body, Read-only by default

Across Calls

## Two calls can each pass and still leak.

One reads a customer record, the next sends it out. Verosek follows where each value came from, so a destination planted in a tool result, or personal data heading somewhere it is not allowed, is flagged or refused.

## Frequently Asked Questions

### What does Verosek actually do when an agent calls a tool?

It runs the tool for you, under your rules. The agent requests an action. Verosek checks it against policy, executes it through a governed connector, and returns the result. You never write tool-execution or permission code.

### How is that safer than letting the agent reach our systems directly?

For a tool Verosek runs, the agent never touches your system directly. Every call passes through a controlled boundary that can narrow it, cap it, flag it or block it before it lands. A direct integration has to trust the model. Verosek does not.

### Can we control tools at a fine level?

Yes, down to individual operations, fields, and arguments, per key. Two agents can share one connection and still have completely different powers.

### Do tool calls show up in the audit trail?

Every one. The same signed record that covers model calls covers tool calls, so there is no gap between what the model said and what it actually did.

### How do I stop an AI agent running a destructive SQL query?

Run the database tool through Verosek and give the agent's key a SQL rule: which operations it may run, which tables it may touch, how many rows it may read, or read-only. Each statement is checked against that rule before it runs, so a refused DELETE never reaches your database, and the refusal is recorded. Seven SQL dialects, parsed, so the rule reads the statement and not a pattern on its text.

### Can I set per-tool access control for MCP servers per API key?

Yes. Each key carries its own rule for each tool. A tool with no rule for that key is refused, and an agent is never offered a tool its key does not carry.

### Can a rule read an amount in a tool call?

Yes. A limit on an amount reads the exact amount, and over the limit the call is refused.

### Can a tool call be tied to the signed-in customer?

Yes. Your backend or your identity provider says who is signed in, and the key says which argument of which tool names that person. Verosek sets that argument to the signed-in customer, or refuses a call for anyone else.

### Can I see what a rule would do before it enforces?

Yes. Watch mode shows what a rule would have blocked before it enforces.

### Can a named person decide a call before it runs?

Yes. A named person decides the calls you choose, and the call does not run until then.

### What if a tool's definition changes, or a tool result carries instructions?

A tool Verosek runs is held back if its definition changes. Data-flow rules flag or stop untrusted tool results that try to choose where data goes.

## [ From the blog ]

[All posts →](https://verosek.com/blog)

Field guide

### [How do you stop an AI agent's tool call before it runs?](https://verosek.com/blog/stop-a-tool-call-before-it-runs)

Put the decision outside the AI. Verosek checks what an agent tries to do against the rules you set, lets the allowed actions through, stops the rest and keeps a sealed record of every decision.

Field guide

### [How do you secure AI agents?](https://verosek.com/blog/how-do-you-secure-ai-agents)

Limit what each agent can do, decide each action outside the AI model, read what it reads and keep a record you can check. Verosek does all four in one place, so security is not a second vendor.

Reference

### [AI gateway, LLM router, MCP gateway, AI firewall: what is the difference?](https://verosek.com/blog/ai-gateway-vs-llm-router-vs-mcp-gateway-vs-ai-firewall)

A router picks the model, an AI gateway controls who may use it, a firewall reads the words, and an MCP gateway decides each tool call before it runs. Who needs which, and how Verosek does them on one key.

## Two lines to migrate. Your SDK, your providers.

[Book a call](https://cal.com/verosek-solutions-u9ztip/30min)
