Case study 01
Agent Tool Integration Architecture
Fountain · 01/2026–present · Lead engineer
A generalized MCP tool-integration layer connecting external services to an internal AI agent—without rewriting the systems those tools already live in.
- Cost
- 35–45% reduction
- Role
- Lead engineer
- Scope
- Multi-prod, existing services
Problem
The agent could reason about a task. It could not reliably invoke capabilities that already existed in other systems. Teams compensated with a patchwork of HR and operations data tools, each with its own auth model, contract, and invoice. Automations were brittle. Lookups were duplicated. The bill grew even as the agent stayed isolated from the work it was supposed to do.
Constraints
Several production environments, each with its own security boundary. Existing services had to remain the source of truth; a rewrite was out of scope. Cost pressure meant every integration had to justify itself against the tool it would replace. The layer had to be general: adding a system should look like registering a tool, not opening a new program of work.
Architecture
A generalized tool-integration layer, following the Model Context Protocol pattern, sat between the internal agent runtime and external services. Skills described what the agent was allowed to do. Tools described how those skills mapped onto existing APIs. An API gateway mediated identity, rate limits, and environment isolation. Kafka pipelines moved change data into a sync path. Automated CI/CD promoted only reviewed, environment-scoped configuration. Distributed infrastructure replaced the previous one-tool-per-team pattern.
Role
As lead engineer I defined the skill and tool taxonomy, the MCP integration contracts, and the shape of the gateways and pipelines. I owned the promotion path that kept multi-environment sync from becoming a manual process, and I architected the distributed infrastructure that let the team retire the fragmented data tools.
Outcomes
- 35–45% operational cost reduction by retiring fragmented HR and operations data tools.
- A single integration surface for subsequent systems, so new capabilities did not require a new vendor stack.
- Environment-scoped promotion: configuration moved through CI/CD instead of through copy-paste between productions.
Stack
- Next.js
- React
- TypeScript
- MongoDB
- PostgreSQL
- OpenAI
- Claude
- AWS
- Kafka
- Microservices