ULTIMATE GUIDE27 min read

Model Context Protocol Architecture: Enterprise Guide

A practical guide to secure MCP gateways, scoped credentials and smaller tool contexts in enterprise AI systems.

P
PADISO teamPublished 6 Nov 2026

Model context protocol architecture determines how AI applications discover and use tools, data and workflows. For an enterprise, the main design choice is not simply which MCP servers to connect, but how to put identity, policy, observability and context control between agents and those servers. A central gateway can help, provided it does not become a new point of excessive privilege or a single failure domain.

If you are assessing an MCP build, start with the business workflow and its risk, then select the protocol and hosting pattern that fit. PADISO’s MCP server development service covers the design and implementation of MCP integrations, while our AI automation service focuses on production agent workflows and controls.

Table of contents

  • What is MCP architecture?
  • What changes when you move from a prototype to enterprise use?
  • Should you use a central MCP gateway?
  • How should credentials and identity flow?
  • How do you reduce context bloat?
  • How should you design tool access and policy?
  • What should you log and monitor?
  • How do you choose a transport and deployment model?
  • How do you implement MCP architecture?
  • What does good MCP architecture look like in practice?
  • What mistakes should you avoid?
  • Where PADISO fits
  • Next step

What is MCP architecture?

The Model Context Protocol, or MCP, is an open protocol that standardises how an AI application connects to tools and contextual information. Its architecture separates the application coordinating the AI from the connectors that expose capabilities and the systems that ultimately hold data or perform actions. The official MCP architecture documentation describes the protocol’s actors and how they relate.

A typical deployment has three roles:

  • Host: The application or agent runtime that coordinates the conversation, model calls and user interaction.
  • Client: A component inside the host that speaks MCP to a particular server.
  • Server: A service that exposes capabilities, commonly tools, resources or prompts.

A tool is an operation the model can request, such as searching a support system or creating a draft. A resource is information that can be read through an agreed interface. A prompt is a reusable template or workflow instruction. These distinctions matter because each capability has different permissions and risks. Reading a policy document is not the same as issuing a refund, even if both are exposed by the same server.

MCP standardises the connection. It does not by itself decide whether a user is allowed to call a tool, whether a tool response contains sensitive information, how an action is approved, or how the model should behave when a request is ambiguous. Those are responsibilities of the application and the wider system architecture.

That boundary is easy to miss. A working MCP connection proves that messages can move between components. It does not prove that the connection is safe, resilient, observable or appropriate for a business workflow.

The control plane and the execution plane

It helps to think in two planes:

  • Control plane: Decides which servers and tools are available, which identities may use them, what policies apply and how changes are approved.
  • Execution plane: Handles a particular request, obtains authorised access, calls the tool and returns the result.

Some products combine these functions. Your design should still distinguish them. A change to the catalogue of available tools should go through controlled release and review. A tool call should be checked at run time against the caller, the operation and the data involved.

A useful mental model is that an MCP server is an interface, not an authority. The server should not become the place where every security, business and governance decision is improvised. Define those decisions in the system around it.

What changes when you move from a prototype to enterprise use?

A prototype often runs locally, connects a single user to a small number of services and uses test data. That can be the right way to learn. Enterprise use introduces different requirements: multiple users, different permission levels, real customer or business data, operational support, audit evidence and the need to control changes.

The topology often changes too. In a simple setup, each agent connects directly to each MCP server. As the number of agents and services grows, teams must configure more connections and manage more credentials. The resulting network can be difficult to understand, especially if each team chooses its own server, authentication pattern and logging approach.

The problem is not that every direct connection is wrong. A tightly scoped internal application with a small number of well-controlled integrations may not need a separate gateway. The problem is unmanaged growth. If teams cannot answer which agent can reach which service, with what identity and under what policy, the design is not ready for wider deployment.

Production questions to answer first

Before selecting a gateway or building more servers, document the following for each workflow:

  1. Who is asking? Is the caller an employee, customer, service identity or another agent?
  2. What is the agent allowed to do? Separate read, draft, approval and write operations.
  3. Which data can be returned? Classify sensitive fields and define filtering or redaction rules.
  4. Which systems are in scope? Include upstream APIs, databases, identity providers and model services.
  5. What happens when a call fails? Decide whether to retry, ask the user, fall back to a human or stop.
  6. What evidence is needed? Identify the audit trail, retention and incident response requirements.
  7. Who owns the integration? Name the team responsible for schemas, access, testing and support.

For Australian organisations, these are also practical governance questions. The OAIC’s guidance on privacy and AI should inform decisions about personal information, while regulated organisations need to consider their applicable regulatory obligations and internal controls. Do not assume that using a protocol or a cloud service transfers accountability away from the organisation.

A simple risk classification

Classify tools by the consequences of a mistaken or unauthorised call, not by how technically difficult they are to build.

Risk class Example capability Suggested default control
Low Search approved public or internal reference material Read-only access, source filters and normal logging
Moderate Retrieve customer, finance or operational records User-specific authorisation, field-level filtering and access logs
High Change records, issue credits or update permissions Narrow scopes, explicit confirmation, idempotency and stronger review
Critical Initiate payments, change security controls or make regulated decisions Avoid autonomous execution unless a specific, approved control design supports it

This table is a starting point, not a substitute for your risk assessment. A search tool can still be high risk if it returns sensitive data broadly. A write tool can be lower risk if it only creates a reversible draft that a person must approve.

Should you use a central MCP gateway?

A central MCP gateway sits between hosts and upstream MCP servers or business APIs. It can act as a routing point, policy enforcement point and observability layer. The Kong overview of MCP gateways explains the gateway pattern and why organisations use it to manage connections to tools.

A gateway is useful when it solves a real coordination problem. It should not be adopted merely because a central diagram looks cleaner. If the gateway receives every request, it also becomes a critical dependency. It needs clear ownership, reliable operations, security controls and a failure strategy.

What a gateway can do

A well-designed gateway can:

  • Present a consistent connection point to approved agents.
  • Route requests to the correct upstream server or API.
  • Enforce identity, authorisation and tool-level policy.
  • Limit which tools each user, team or agent can discover.
  • Translate an existing service interface into an MCP-compatible tool where appropriate.
  • Apply rate limits and request-size limits.
  • Record structured audit events and trace identifiers.
  • Support controlled changes to tool definitions and server versions.

A gateway can also simplify client configuration. Instead of each agent maintaining its own list of internal endpoints, the organisation can manage access through a smaller number of governed entry points. This is valuable only if permissions remain specific. One shared endpoint must not become one shared identity with broad access.

What a gateway should not do

Avoid treating the gateway as a universal wrapper that makes every backend capability safe by default. It cannot reliably fix a vague tool definition, an over-privileged upstream account or an agent allowed to invoke destructive actions without review.

A gateway should not:

  • Pass an incoming bearer token to an unrelated downstream service without a deliberate token design.
  • expose every available tool to every caller simply because it is easier to configure.
  • make policy decisions using only a tool name when the action and data scope also matter.
  • store long-lived secrets in client configuration or prompt text.
  • turn untrusted tool descriptions into trusted system instructions.
  • hide failures or transform audit records so that the actual upstream action is unclear.

Gateway or direct connection?

Use direct host-to-server connections when the system is small, the boundary is clear, identities are isolated and central policy is not a requirement. Consider a gateway when many hosts need similar controls, tool access crosses teams, you need central audit and routing, or secret management is becoming inconsistent.

Decision factor Direct connections may fit A gateway is worth considering
Number of clients and services A few known integrations Many agents, teams or upstream systems
Credential management Each connector has a narrow, managed identity Credentials are duplicated or difficult to rotate
Audit needs Application-level logs are sufficient A consistent cross-tool audit trail is needed
Policy Permissions are simple and local Access depends on identity, role, data or action
Operations One team owns the full path Separate teams own agents, platforms and services
Availability A local integration failure is contained Shared routing, failover and operations are planned

There is no need to centralise every tool on day one. A good path is to start with a gateway for high-value shared integrations, then add services when the gateway demonstrably improves control or reuse.

A reference topology

A practical enterprise flow can look like this:

User or workload identity
          |
          v
Agent host and MCP client
          |
          v
Enterprise MCP gateway
  | identity and policy checks
  | tool catalogue and routing
  | audit and trace events
  | scoped credential retrieval
          |
          +------> Approved MCP server
          |              |
          |              +------> Business API or data service
          |
          +------> Direct API adapter where appropriate

