Agent♥︎Age
Catalog

Frugal

Official

by brainsparker · Go

The open routing layer for AI tools: tool calls routed per policy, decision on every result.

io.github.brainsparker/frugal MCP Server

This MCP server (“io.github.brainsparker/frugal”) provides an open routing layer for AI tool calls. It sits between an agent and tool providers, routing each tool call according to policy decisions and handling outcomes via provider selection, cost-based defaults, and failover.

🛠️ Key Features

  • Routes tool calls per policy
  • Chooses cheapest capable provider by default
  • Supports fastest/premium selection when specified
  • Allows pinned or denied routing for compliance
  • Automatic failover on provider errors or empty results
  • Returns decision metadata (e.g., provider_used, cost_usd, and a one-line reason via frugal__execute)

🚀 Use Cases

  • Search, extraction, and render tasks
  • Intent-only requests delegated to tool providers
  • Auditing provider selection and cost per response

⚡ Developer Benefits

  • Provider and cost audit fields included in responses
  • Centralized routing logic between agent and tool providers
  • Policy-controlled provider routing with predictable fallback behavior

⚠️ Limitations

  • Scope described as routing between an agent and tool providers; specific tool integrations are not detailed in the provided data.

Topics

agent-toolsai-agentsclaudecost-optimizationcursordeveloper-toolsgolangllmllm-routingmcpmcp-servermodel-context-protocolai-infrastructureai-routingfailover