Quickstart
Augment your LLM with a library of hosted MCP tools
OpenTools provides an API for LLM tool use.
Using an OpenAI-compatible completion API, you can access thousands of tools from our registry through any supported LLM via OpenRouter.
You can also use your own custom tools ("type": "function"
) as before.
Let’s say you’re building a “deep research for news about space” — your API request might look like:
shell
Let’s break down a few key parts of the request:
Line | Description |
---|---|
-H "Authorization: Bearer $YOUR_OPENTOOLS_API_KEY" | You’ll first need to create an API key which we authenticate with Bearer auth. |
"model": "anthropic/claude-3.7-sonnet" | We use OpenRouter to route requests to LLM provider that natively supports tool use. You can find their selection of models here. |
"tools": [{ "type": "mcp", "ref": "exa" }] | We’re equipping our LLM with web search using the official exa MCP server. OpenTools handles authenticating to the Exa API on your behalf. |
Instead of the usual “since my knowledge cutoff is April 2023, I don’t have real-time information” caveat, you’ll get a response like: