Solution: We've created an OpenAPI specification that ChatGPT Actions can use directly!
Method 1: ChatGPT Actions (Recommended)
- Create a Custom GPT
- Add the Action
- Scroll down to "Actions"
- Click "Create new action"
- Import from URL:
https://mcp.dexpaprika.com/openapi
- Test & Deploy
- Test the action in the GPT builder
- Save and share your crypto data GPT!
Method 2: Direct API Testing
Test the REST endpoints directly:
# Get networks
GET https://mcp.dexpaprika.com/api/networks
# Get Ethereum pools
GET https://mcp.dexpaprika.com/api/networks/ethereum/pools
# Search for tokens
GET https://mcp.dexpaprika.com/api/search?query=bitcoin
Method 3: OpenAI Function Calling
Use with OpenAI API and function calling:
import openai
# Define functions based on our API
functions = [
{
"name": "get_networks",
"description": "Get blockchain networks",
"parameters": {"type": "object", "properties": {}}
},
{
"name": "get_network_pools",
"description": "Get pools on a network",
"parameters": {
"type": "object",
"properties": {
"network": {"type": "string", "description": "Network ID"}
},
"required": ["network"]
}
}
]
response = openai.ChatCompletion.create(
model="gpt-4",
messages=[{"role": "user", "content": "What are the top Ethereum pools?"}],
functions=functions
)
๐ก Pro Tip: The OpenAPI spec at https://mcp.dexpaprika.com/openapi
contains all 11 tools with complete parameter definitions, making it easy to create comprehensive ChatGPT Actions.