Augment your LLM with a library of hosted MCP tools
"type": "function"
) as before.
Let’s say you’re building “deep research for news about space” — your API request might look like:
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. |