NewsWorld
PredictionsDigestsScorecardTimelinesArticles
NewsWorld
HomePredictionsDigestsScorecardTimelinesArticlesWorldTechnologyPoliticsBusiness
AI-powered predictive news aggregation© 2026 NewsWorld. All rights reserved.
Trending
StrikesIranMilitaryFebruarySignificantStatesTimelineTensionsTargetsCrisisDigestFaceEvacuationsPotentiallyLaunchesEmbassyWesternIranianTuesdayIsraelEmergencyRegionalSecurityConducts
StrikesIranMilitaryFebruarySignificantStatesTimelineTensionsTargetsCrisisDigestFaceEvacuationsPotentiallyLaunchesEmbassyWesternIranianTuesdayIsraelEmergencyRegionalSecurityConducts
All Articles
Making MCP cheaper via CLI
Hacker News
Published about 7 hours ago

Making MCP cheaper via CLI

Hacker News · Feb 25, 2026 · Collected from RSS

Summary

Article URL: https://kanyilmaz.me/2026/02/23/cli-vs-mcp.html Comments URL: https://news.ycombinator.com/item?id=47157398 Points: 90 # Comments: 48

Full Article

Every AI agent using MCP is quietly overpaying. Not on the API calls themselves - those are fine. The tax is on the instruction manual. Before your agent can do anything useful, it needs to know what tools are available. MCP’s answer is to dump the entire tool catalog into the conversation as JSON Schema. Every tool, every parameter, every option. CLI does the same job but cheaper. Same tools, different packaging I took an MCP server and generated a CLI from it using CLIHub. Same tools, same OAuth, same API underneath. Two things change: what loads at session start, and how the agent calls a tool. The numbers below assume a typical setup: 6 MCP servers, 14 tools each, 84 tools total. 1. Session start MCP dumps every tool schema into the conversation upfront. CLI uses a lightweight skill listing - just names and locations. The agent discovers details when it needs them.1 MCP loads this (~185 tokens * 84 = 15540):{ "name": "notion-search", "description": "Search for pages and databases", "inputSchema": { "type": "object", "properties": { "query": { "type": "string", "description": "The search query text" }, "filter": { "type": "object", "properties": { "property": { "type": "string", "enum": ["object"] }, "value": { "type": "string", "enum": ["page", "database"] } } } } }, { "name": "notion-fetch", ... } ... (84 tools total) } CLI loads this (~50 tokens * 6 = 300):<available_tools> <tool> <name>notion</name> <description>CLI for Notion</description> <location>~/bin/notion</location> </tool> <tool> <name>linear</name> ... </tool> ... (6 tools total) </available_tools> 2. Tool call Once the agent knows what’s available, it still needs to call a tool. MCP tool call (~30 tokens):{ "tool_call": { "name": "notion-search", "arguments": { "query": "my search" } } } CLI tool call (~610 tokens):# Step 1: Discover tools (~4 + ~600 tokens) $ notion --help notion search <query> [--filter-property ...] Search for pages and databases notion create-page <title> [--parent-id ID] Create a new page ... 12 more tools ------------------------------------------------ # Step 2: Execute (~6 tokens) $ notion search "my search" MCP’s call is cheaper because definitions are pre-loaded. CLI pays at discovery time - --help returns the full command reference (~600 tokens for 14 tools), then the agent knows what to execute. Tools used MCP CLI Savings Session start ~15,540 ~300 98% 1 tool ~15,570 ~910 94% 10 tools ~15,840 ~964 94% 100 tools ~18,540 ~1,504 92% CLI uses ~94% fewer tokens overall. Anthropic’s Tool Search Anthropic launched Tool Search which loads a search index instead of every schema then uses fetch tools on demand. It typically drops token usage by 85%. Same idea as CLI’s lazy loading. But when Tool Search fetches a tool, it still pulls the full JSON Schema.2 Tools used MCP TS CLI Savings vs TS Session start ~15,540 ~500 ~300 40% 1 tool ~15,570 ~3,530 ~910 74% 10 tools ~15,840 ~3,800 ~964 75% 100 tools ~18,540 ~12,500 ~1,504 88% Tool Search is more expensive, and it’s Anthropic-only. CLI is cheaper and works with any model. CLIHub I struggled finding CLIs for many tools so built CLIHub a directory of CLIs for agent use. Open sourced the converter - one command to create CLIs from MCPs. 1. I like using formatting of Openclaw's available_skills block for CLI. It can be modified to other formats. 2. Tool Search: ~500 session start + ~3K per search (loads 3-5 tools) + ~30 per call. Assumes 1 search for 1-10 calls, 3 searches for 100.


Share this story

Read Original at Hacker News

Related Articles

Hacker Newsabout 2 hours ago
Jane Street Hit with Terra $40B Insider Trading Suit

Article URL: https://www.disruptionbanking.com/2026/02/24/jane-street-hit-with-terra-40b-insider-trading-suit/ Comments URL: https://news.ycombinator.com/item?id=47160613 Points: 10 # Comments: 0

Hacker Newsabout 3 hours ago
Tech Companies Shouldn't Be Bullied into Doing Surveillance

Article URL: https://www.eff.org/deeplinks/2026/02/tech-companies-shouldnt-be-bullied-doing-surveillance Comments URL: https://news.ycombinator.com/item?id=47160226 Points: 34 # Comments: 1

Hacker Newsabout 4 hours ago
Banned in California

Article URL: https://www.bannedincalifornia.org/ Comments URL: https://news.ycombinator.com/item?id=47159430 Points: 119 # Comments: 109

Hacker Newsabout 4 hours ago
Origin of the rule that swap size should be 2x of the physical memory

Article URL: https://retrocomputing.stackexchange.com/questions/32492/origin-of-the-rule-that-swap-size-should-be-2x-of-the-physical-memory Comments URL: https://news.ycombinator.com/item?id=47159364 Points: 8 # Comments: 0

Hacker Newsabout 4 hours ago
First Website

Article URL: https://info.cern.ch Comments URL: https://news.ycombinator.com/item?id=47159302 Points: 27 # Comments: 3

Hacker Newsabout 7 hours ago
Jimi Hendrix was a systems engineer

Article URL: https://spectrum.ieee.org/jimi-hendrix-systems-engineer Comments URL: https://news.ycombinator.com/item?id=47157224 Points: 242 # Comments: 92