Excellent question. A "Model Context Protocol" (MCP) is a fantastic concept that addresses a major challenge in AI development today: the lack of a standardized way to structure and manage the information fed to AI models.
Currently, every model provider (OpenAI, Anthropic, Google, etc.) has its own proprietary format for things like system prompts, tool use, and message history. An MCP would be a universal standard, much like HTTP is for the web.
Here’s a comprehensive breakdown of what an MCP could—and probably should—have, broken down into logical sections.
I. The Envelope / Core Metadata
This is the top-level information that describes the request itself, independent of the actual content. Think of it as the HTTP headers of the context packet.
protocol_version: e.g., mcp/1.0. Essential for any protocol to allow for future evolution without breaking existing implementations.
request_id: A unique identifier for this specific request, crucial for logging, tracing, and debugging.
session_id / thread_id: An identifier for the entire conversation or user session, allowing the system to link multiple requests together.
timestamp: ISO 8601 formatted timestamp of when the context packet was created.
origin: Information about the source of the request (e.g., web-app, mobile-client, internal-cron-job).
target_model_profile: Specifies the type of model this context is intended for, allowing the hosting system to route it correctly (e.g., chat-optimized, code-generation, highly-creative, tool-use-agent).
II. Contextual Payloads (The Content Blocks)
This is the core of the protocol—a structured list of content blocks that form the model's actual context. Each block would have a type and associated data.
type: "system_prompt": The high-level instructions, persona, and rules that govern the model's behavior for the entire session.
content: The text of the system prompt.
priority: An integer (e.g., 1-10) indicating how strictly the model should adhere to these instructions.
type: "message": Represents a single turn in a conversation.
role: user, assistant, system, or tool.
content: The actual text, image data, or structured content of the message.
redaction_map: A map of placeholders to actual PII. The context sent to the model would contain [USER_EMAIL], and the system would swap it back in the response.
policy: redact_all, allow_specific_fields.
data_handling_policy: Instructions for the model provider's infrastructure.
logging: do_not_log, log_anonymized.
retention: ephemeral, retain_for_30_days.
origin_trust_level: A rating of how much the model should trust the user input (e.g., trusted_internal_user vs. untrusted_public_user). This can be used to tune defenses against prompt injection.
Example in a YAML-like format:
yaml
protocol_version: mcp/1.0
request_id: req_abc123
session_id: session_xyz789
target_model_profile: tool-use-agent
directives:
response_schema:
type: object
properties:
city: { type: string }
temperature: { type: number }
unit: { type: string, enum: ["celsius", "fahrenheit"] }
forecast: { type: string }
required: ["city", "temperature", "unit", "forecast"]
allowed_tools: ["get_weather"]
security:
origin_trust_level: trusted_internal_user
pii_directives:
policy: redact_all
payloads:
- type: system_prompt
content: "You are a helpful weather assistant. You are concise and always use the tools provided."
- type: tool_definition
tool_name: get_weather
description: "Gets the current weather for a given city."
parameters:
type: object
properties:
city: { type: string, description: "The city, e.g., San Francisco" }
unit: { type: string, enum: ["celsius", "fahrenheit"], default: "celsius" }
required: ["city"]
- type: message
role: user
content: "What's the weather like in New York?"
timestamp: "2023-10-27T10:00:00Z"
By creating a rich, layered protocol like this, an MCP would make AI systems more interoperable, observable, secure, and powerful. It would shift the complexity from ad-hoc prompt engineering to a more structured, engineering-driven discipline.