On this page
What does MCP standardize?
Model Context Protocol defines a common interface between clients and servers that expose tools, resources and related capabilities. A client discovers and uses supported functions according to its negotiated capabilities. Protocol versions and transports evolve; the 2026-07-28 specification introduced a stateless core, multi-round-trip patterns and authorization refinements. None of this means that a tool is automatically safe, correct or authorized for a particular user. Protocol interoperability and enterprise policy compliance require separate verification.
Why is a general SQL tool risky for ERP?
Free-form model-generated SQL can misinterpret schemas, return misleading results and, if write access exists, cause difficult-to-reverse changes. Parameterized queries reduce injection exposure but do not solve record-level authorization. Prefer narrowly scoped read-only business operations: list delayed orders, retrieve warehouse stock, or find open quotations for a customer. Each tool enforces tenant, role, company, warehouse and record permissions server-side. Natural-language intent must not elevate privileges.
Role-based and record-level permissions
A request to show all customers does not become safe merely because the model narrows its query. The service must verify identity context and apply ERP record rules. Two users with the same role may have different access because of company or customer relationships. Document indexes and cached reports inherit the same distinction. An example that changes only the role name may miss leaks across companies or record owners.
How should tool schemas reflect business language?
Tool names should describe business actions rather than raw database tables. A scoped “retrieve authorized customer's open invoices” operation is easier to select and validate than an unrestricted search-read endpoint. Constrain dates, pagination, IDs and sort fields. Return typed, documented results and normalize missing values or business errors into stable error categories. Making a prompt longer cannot reliably compensate for an ambiguous API. Tool contracts are a software-engineering responsibility.
How should read and write workflows differ?
“Read inventory status” and “post an inventory adjustment” have different risk profiles. Reads emphasize authorization and factual correctness; writes may require approval, idempotency, business-rule checks and audit logging. Let the model propose a structured action plan, then have the application present and approve the exact arguments before execution. Revalidate if the record changes while approval is pending. Confirm outcomes through API responses and record versions rather than a model-generated success sentence.
Where should an MCP server sit?
An MCP server does not need to expose production database credentials to a language model. A safer pattern places MCP tools in front of a bounded ERP service layer. The service checks user identity, company context and request limits. Local stdio and remote HTTP transports serve different deployment needs; remote access needs deliberate authentication and transport security. Network policy, secret storage, rate limits and service isolation are architectural concerns. Available tools should be scoped to the caller and task.
Audit, traces and data privacy
Useful observability fields include call ID, caller identity, summarized arguments, target record, authorization decision and duration. Raw customer or invoice data should not be copied into every trace without need. Redact sensitive fields and define retention. Audit should represent operations actually executed, not the model's intended actions. Record rejected permissions and failed calls as well. Correlation IDs between ERP records and agent traces make incorrect-write incidents easier to investigate.
Acceptance testing an ERP agent
Unauthorised records, another company, missing fields and outdated record versions challenge the same ERP tool differently. Users sharing a role can also have different record access. Returning incorrect data from a read tool differs from an unwanted write. SQL that works on synthetic data may not represent actual ERP permissions and business rules. An understandable integration makes it possible to locate each control and see which operation is awaiting approval.
ERP record access that differs by user
Illustrative scenario; not a measured project result.
Consider an Odoo Community deployment. Sales staff should see their own customer orders; warehouse staff should query only authorized warehouse movements. Instead of unrestricted SQL generated by the model, expose scoped service tools that enforce filters and user rights. MCP can describe and connect these tools to the client. This is an illustrative architecture, not a claim about measured deployment results.
Where the protocol ends and business permissions begin
MCP can standardise how a tool is exposed and called, while ERP business rules decide who can see a customer’s invoices. Even a narrow schema can expose too much data if that boundary is lost. Read-write separation, record ownership and approval bound to transaction arguments remain application responsibilities alongside the protocol. The integration depends on keeping these two layers distinct.
Frequently asked questions
Does MCP enforce all business permissions?
No. Transport authorization and ERP record-level business permissions are separate layers.
Should an LLM run unrestricted ERP SQL?
Prefer narrowly scoped business tools with validation and audit.
Is MCP mandatory for agents?
No. Direct functions and service APIs remain options; MCP offers interoperability.