The gateway can route to an MCP server, or it can expose an existing service through a carefully designed adapter. Keep the business service as the authority for its own data and business rules. The gateway should enforce cross-cutting controls, not duplicate the business logic in a way that becomes stale.

How should credentials and identity flow?

Credential isolation is one of the most important parts of MCP architecture. The agent needs enough authority to complete a task, but should not receive unrestricted access to every system behind the tools. The secret used to call a backend should be held and used by a trusted server-side component, not copied into prompts, chat history or a developer’s local configuration.

The official MCP specification documents protocol requirements and security considerations. Treat it as a starting point for implementation. Then assess the complete identity flow across your host, gateway, identity provider, MCP server and business service.

Do not confuse identity with a secret

An identity tells you who or what is making a request. A credential proves or represents that identity to another system. A permission says what that identity may do. Keep these concepts separate in the design.

For each call, decide whether the system needs to act as:

  • The user: The action is performed under the user’s own access rights.
  • A service identity: The action is performed by the application, within a fixed and limited permission set.
  • A delegated identity: A service acts on a user’s behalf under a defined, limited authority.

The right choice depends on the workflow. A reporting agent might read a service-owned catalogue of approved metrics. A customer support agent may need to retrieve only the records the signed-in support worker is allowed to see. Do not silently replace user-level access with a broad service account just because it makes the connector easier to build.

Use the gateway as a credential boundary

A useful pattern is for the host to authenticate to the gateway, and for the gateway to obtain or retrieve the specific downstream credential required for the requested operation. The gateway then calls the upstream service and returns only the permitted result.

At a high level:

  1. The host presents a verifiable user or workload identity to the gateway.
  2. The gateway checks whether that identity can discover and invoke the requested tool.
  3. The gateway evaluates relevant attributes, such as team, role, tenant, operation and data scope.
  4. The gateway obtains a downstream credential with the narrowest practical permissions.
  5. The gateway calls the upstream service and applies response filtering where required.
  6. The gateway records an audit event that links the caller, tool, decision and outcome.

Where OAuth is used, design token audiences and scopes deliberately. A token intended for one resource should not be treated as a general-purpose pass to other services. For delegated access, a token exchange pattern can help separate the identity presented at the gateway from the authority needed at the downstream service. Confirm support and behaviour with your identity provider and each resource server. Protocol names do not guarantee that the whole chain is configured correctly.

Keep secrets out of model context

Never put API keys, database passwords or long-lived access tokens in a tool description, prompt, tool result or model-visible configuration. Keep secrets in a managed secret store or identity service. Restrict which runtime can retrieve each secret, record access and define rotation and revocation procedures.

Also consider what the model receives after authentication. A successful access check does not mean every returned field belongs in the context window. Filter records before they reach the model. Mask or omit fields that are not needed for the task. Keep the tool response small and purposeful.

Design for revocation and tenant boundaries

Access has to be removable. Define how to revoke a user’s access, disable a compromised agent, rotate a secret and block an upstream tool. Test those actions rather than assuming that a control exists because the identity platform offers it.

For multi-tenant systems, ensure every request carries a reliable tenant context and that the server checks it. Do not rely on the model to select the correct tenant or to remember a tenant identifier in conversation history. Derive the tenant from a trusted identity or request boundary and enforce it at the backend.

How do you reduce context bloat?

Context bloat happens when tool definitions, descriptions and data consume space the model needs to understand the request and produce a useful answer. It can also make tool selection harder. The exact token cost depends on the schemas, model and client implementation, so measure it in your own system rather than assuming a universal figure.

A common cause is loading the full catalogue of tools into every model call. If a host makes many tools available at once, their names, descriptions and parameter schemas may become part of the model’s working context. Even tools that are irrelevant to the current task can add noise and increase the chance that the model selects the wrong capability.

Measure the baseline before optimising

For a representative set of tasks, record:

  • Number of tools offered to the model.
  • Tokens used by tool definitions and system instructions.
  • Total input tokens before user content and retrieved data.
  • Tool selection accuracy, including incorrect or unnecessary calls.
  • Latency from request start to answer, broken down by model and tool calls.
  • Failure and retry rates.
  • How often the system asks for clarification or returns an incomplete result.

