Skip to main content
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
[![Tool Calling & Model Context Protocol (MCP Client, Host & Scoped Servers) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_llm-tool-calling-and-mcp/opengraph-image)](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_5

COMPONENT STACK (6)

  • AI Host / AgentSTATELESS
    MCP Client Runtime
  • Tool Registry & SchemaSTATEFUL
    Strict JSON Schema + OAuth scopes
  • Policy & Approval PEPSTATELESS
    Read auto-allow · Write needs HITL
  • Scoped MCP ServersSTATELESS
    Stdio / Streamable HTTP backends
  • Audited Tool OutputSTATEFUL
    Size-capped, sanitized response
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. AI Host / Agent → Tool Registry & Schema (tools/list)[MCP]
  2. Tool Registry & Schema → Policy & Approval PEP (Check ACL)[OPA]
  3. Tool Registry & Schema → Scoped MCP Servers (tools/call)[JSON-RPC]
  4. Policy & Approval PEP → Audited Tool Output (Log + cap)[Audit]
  5. Scoped MCP Servers → Audited Tool Output (Audit)[Control]
  6. Audited Tool Output → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →