Skip to main content
← Back to Blog
2026-05-10mcpagentstechnical

How AI Agents choose APIs — and why Tool Definition quality is everything

When you tell Claude Code “send an SMS to a Korean phone number,” it doesn’t browse a catalog. It calls search_apis with the intent string, and apitree returns a ranked list. The ranking algorithm has four factors — and understanding them is key to why apitree wins.

10,000+
Public MCP Servers
Anthropic, Mar 2026
97M
Monthly SDK Downloads
npm + PyPI
40%
Enterprise Apps with AI Agents by EOY
Gartner 2026
$52B
Agentic AI Market by 2030
Industry forecast
How an Agent calls an API through apitree
Agent
“send SMS”
search_apis
intent matching
Rank
4-factor score
call_api
proxy + cache
Response
JSON envelope

1. Semantic similarity (weight: 60%)

Every API in the catalog has a MCP Tool Definition — a description, parameter list, and category tag. When an agent searches, apitree computes vector similarity between the intent and every tool definition. This is why description quality matters more than API count.

2. Health score (weight: 20%)

An API with 99.9% uptime and 150ms p95 latency ranks higher than one with frequent 502s. apitree continuously monitors all 174 Live APIs and computes a composite health score (0-100, grade A-F). Agents naturally gravitate toward reliable providers.

3. Pricing (weight: 10%)

Lower cost-per-call ranks higher when semantic scores are close. Agents are cost-sensitive — they will choose the $0.001/call option over the $0.01/call option if both do the same thing.

4. Call history / flywheel (weight: 10%)

APIs that have been called more (and succeeded more) rank higher. This creates a flywheel: popular APIs get recommended more → get called more → get ranked higher. Newcomers break in through better descriptions or lower prices.

Why this matters

RapidAPI ranks by developer reviews. Postman ranks by collection popularity. Both are human signals. apitree ranks by machine signals — because our primary user is an AI Agent, not a human developer.

This is why we invest in Tool Definition quality. A well-written 50-word description can outrank a competitor with 10x more traffic, because agents read descriptions, not logos.

Try apitree yourself

1,950+ APIs via MCP. No signup for demo.

Run Demo
Blog — apitree · apitree