Wrap a REST API as Tools
Turn external endpoints into callable tools.
Turn Endpoints into Tools
Any REST API can become MCP tools. Each endpoint becomes a callable function the model can invoke to fetch or send data. 🌐
Call HTTP from a Tool
Inside a tool you make an ordinary HTTP request, then return the response as text the model can read and reason about.
All lessons in this course
- Expose SQL Queries Safely
- Wrap a REST API as Tools
- Pool Connections in Lifespan
- Cache & Rate-Limit Upstreams