Compare like with like. A shorter prompt is not automatically better if it removes information needed for safe decisions. The goal is to make the right capability available with enough detail at the point it is needed.

Use progressive discovery

Instead of exposing a large catalogue immediately, expose a small set of useful categories or a discovery tool. The agent can identify the likely domain, request the relevant schema and then make the call. This is often called deferred or just-in-time tool loading.

For example, an employee asking for a project status update may need a project search tool and a read-only issue summary. The agent does not need payroll, customer billing and access-management schemas in the same request. A discovery step can make relevant tools available only after intent is established.

Design the discovery flow carefully:

  1. Start with a concise set of tool categories or an explicit search capability.
  2. Return a small number of candidate tools with short descriptions.
  3. Load the full schema only for the selected capability.
  4. Ask the model to clarify if the request maps to several plausible tools.
  5. Apply the same access checks during discovery and execution.
  6. Keep a record of what was available when a decision was made.

Do not let discovery become an unfiltered search across every internal API. Search results should respect identity and policy. Otherwise the discovery mechanism can reveal names, functions or data domains the user should not know about.

Group tools around user tasks

Good tool design reflects tasks, not just backend endpoints. A tool named get_customer_record is more useful than a generic database query if the agent’s job is to retrieve a permitted summary. A tool that combines several safe reads can reduce unnecessary orchestration, but it must have a clear purpose and bounded output.

Avoid one tool for every tiny API operation if the agent has to chain many calls to complete a normal task. Avoid the opposite extreme too: a generic run_any_query tool can be difficult to secure and audit. Choose an interface that captures the intended business action and constrains the inputs.

Keep descriptions and results concise

Write descriptions to tell the model when to use a tool, what it does and what it must not do. Remove marketing language, implementation notes and duplicated instructions. Put long operational guidance in developer documentation or workflow logic, not in every tool description.

Shape tool outputs around the decision the model needs to make. Prefer a summary with stable fields to a full database row or a large document dump. Include identifiers needed for follow-up actions, but omit unrelated data. If a source is large, retrieve a targeted excerpt or structured result rather than sending the full source into the conversation.

Choose the right context strategy

Strategy How it works Useful when Main trade-off
Curated tool sets Each agent receives a small, fixed set of tools Workflow and permissions are predictable Requires maintaining multiple tool sets
Deferred schema loading Full schema is provided only after intent or category selection There are many tools but clear domains Adds a discovery step and may need clarification
Search-based discovery A discovery tool finds relevant capabilities from a catalogue Users ask varied questions across domains Search quality and access filtering need testing
Workflow-specific tools One tool performs a bounded business task The process has clear rules and inputs Less flexible than composing low-level tools
Model or agent routing A dispatcher selects a specialised agent or tool group Requests span distinct business domains Adds routing complexity and another point to evaluate

A practical starting point is a curated tool set for each production workflow. Add discovery only when teams can show that users need broader access and that search can reliably limit results. Use a specialised model or agent only when its benefits outweigh the extra latency, cost and failure modes.

How should you design tool access and policy?

Tool policy should be explicit, testable and enforced outside the model. A model can interpret a user’s request, but it is not an access-control system. The gateway, MCP server or underlying service must reject unauthorised calls even when the model asks for them.

Separate read, draft and commit

A useful pattern is to separate actions by consequence:

  • Read: Retrieve approved information.
  • Prepare: Create a proposed change, draft or preview without committing it.
  • Commit: Make the change in the authoritative system.

This gives the user or application a meaningful review point. For example, an agent may draft a ticket update and show the proposed text before a separate confirmation triggers submission. The confirmation should be tied to the specific action and data, not treated as blanket approval for future actions.

Use least privilege at multiple layers

Least privilege means granting only the access needed for the specific job. Apply it at several points:

  • Host: Only the appropriate agent or workflow can invoke the integration.
  • Gateway: Only permitted tools are discoverable and callable by the identity.
  • MCP server: Validate inputs, user context and action permissions.
  • Upstream service: Use a restricted service identity or delegated access.
  • Data response: Return only the fields and records needed.

A tool should validate its own inputs. Do not trust the model to provide a safe identifier, a valid amount or the right account. Apply schema validation, business rules and server-side checks. For state-changing operations, consider idempotency so a retry does not repeat an action unexpectedly.

