ARCHOS 525 BLUEPRINT · /d/dgm_llm-tool-calling-and-mcp
Tool Calling & Model Context Protocol (MCP Client, Host & Scoped Servers)
6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[](https://archos.sageideas.dev/d/dgm_llm-tool-calling-and-mcp) *Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_llm-tool-calling-and-mcp)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_llm-tool-calling-and-mcp" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Tool Calling & Model Context Protocol (MCP Client, Host & Scoped Servers) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
client_0["AI Host / Agent"]
n1_1[("Tool Registry & Schema")]
n2a_2["Policy & Approval PEP"]
n2b_3["Scoped MCP Servers"]
n3_4[("Audited Tool Output")]
downstream_5["Downstream & OTel"]
client_0 -->|"1. tools/list · MCP"| n1_1
n1_1 -->|"2a. Check ACL · OPA"| n2a_2
n1_1 -.->|"2b. tools/call · JSON-RPC"| n2b_3
n2a_2 -->|"3a. Log + cap · Audit"| n3_4
n2b_3 -->|"3b. Audit · Control"| n3_4
n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5COMPONENT STACK (6)
- AI Host / AgentSTATELESSMCP Client Runtime
- Tool Registry & SchemaSTATEFULStrict JSON Schema + OAuth scopes
- Policy & Approval PEPSTATELESSRead auto-allow · Write needs HITL
- Scoped MCP ServersSTATELESSStdio / Streamable HTTP backends
- Audited Tool OutputSTATEFULSize-capped, sanitized response
- Downstream & OTelSTATELESSConsumers, metrics & SLOs
REQUEST & DATA FLOW (6)
- AI Host / Agent → Tool Registry & Schema (tools/list)[MCP]
- Tool Registry & Schema → Policy & Approval PEP (Check ACL)[OPA]
- Tool Registry & Schema → Scoped MCP Servers (tools/call)[JSON-RPC]
- Policy & Approval PEP → Audited Tool Output (Log + cap)[Audit]
- Scoped MCP Servers → Audited Tool Output (Audit)[Control]
- Audited Tool Output → Downstream & OTel (Emit /)[OTLP/API]