🎥 The YouTube version is also available:
Ontology and MCP Servers | How AI Agents Decide Whether to Share a Document

When an AI agent can search internal documents, it can respond to a request like “Find this document.” When it can operate business systems, it can also handle a request like “Share this document with our partner.”
That introduces a new set of decisions.
Which version should be shared? Is the recipient participating in the project? Should they have view-only access? How long should that access remain valid? Who has the authority to approve the share?
MCP defines a common protocol for AI applications to connect to data and tools. An ontology defines what the documents, recipients, relationships, and actions available through those connections mean in the business domain.Connecting the two to runtime policy evaluation allows the system to assess an action proposed by an agent against the current state of the business.
What Is an Ontology?
An ontology is a model that makes the concepts, attributes, relationships, and their meanings explicit within a domain. For document sharing, an ontology might define DocumentVersion, Project, ExternalOrganization, ProjectMembership, and AccessGrant. OWL 2 is one ontology language that can formally describe classes, properties, individuals, and data values. W3C OWL 2 Overview
| What the model defines | Example in document sharing |
|---|---|
| Concepts | Document versions, projects, external organizations, project memberships, and access grants |
| Attributes | A document version’s sharing classification, a project membership’s expiration date, and the type of access granted |
| Relationships | A document version belongs to a project. An external organization participates in a project through a project membership. |
| Operations | Grant a specific recipient time-limited view access to a specific document version. |
A knowledge graph can record specific facts as relationships. For example, version 3 of a specification belongs to Project Alpha and is classified as eligible for external sharing. Company B holds an active membership in Project Alpha. The ontology defines what those relationships mean, and the knowledge graph represents facts about specific document versions and organizations.
This model lets the system evaluate “Company B is a business partner” and “Company B participates in this project” as separate facts. The same distinction applies to document versions. Version 4 requires its own sharing assessment, regardless of whether version 3 can be shared.
What Is an MCP Server?
MCP, or Model Context Protocol, is a protocol that allows AI applications to retrieve data from external systems and use their tools. The AI application acts as the Host, and an MCP Client within it communicates with an MCP Server. An MCP server exposes capabilities from systems such as a document management system or a project registry in a form that MCP clients can use. MCP Architecture
| What an MCP server can expose | Example in document sharing |
|---|---|
| Resources | Access to document metadata, sharing policies, and project registry information |
| Tools | Retrieve a specific document version, create a sharing request, or grant view access based on an approved request |
| Prompts | Reusable templates for reviewing external sharing requests |
A server can expose these capabilities according to its purpose. Tools have names and input schemas, and clients can discover and call the available tools. MCP Architecture
For example, the input schema for a document-sharing tool can require document_version_id, recipient_id, and expires_at. The schema helps verify that the required arguments are present. Determining whether that version can be shared with that recipient today requires business facts and rules, including the document’s sharing classification, the recipient’s project eligibility, and who has approval authority.
Use Case: Sharing Design Documents with a Development Partner
Suppose a project team member asks an agent, “Give our contact at Company B, our development partner, view access to version 3 of the Project Alpha specification until next Friday.”
Using the document management MCP server and the project registry, the agent identifies the document version, the recipient’s account, their organization, and the organization’s project membership. It resolves the deadline to a specific date and time with a time zone and includes it in the request.
Assume the following sharing policy applies.
| Verified conditions | Decision | Runtime action |
|---|---|---|
| Version 3 may be shared with the specified recipient, project membership is active, the requester has the required authority, and the requested expiration is within policy limits. | Act | Authorize execution for the specified document version, recipient, view-only permission, and expiration. |
| Sharing is permitted and project membership is active, and the document’s classification requires explicit approval from the document owner. | Ask | Request approval and include the supporting evidence, sharing scope, and expiration. |
| Version 3 is classified as internal only, project membership has expired, or the recipient’s organizational affiliation cannot be verified. | Stop | Withhold access and record the reason for stopping. |
For example, even if Company B is a development partner, the system pauses the share if the specified account appears to belong to another organization. The recipient’s affiliation must be verified before sharing can proceed. And even if the document is eligible for external sharing, a request for edit access requires approval that covers editing. Breaking “share this document” into a specific recipient, document version, permission, and expiration makes the decision criteria explicit.
Integrating Operational Ontology into the MCP Execution Path
At Chinoba, we call the implementation layer that connects business concepts and relationships to action preconditions and uses them in runtime decisions an Operational Ontology.
In this example, the grant_document_access tool maps to an operation that creates an AccessGrant. As tools for revoking access or editing documents are added, the model can describe what each tool changes and which object it affects. If several tools all grant view access to an external organization, for example, the same approval policy can apply to that business operation across all of them.
Diagram of the MCP and Decision Runtime workflow
The AI agent sends its sharing request to the MCP server, and the sharing tool routes the request through the Decision Runtime. The runtime evaluates it using the approved business model and policy, along with the current state of the document version and project membership. On Act, it issues a scoped permit for granting view access. On Ask, it requests approval from the document owner and reevaluates the request after approval. On Stop, it halts the share. The Decision Trace records the decision and what followed.
When the runtime returns Act, it issues a Command Permit that limits the target and scope of the operation. The component responsible for updating access verifies the permit at the execution boundary. The Command Permit is specific to this design and sits outside the MCP standard.
When a request returns from Ask, the runtime checks the approved request against the current state. Company B’s project membership may have expired while approval was pending, or the document’s sharing classification may have changed. If the document management system can also verify the relevant state versions when applying the access grant, it can detect changes that occurred between evaluation and execution.
The Decision Trace links the document version, recipient, state consulted and when it was retrieved, policy version, decision, approval, permit, and execution result. For example, if the runtime returned Act and the document management system failed to grant access, reviewers can verify both the decision that authorized the action and what actually happened.
Making “Share This Document” a Verifiable Decision
When reviewing an external share, the question goes beyond which tool was called. Which version was approved for sharing, with whom, under what conditions, and why?
MCP provides the connection to the tool. The ontology defines the meaning of the operation and its target. The Decision Runtime evaluates the request against the current business state and decides whether to authorize it, seek approval, or stop it. The Decision Trace preserves the evidence and outcome, turning document sharing into a business decision whose rationale can be verified later.
Chinoba
Intelligence as Relationship
Research Platform
founded by
Masao Watanabe
AI Systems Architecture
Decision Trace
Human–AI Coordination
Algorithmic Governance
Related Research
This topic is part of the Chinoba Knowledge Base.
コメント