Treat tool metadata as untrusted input

Tool names, descriptions and results can influence model behaviour. Review changes to them like code changes. A compromised or poorly governed server could supply misleading instructions in metadata or return content that attempts to redirect the agent.

Reduce this risk by:

  • Allowlisting approved servers and controlling who can publish or update tools.
  • Reviewing descriptions and schemas before production release.
  • Keeping tool instructions separate from trusted system policy.
  • Treating retrieved content as data, not as authority to override rules.
  • Testing prompt-injection cases in tool results and descriptions.
  • Giving the agent only the tools needed for the current workflow.

The Trail of Bits discussion of MCP tool poisoning is a useful prompt to include tool metadata and gateway controls in your threat model. The principle is broader than MCP: instructions arriving from an external tool or data source should not be treated as trusted policy.

Define approval thresholds

Human approval is useful when an action is consequential, difficult to reverse or outside a well-tested boundary. It is not a universal safety layer. If the approval screen is vague, reviewers cannot assess the action. If a human approves dozens of low-value prompts, they may stop paying attention.

For each write operation, define:

  • What exact data or change the reviewer sees.
  • Which roles can approve it.
  • Whether the requester can approve their own action.
  • What happens if the underlying record changes before approval.
  • How approval is recorded and linked to execution.
  • Which actions remain blocked even with approval.

What should you log and monitor?

A production MCP system needs an audit trail that can answer who or what requested an action, what tool was called, what policy decision was made and what happened next. A log that records only “tool call succeeded” is not enough to investigate an incident or diagnose an incorrect result.

At minimum, consider recording:

  • Correlation ID for the user request and agent run.
  • Authenticated user or workload identity, subject to privacy controls.
  • Tool name, server and version.
  • Policy decision and relevant reason code.
  • Sanitised input parameters and a reference to the output where appropriate.
  • Upstream service and response status.
  • Start time, duration, retries and failure category.
  • Whether the call was read-only, a draft or a committed action.
  • Human approval details where applicable.

Do not log secrets or unrestricted sensitive payloads simply to improve debugging. Decide what must be logged, what should be redacted, who can access logs and how long records should be retained. For personal information, align logging with your organisation’s privacy and retention requirements.

Trace the full request path

A useful trace connects the user request to the model call, tool selection, gateway decision and upstream operation. This makes it possible to distinguish a model reasoning problem from a permission denial, network issue, bad schema or upstream service failure.

Monitor both system performance and behaviour. Operational measures include latency, errors, availability and saturation. Agent measures include tool selection, unnecessary calls, retries, policy denials and task completion quality. Define what “good” means for the workflow before launch. Otherwise teams may optimise for fewer errors while missing unsafe or incomplete behaviour.

Establish an incident response path

Assign an owner for disabling a tool or credential quickly. Document how to stop a problematic agent, block a server, revoke a token, investigate affected records and notify relevant stakeholders. Run a tabletop exercise before the integration handles material business data or actions.

How do you choose a transport and deployment model?

MCP transport determines how messages travel between a host and server. Local standard input and output, commonly called stdio, can be convenient for development tools that launch a local process. Remote deployments typically need a network transport, commonly Streamable HTTP in current MCP implementations. Check the current MCP protocol documentation and the exact support in your host, server and gateway before choosing.

Local stdio

A local process can suit an individual developer, a test harness or a desktop workflow that needs access to local files. It is not automatically suitable for a shared enterprise service. You need to understand the machine’s trust boundary, how the process receives secrets, what it can access and how it is updated.

For production use, avoid relying on unmanaged developer laptops as the only place where important credentials or policy reside. If a local tool is necessary, constrain its filesystem and network access, use managed device controls and separate development credentials from production access.

Remote Streamable HTTP

A remote server can run in a controlled network environment and be accessed by multiple clients. This supports central operations, deployment controls and service-level monitoring. It also creates network-facing security responsibilities: authenticate callers, authorise requests, validate origin and transport behaviour as applicable, protect the endpoint and manage availability.

Do not assume that placing a server behind an API gateway automatically secures MCP semantics. Confirm how the gateway handles sessions, streaming, errors, request limits and authentication. Test the complete client-to-tool flow with the host products you plan to support.

Deployment choices

