The short answer
Do not treat an MCP tool permission as a permanent key to an entire service. Treat it as a short-lived, narrowly scoped decision about one action on one resource.
For an indie developer, the safest practical design has four parts:
- Map each tool to the exact resources it may touch.
- Ask for consent at the boundary where the tool can access or change something.
- Validate arguments again inside the server. The model or client is not a trusted validator.
- Return only the result required for the requested operation. Never return the whole database, account, or neighboring records because one item was needed.
This matters because an MCP server is a trust boundary. It exposes tools and resources to AI applications, and an agent can select a tool, supply arguments, or act on retrieved content in ways the original user did not explicitly anticipate. Authentication proves who is connected; it does not prove that a particular tool call is safe.
The practical goal is not to eliminate agent autonomy. It is to make each autonomous step inspectable, narrow, and reversible.
Start with a capability map, not a list of tools
Many MCP authorization designs begin with a list like this:
search_filesread_filesend_emailcreate_ticket
That list is not an access model. It is only an inventory of interfaces.
Build the map from business resources instead. Ask: What can be read or changed, and for which customer, project, or workspace?
A useful map might look like this:
| Capability | Resource boundary | Suggested access |
|---|---|---|
| Search tickets | Tickets in project 42 | Read titles, IDs, and status |
| Read a ticket | One ticket in project 42 | Read ticket body and comments |
| Create a ticket | Tickets in project 42 | Create only; do not edit or delete |
| Send an email | Recipient allowlist owned by project 42 | Send only; no draft or mailbox access |
This immediately exposes missing distinctions. search_tickets may sound harmless, but it still needs a tenant, project, or workspace boundary. read_ticket needs a ticket identifier and must verify that the ticket belongs to the caller’s permitted project.
A good resource map answers four questions:
- Which object? Name the concrete resource, not merely the service.
- Which owner or tenant? State the boundary that contains it.
- Which operation? Read, create, update, delete, execute, or send.
- Which fields? Identify the minimum data needed for that operation.
If a tool cannot be described within those four answers, it is probably too broad for production use.
Separate MCP tools, resources, and prompts
MCP exposes different primitives, and they should not inherit the same access rules.
- Tools perform actions, such as searching a knowledge base or creating a refund.
- Resources provide context or data, such as a file or record.
- Prompts are reusable message templates.
Treat the distinctions as security boundaries. A prompt template should not become a back door to a broader tool set. A resource URI should not expose a record simply because the client can construct a valid identifier. A tool should not inherit all resources visible to its host process.
For example, if an agent can use read_ticket and send_email, it may need to send a ticket summary by email. That does not imply permission to read every inbox message, draft a reply, or send to arbitrary recipients. The email tool should accept only the specific message content and approved recipients supplied by the workflow.
Put consent at the action boundary
Consent is easiest to understand when it describes a concrete result: “Allow this agent to create one ticket in Project 42,” not “Connect to Linear.”
Connection-level authorization is usually too broad for agentic systems. A single long-lived grant may authorize many future tools and resources, including actions the user never saw when they connected the server.
A stronger pattern is layered consent:
Layer 1: Server access
The client establishes an authenticated session with the MCP server. For remote HTTP deployments, the protocol documentation describes OAuth-based authorization, but OAuth by itself is not a complete authorization policy for individual tool actions.
Layer 2: Capability selection
The client requests or negotiates the narrow capabilities required for the current task. A read-only knowledge lookup should not inherit write tools from a customer-support workflow.
Layer 3: Action approval
Before a consequential tool call, the server evaluates the actual arguments and requests approval when required. The approval prompt should identify:
- the action;
- the target resource;
- the affected fields or values;
- the tenant or owner;
- any irreversible consequence.
Layer 4: Per-call enforcement
The server rechecks authorization when the call executes. Approval should bind to a specific action and resource, not be treated as a general invitation for subsequent calls.
For a founder, this design can still feel fast if low-risk operations are pre-approved within narrow limits. The important distinction is that pre-approval is itself a bounded permission, not an excuse to skip checks.
Use a consent token, not a vague “yes”
When the user approves a call, convert that approval into a short-lived, server-verifiable grant. Depending on your architecture, that grant might be a signed authorization object containing:
{
"subject": "user_123",
"client": "client_abc",
"action": "ticket.create",
"resource_type": "ticket",
"project_id": "project_42",
"argument_hash": "sha256:...",
"expires_at": "2026-07-28T12:05:00Z"
}
The exact implementation is yours, but the fields should express a concrete decision. Bind the grant to the action and target. If arguments change materially after approval, require approval again.
Avoid approving based only on a tool name. This grant says “create a ticket in project 42,” while the next call could create a ticket in another project or attach a file containing unrelated customer data. Include enough argument detail to make the approved operation unambiguous.
The grant should also expire. A short lifetime reduces the chance that an old approval becomes a reusable capability later in the session.
Validate every argument at the server boundary
The agent, host, and model are all outside the server’s trust boundary. Even if the client schema says that project_id must be a string, the server must enforce the rule and its meaning.
At minimum, validate:
- Types and shape: Reject malformed, oversized, or unexpected fields.
- Identifiers: Verify that referenced objects exist and are visible to the authorized principal.
- Ownership: Confirm that the resource belongs to the permitted tenant, project, or account.
- Field allowlists: Reject fields that the tool does not need.
- Value bounds: Restrict quantities, date ranges, recipient lists, file sizes, and similar limits.
- Operation consistency: Make sure a read tool cannot mutate and a create tool cannot overwrite an existing object.
Do not rely on a model-generated identifier to prove access. A model may hallucinate an ID, copy one from retrieved content, or be induced by injected instructions to select a different record. Resolve the identifier, load the resource under server-side authorization rules, and then act on the authorized object.
For collection-like arguments, apply a hard maximum. A tool that accepts an arbitrary list of IDs, paths, filters, or recipients is difficult to constrain after approval. Prefer bounded, operation-specific inputs.
Prevent one approval from exposing unrelated data
The most important control is often not the permission check. It is the response boundary.
Suppose the agent requests one support ticket. The server should not return the complete ticket history, every attachment, a full user profile, internal notes from unrelated cases, or a broad activity feed merely because those fields live in the same database.
Use output shaping:
- Select fields explicitly instead of serializing a database row wholesale.
- Exclude internal-only notes and metadata.
- Apply the same tenant and project filters to returned data that were applied to the request.
- Redact secrets, credentials, and sensitive identifiers.
- Limit pagination and total result counts.
- Return identifiers needed for follow-up actions, but avoid including them when they are not needed.
The same rule applies to nested data. A ticket object might contain a customer object, which might contain an organization object, which might contain unrelated contacts. A response DTO should be purpose-built for the tool rather than an automatically mapped database entity.
This is where many designs fail despite correct authentication. Authentication can confirm that the caller is a legitimate user, while the tool still leaks more data than the task requires.
Enforce least privilege inside the server, not only in the client
An MCP server should assume that any connected client may send unexpected tool names, malformed arguments, repeated calls, or calls made outside the intended workflow.
Start the server with the smallest credential set that can work. Prefer separate credentials for:
- read-only operations;
- writes;
- administrative operations;
- external sending or financial actions.
Then deny access by default and grant access per action and resource. Where useful, combine:
- role-based access for broad job duties;
- attribute-based checks for tenant, ownership, status, or time;
- relationship checks for access to a specific project or record.
No single model is sufficient everywhere. A role such as support_agent may identify what a person can do, while the project relationship determines which tickets they can touch.
Also avoid sharing one high-privilege credential among all users. The server should preserve the identity of the user or delegated principal and enforce permissions for that principal. Otherwise, one agent session may inherit the access of the server itself.
Add limits for non-deterministic callers
Traditional API rate limits still matter, but agent behavior adds a second dimension: a caller may make valid, correctly authorized requests in an unintended sequence.
Consider limits for:
- calls per action and resource;
- total calls per session;
- records returned per call;
- email or job recipients per call;
- consecutive writes to the same resource;
- aggregate spend for metered operations;
- sensitive operations without fresh approval.
Make these failures safe. Return a clear error that explains which boundary was reached without revealing sensitive details about other records.
A practical review checklist
Before shipping an MCP tool, ask:
Capability and resource
- Does each tool have one clear purpose?
- Are resources mapped to a tenant, project, account, or other ownership boundary?
- Are read and write operations separated?
- Can the server execute with a narrower credential than the product currently uses?
Consent
- Does the approval describe the action and target, not merely the server?
- Is consent bound to specific arguments or an argument fingerprint?
- Are consequential actions re-approved when material arguments change?
- Do grants expire?
Validation
- Are types, identifiers, ownership, field allowlists, and value bounds enforced server-side?
- Are nested and collection arguments bounded?
- Are unexpected fields rejected rather than ignored?
Data minimization
- Does the response contain only the fields needed for this operation?
- Are internal notes, secrets, and unrelated relations excluded?
- Are pagination and result sizes limited?
- Can an approved read become a data-export path through repeated calls?
Operations
- Is there logging of actor, client, action, resource, outcome, and approval reference without logging secrets?
- Are unusual sequences rate-limited or halted?
- Can a user revoke the session or grant?
- Can support staff reconstruct what was approved without replaying sensitive data?
What to do before launch
Start with your highest-value workflow and the smallest resource set it needs. For example, if the product promise is “answer support questions from one customer’s project,” the first release may need only:
- read access to project-scoped documentation;
- read access to a bounded set of ticket fields;
- one optional action to create a ticket in that same project.
Do not start by connecting the agent to the company’s entire support, messaging, and billing stack. Expand only after the authorization model has been exercised against real failure cases.
Then deliberately test the boundary cases:
- A valid user asks for a record outside their project.
- An approved tool call is replayed with a different resource ID.
- The model changes a recipient or amount after approval.
- A tool receives an oversized or unexpected argument.
- The underlying resource changes ownership between discovery and execution.
- A read response contains nested data that the user did not request.
- Two clients use the same MCP server but have different permissions.
These are architecture tests, not prompt tests. The expected result should be server-side denial, a narrow response, or a request for fresh consent—not a clever model refusal.
FAQ
Is OAuth enough for MCP tool access control?
No. OAuth can authenticate and authorize the connection to a remote MCP server, but it does not by itself define which resource a specific tool call may touch or which fields the response may contain. Those checks still belong in your server’s tool and resource authorization policy.
Should every MCP tool call require user approval?
Not necessarily. That can make the product unusable. Pre-approve narrow, low-risk operations within explicit limits, and reserve fresh approval for consequential actions, unusual arguments, or calls outside the pre-approved envelope.
Is a read-only MCP server safe by default?
Read-only reduces mutation risk but does not prevent data exposure. A read tool can still return unrelated tenants, excessive fields, secrets, attachments, or sensitive records. Resource checks and response shaping remain necessary.
Should tools accept resource IDs supplied by the model?
They can, but IDs are selectors, not proof of authorization. The server must resolve the ID and verify the caller’s access to the selected object before reading or changing it.
The founder’s bottom line
The commercially important question is not merely “does the agent have tools?” It is “can the product complete useful work without making every successful integration a potential data breach?”
Design the permission boundary around the smallest sellable workflow, bind consent to a concrete operation, validate arguments at the server, and shape responses for purpose. That work takes more engineering than adding a generic tool endpoint, but it protects customer trust and makes agent features easier to approve, operate, and expand.
If you are still selecting scopes, use the broader MCP server permission scope guide and then work through the permission scope audit checklist against your current tool inventory.







