Api Reference
1GET /v1/tools2Authorization: Bearer YOUR_API_KEYResponse format: mcp, openai, or grok
Filter by category: products, cart, orders
Whether the request succeeded
List of available tools
Tool name (e.g., search_products)
Human-readable description
JSON Schema for tool parameters
Tool category: products, cart, orders
Total number of tools
1curl https://gateway.betterdata.io/v1/tools \2 -H "Authorization: Bearer YOUR_API_KEY"1const response = await client.tools.list();2 3console.log(response.data.tools);1response = client.tools.list()2 3print(response.data.tools)1{2 "success": true,3 "data": {4 "tools": [5 {6 "name": "search_products",7 "description": "Search for products by query",8 "inputSchema": {9 "type": "object",10 "properties": {11 "query": {12 "type": "string",13 "description": "Search query"14 },15 "limit": {16 "type": "number",17 "description": "Maximum number of results",18 "default": 1019 }20 },21 "required": ["query"]22 },23 "category": "products"24 },25 {26 "name": "get_product_details",27 "description": "Get detailed information about a product",28 "inputSchema": {29 "type": "object",30 "properties": {31 "productId": {32 "type": "string",33 "description": "Product ID"34 }35 },36 "required": ["productId"]37 },38 "category": "products"39 },40 {41 "name": "add_to_cart",42 "description": "Add an item to the shopping cart",43 "inputSchema": {44 "type": "object",45 "properties": {46 "productId": {47 "type": "string",48 "description": "Product ID"49 },50 "quantity": {51 "type": "number",52 "description": "Quantity to add",53 "default": 154 }55 },56 "required": ["productId"]57 },58 "category": "cart"59 }60 ],61 "count": 362 },63 "meta": {64 "requestId": "req_123abc",65 "timestamp": "2024-12-11T10:00:00Z"66 }67}search_products - Search for productsget_product_details - Get product detailscheck_inventory - Check stock levelsget_recommendations - Get product recommendationsadd_to_cart - Add item to cartremove_from_cart - Remove item from cartget_cart - Get current cartclear_cart - Clear all itemscreate_order - Create new orderget_order - Get order detailslist_orders - List user's orderscancel_order - Cancel an order1GET /v1/tools?format=mcpReturns tools in Anthropic's MCP format for Claude Desktop.
1GET /v1/tools?format=openaiReturns tools in OpenAI Function Calling format for ChatGPT.
1GET /v1/tools?format=grokReturns tools in Grok's function calling format.