Possible hosting patterns include a container service, a Kubernetes cluster, a serverless runtime or a managed gateway. Choose based on operational needs, not fashion. Consider network access to upstream systems, scaling behaviour, secret access, audit collection, deployment ownership and recovery from failure.

A central gateway can be highly available while individual tool servers remain isolated. This is often safer than combining every integration into one large process. Keep failure domains understandable: an issue with a document search connector should not take down every critical workflow.

Version and change management

Treat schemas and tool descriptions as interfaces. Version changes, test backwards compatibility and communicate deprecations. A seemingly small change to a parameter name or tool description can alter how an agent chooses and calls a tool.

A release process should include:

  1. Schema and permission review.
  2. Automated tests for valid, invalid and boundary inputs.
  3. Security review for new network or data access.
  4. Evaluation of tool selection and response quality.
  5. Staged deployment and a rollback path.
  6. Monitoring after release for changed call patterns and failures.

How do you implement MCP architecture?

Use a staged plan that proves the boundary before expanding the catalogue. The first milestone is not “connect every system”. It is one safe, measurable workflow that demonstrates identity, policy, context control and operational ownership.

Stage 1: Select a workflow

Choose a workflow with a real user need, bounded data and a clear owner. Prefer a task where the model can assist without immediately making an irreversible decision. Write down the user, expected outcome, systems, data classification and failure path.

Score candidates against value and delivery risk. Ask whether the task happens often, whether the inputs and outputs are understood, whether a human can verify the result and whether access can be limited. Avoid starting with an impressive but ambiguous use case that crosses many systems and teams.

Stage 2: Map the trust boundaries

Draw the host, model provider, gateway, identity provider, MCP server, upstream service and logging platform. For each connection, document:

  • Which identity is presented.
  • Which information crosses the boundary.
  • Which secrets are available to the component.
  • Which team operates it.
  • What is trusted and what is treated as untrusted input.

This diagram often reveals that a proposed “simple connector” actually crosses several security and ownership boundaries.

Stage 3: Define the tool contract

Design the smallest useful tool set. Write each tool’s purpose, input schema, output schema, permissions, side effects and failure behaviour. Decide which fields are required, what validation occurs and whether the tool is read-only or changes state.

Do not expose a database connection merely because a model can generate a query. If a task can be handled with a constrained business operation, expose that operation. Put data access rules close to the service that owns the data.

Stage 4: Build identity and policy first

Before connecting production records, establish caller authentication and downstream access. Test permitted and denied cases, including revoked users, wrong tenants and malformed requests. Verify that a model-visible request cannot bypass server-side policy.

Keep development and production environments separate. Use non-production credentials during development. Document how credentials are issued, stored, rotated and revoked.

Stage 5: Add context controls

Start with a narrow catalogue. Measure token use and task quality. Add progressive discovery only when the initial tool set cannot support the workflow. Keep outputs limited to the information needed for the next decision.

A useful test is to compare the same tasks with the intended tools and with an unnecessarily broad catalogue. Look at correct tool choice, unnecessary calls, latency and final task quality. Record failures rather than relying on a single successful demo.

Stage 6: Test security and failure behaviour

Test more than the happy path. Include:

  • A user asking for data outside their permissions.
  • A tool result containing hostile or misleading instructions.
  • An invalid or incomplete tool argument.
  • An upstream timeout or partial response.
  • A repeated request after a timeout.
  • A revoked token or disabled account.
  • A cross-tenant identifier.
  • A gateway or server restart during a request.

For actions that change data, verify that retries do not cause duplicate effects and that the user can tell whether an action completed.

Stage 7: Operate a limited release

Release to a defined group and monitor real usage. Review denied requests, model confusion, unexpected tool selection, latency and support incidents. Keep a named owner who can change access or disable the tool. Expand only after the system behaves predictably and the operating team understands its failure modes.

A practical 30/60/90-day plan

Period Focus Deliverables
First 30 days Scope and design Use case, data classification, threat model, tool contract and architecture decision
Days 31 to 60 Build and test Authentication, least-privilege access, MCP server or gateway path, evaluation set and audit events
Days 61 to 90 Controlled release Limited rollout, operational runbook, incident exercise, quality review and expansion decision

