Skip to main content
ARCHOS 525 BLUEPRINT · /d/dgm_int-tool-gateway

Tool Execution Gateway Internals (MCP Policy, Sandbox & Idempotency)

6 COMPONENTS · 6 FLOWS · UPDATED 2026-11-24
GITHUB README / PR PREVIEW CARD
[![Tool Execution Gateway Internals (MCP Policy, Sandbox & Idempotency) — ArchOS Architecture](https://archos.sageideas.dev/d/dgm_int-tool-gateway/opengraph-image)](https://archos.sageideas.dev/d/dgm_int-tool-gateway)

*Interactive architecture diagram powered by [ArchOS Studio](https://archos.sageideas.dev/d/dgm_int-tool-gateway)*
NOTION / DOCS / CONFLUENCE EMBED
<iframe src="https://archos.sageideas.dev/embed/dgm_int-tool-gateway" width="100%" height="580" style="border:1px solid rgba(240,236,225,0.14);border-radius:6px;" loading="lazy" title="Tool Execution Gateway Internals (MCP Policy, Sandbox & Idempotency) — Interactive in ArchOS"></iframe>
PORTABLE MERMAID SPEC (GITHUB / NOTION / RFC)
flowchart LR
  client_0["Autonomous Agents"]
  n1_1["MCP Tool Gateway"]
  n2a_2["Policy & Approval Gate"]
  n2b_3[("Idempotency & Budget")]
  n3_4[("Isolated Connectors")]
  downstream_5["Downstream & OTel"]
  client_0 -->|"1. Call tool · JSON-RPC"| n1_1
  n1_1 -->|"2a. Check auth · gRPC"| n2a_2
  n1_1 -.->|"2b. Guard step · Redis"| n2b_3
  n2a_2 -->|"3a. Exec/Log · HTTPS"| n3_4
  n2b_3 -->|"3b. Sync · Control"| n3_4
  n3_4 -.->|"4. Emit / · OTLP/API"| downstream_5

COMPONENT STACK (6)

  • Autonomous AgentsSTATELESS
    Structured MCP tool calls
  • MCP Tool GatewaySTATELESS
    JSON Schema + arg validation
  • Policy & Approval GateSTATELESS
    OPA RBAC + HITL for writes
  • Idempotency & BudgetSTATEFUL
    Step cap + dedupe mutating ops
  • Isolated ConnectorsSTATEFUL
    Scoped OAuth + audit receipt
  • Downstream & OTelSTATELESS
    Consumers, metrics & SLOs

REQUEST & DATA FLOW (6)

  1. Autonomous Agents → MCP Tool Gateway (Call tool)[JSON-RPC]
  2. MCP Tool Gateway → Policy & Approval Gate (Check auth)[gRPC]
  3. MCP Tool Gateway → Idempotency & Budget (Guard step)[Redis]
  4. Policy & Approval Gate → Isolated Connectors (Exec/Log)[HTTPS]
  5. Idempotency & Budget → Isolated Connectors (Sync)[Control]
  6. Isolated Connectors → Downstream & OTel (Emit /)[OTLP/API]
Configure NGINX / Postgres / K8s →60-Sec L4–L7 Diagnostic →