/mcp-tutorials

How to assign trust levels or verification states inside MCP?

Learn how to assign trust levels in MCP. Our guide details steps to update system instructions, user profiles, documents, tasks, and tool access.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.

Book a free No-Code consultation

How to assign trust levels or verification states inside MCP?

 

Step 1: Understand the Components of MCP

 

  • Familiarize yourself with the core components of the Model Context Protocol (MCP), which include System Instructions, User Profile, Document Context, Active Tasks/Goals, Tool Access, and Rules/Constraints. Understanding these will provide a foundation for assigning trust levels or verification states.

 

Step 2: Define Trust Levels or Verification States

 

  • Decide on the specific trust levels or verification states you wish to implement for your application. Examples might include trusted, verified, unverified, or restricted. These will help in setting boundaries on how the model can access or interpret different contexts.

 

Step 3: Integrate Trust Levels within System Instructions

 

  • Modify the System Instructions to incorporate trust levels. This can be done by embedding rules within the instructions.

System_Instructions = {
    "role": "You are an LLM functioning as an assistant with different access levels.",
    "trust_levels": {
        "trusted": "Full access to tools and data.",
        "verified": "Limited access, with some restrictions.",
        "unverified": "Minimal access, review required before processing."
    }
}

 

Step 4: Incorporate Trust Levels into User Profiles

 

  • Embed trust information into the User Profile to ensure the model acknowledges user-specific permissions.

User_Profile = {
    "name": "John Doe",
    "preferences": ["financial analysis", "real-time updates"],
    "trust_level": "verified"
}

 

Step 5: Utilize Trust Levels in Document Context

 

  • When adding documents or knowledge bases, assign them a trust level to guide the model's access.

Document_Context = {
    "FinancialReport2023": {
        "content": "",
        "trust_level": "trusted"
    },
    "UserGeneratedContent": {
        "content": "",
        "trust_level": "unverified"
    }
}

 

Step 6: Define Trust Levels in Active Tasks/Goals

 

  • Set tasks with respective trust levels to ensure goals are aligned with permitted access.

Active_Tasks = {
    "task_1": {
        "objective": "Generate quarterly report",
        "trust_level": "trusted"
    },
    "task_2": {
        "objective": "Analyze user feedback",
        "trust_level": "verified"
    }
}

 

Step 7: Apply Trust Levels to Tool Access

 

  • Define which tools a model can or cannot call based on trust levels. Restrict or allow access as necessary.

Tool_Access = {
    "trusted_tools": ["database", "web scraper"],
    "verified_tools": ["basic analytics", "summarization"],
    "restricted_tools": ["social media API", "email sender"]
}

 

Step 8: Implement Rules/Constraints with Trust Levels

 

  • Add constraints that enforce the permissible actions for each trust level, ensuring compliance with defined boundaries.

Rules_Constraints = {
    "trusted": "Can access sensitive data and perform data modification.",
    "verified": "Can only read sensitive data, no modification allowed.",
    "unverified": "Cannot access sensitive data."
}

 

Step 9: Test the System for Compliance and Security

 

  • Validate the system by testing scenarios with different trust levels to ensure that the model adheres to the set rules and properly assigns verification states.

 

Step 10: Iterate and Update Trust Levels

 

  • Continuously monitor and refine trust levels and verification states according to changes in use cases or security requirements to maintain an effective context management system.

 

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022