Sistemas en producción para finanzas, criptografía y operaciones críticas.
Todos los posts
Agent Infrastructure

From Human UI to Agent Interfaces: APIs, MCPs, and CLIs in Production

How we reframe human-first workflows into agent-operable interfaces with APIs, MCP servers, and CLIs that are safe to run in production.

Operator memo: This pattern is for teams replacing brittle UI automations with durable agent interfaces under production constraints.

Why this shift matters

Most software is still designed for people clicking buttons. Agents can use those tools, but they do it in brittle ways: hidden state, inconsistent flows, and poor error semantics. In production, that creates operational risk and expensive incident loops.

Reference architecture

User Intent -> Agent Planner -> MCP Tool Discovery
                     |
                     v
               Action Router
              /      |      \
           API    CLI Gate   Policy Engine
             \\      |      /
                Execution Bus
                     |
                     v
                Provider Rails
                     |
                     v
               Audit + Metrics

This is the minimum viable shape we use when reliability matters more than demo speed.

What each layer is responsible for

LayerResponsibilityFailure mode prevented
APIsDeterministic action contractsAmbiguous tool behavior
MCPMachine-readable capability discoveryTool misuse and bad assumptions
CLI GateOperator-approved high-risk commandsUnsafe autonomous commits
Policy EngineRole, amount, and context constraintsOut-of-scope execution
Execution BusIdempotent orchestration + retriesDuplicate or partial actions
Audit + MetricsTraceability and SLO visibilitySilent degradation

Design principles we enforce

  • Idempotency first: every state-changing command is retry-safe.

  • Explicit execution states: pending, confirmed, failed, compensated.

  • No hidden side effects: contracts must state what mutates and when.

  • Human override paths: escalation exists for all irreversible operations.

Operational outcomes we track

  • Command success rate by tool category

  • Retry-to-success ratio

  • Mean confirmation latency on gated commands

  • Incident count caused by interface ambiguity

The result is not an "agent demo". It is a production interface layer that supports autonomous execution with controls, accountability, and measurable reliability.

KPI snapshot

MetricTarget bandWhy investors care
Tool-command success rate96-99%Indicates interface maturity, not prompt luck
Retry-to-success ratio< 0.25Shows resilience without hidden churn
Confirmation latency (gated actions)< 120s p95Balances control with execution speed
Ambiguity-driven incidentsTrending to zeroSignals deterministic contracts

Implementation notes

  • Trade-off: stricter schemas reduce flexibility but eliminate costly edge-case drift.

  • Constraint: MCP discoverability is only as good as tool metadata quality.

  • Operational rule: every high-risk command must have a human-override path.

Próximo paso

Convierte esto en una dirección clara

Hablemos del sistema que necesitas. Definimos el alcance, la operación después del go-live y el siguiente paso.