frugal

Brian Sparker

Creator of Frugal

Brian Sparker is the creator of Frugal, the open routing layer for AI tools: an MCP server that routes agent tool calls โ€” search, extract, browse โ€” across providers per policy: cost, latency, provider pinning, deny lists, automatic failover. Every response carries provider_used and cost_usd, so the routing decision is auditable in the agent's own trace.

Frugal started as a cost router, out of a simple observation: the same web search costs $0 on Wikipedia or Marginalia, $0.001 on Serper, and $0.005 on You.com โ€” and agents pick providers by what's wired in, not by price. Cost is still Frugal's flagship policy; it's now one policy among several. Building the router meant living inside the details this blog covers: fallback chains, zero-hit semantics, latency budgets, MCP transports, and the ledger math of what an agent run actually costs.

He writes here about provider routing, AI tool-call economics, model selection, and the operational work of keeping agents reliable โ€” aimed at engineers and small teams building on AI APIs without a platform team to lean on.

You can reach him through GitHub or sparker.co.

Provider routing AI tool-call economics MCP servers Agent infrastructure Model selection

All posts by Brian Sparker

Reliability & latency Guide

Zero hits is not an error

An empty result set arrives as a 200 and gets treated like a 500. The provider didn't fail โ€” it answered. What you do next should depend on whether that answer cost money.