These are planning stages, not guaranteed delivery durations. Actual timing depends on access to systems, identity integration, data quality, procurement and the complexity of the workflow.

What does good MCP architecture look like in practice?

Consider an internal operations assistant that answers questions about service incidents and can prepare a ticket update. A weak design gives the model broad access to the incident platform, knowledge base and change system through one shared credential. It loads all tools for every request and returns raw records without filtering.

A stronger design starts with the signed-in employee’s identity. A gateway or application layer checks which incident records that person can access. The assistant receives a small set of read tools for incident search and approved documentation. It retrieves only the fields needed to answer the question. If the user asks to update a ticket, the system prepares a proposed change and shows it for review. A separate authorised action commits the update.

The design also defines what happens when no incident matches, when two records look similar or when the service is unavailable. The agent asks for clarification rather than guessing. Every tool call has a trace ID, and the audit record identifies the caller, the operation and whether a change was committed. Tool definitions are versioned and reviewed before release.

The core benefit is not a clever protocol trick. It is that each layer has a clear job:

  • The model interprets the request and proposes a suitable next step.
  • The host manages the conversation and user experience.
  • The gateway or application layer applies cross-cutting access and routing policy.
  • The MCP server validates and executes a bounded capability.
  • The system of record remains authoritative for business data and rules.
  • Monitoring and audit support operational review.

That division makes it easier to test, explain and change the system. If the agent selects the wrong tool, you can adjust the catalogue or routing. If access is too broad, you can change the policy or upstream identity. If the response is too large, you can improve the server output. Avoid solving every problem by adding more instructions to the prompt.

What mistakes should you avoid?

Making one shared agent identity do everything

A broad service account is convenient, but difficult to limit and attribute. Use narrowly scoped identities and preserve the initiating user or workload context where the task requires it. A gateway should not erase the distinction between callers.

Exposing the entire internal API surface

An API being available does not mean it should become a model tool. Select operations for a user task, specify safe inputs and outputs, and keep administration endpoints out of the agent’s reach unless there is a clear, approved need.

Treating a tool call as safe because it is valid JSON

Schema validation checks shape, not business intent. The server still needs to check ownership, ranges, state transitions and permission. A syntactically correct request can still be unauthorised or harmful.

Relying on prompt instructions as the main safeguard

Prompts can guide behaviour but should not be the only barrier to an unauthorised action. Enforce permissions in code and services. Assume that the model may misunderstand, be influenced by hostile content or choose a tool unexpectedly.

Logging everything

Full payload logging can expose secrets and sensitive records. Log enough to explain decisions and investigate incidents, while minimising or redacting content that does not need to be retained.

Centralising without an operational plan

A gateway can reduce inconsistency, but it also creates a dependency. Define ownership, availability targets, monitoring, change control and a way to disable or bypass a failing integration safely. Consider whether one gateway failure could affect unrelated workflows.

Optimising for tool count alone

A low number of tools is not the goal. The goal is a small, comprehensible set that gives the agent the capability required for the task. Sometimes a well-designed workflow tool is better than several low-level operations. Sometimes a small specialist set is more maintainable than one oversized tool.

Skipping evaluation after changes

Changes to a schema, description, model or prompt can change tool selection. Keep a representative evaluation set and rerun it when these interfaces change. Include normal requests, edge cases, denied requests and attempts to manipulate the agent through retrieved content.

Where PADISO fits

PADISO helps teams design MCP servers and gateways, connect tools to production systems and establish the architecture around identity, policy and operations. Our platform engineering team can help assess how MCP fits your existing service architecture, while our AI strategy service helps prioritise the workflows worth building first. A sensible first step is a focused review of one workflow, its data boundaries and its current integration design.

Next step

Choose one candidate workflow and write down its user, data, permitted actions and failure path. If you want help assessing whether the foundations are ready, take the PADISO AI readiness test.

WANT TO TALK THROUGH YOUR SITUATION?

Talk it through with us. Thirty minutes, no slides.

P
Written by the PADISO TeamSydney-based technology leaders who build what they advise on. Seven years of fractional CTO, architecture and AI work for enterprise, government and private equity.

Keep reading

All posts →

Let's talk.

Tell us what you are weighing up, whether it is a build, a roadmap or a deal. You will leave the call knowing your next step.

Book a 30-min callhi@padiso.co