curl -X GET "https://api.danubeai.com/v1/ratings/my/tool_abc123" \
-H "danube-api-key: YOUR_API_KEY"
from danube import DanubeClient
with DanubeClient(api_key="YOUR_API_KEY") as client:
rating = client.ratings.get_mine("tool_abc123") # None when you have not rated it
if rating:
print(f"You rated this {rating.rating}/5")
else:
print("You haven't rated this tool")
import { DanubeClient } from 'danube';
const client = new DanubeClient({ apiKey: 'YOUR_API_KEY' });
const rating = await client.ratings.getMine('tool_abc123'); // null when you have not rated it
console.log(rating ? `Rated ${rating.rating}/5` : 'Not rated');
{
"tool_id": "tool_abc123",
"rating": 4,
"comment": "Very useful tool"
}
Ratings
Get My Rating
Get your rating for a specific tool
GET
/
v1
/
ratings
/
my
/
{tool_id}
curl -X GET "https://api.danubeai.com/v1/ratings/my/tool_abc123" \
-H "danube-api-key: YOUR_API_KEY"
from danube import DanubeClient
with DanubeClient(api_key="YOUR_API_KEY") as client:
rating = client.ratings.get_mine("tool_abc123") # None when you have not rated it
if rating:
print(f"You rated this {rating.rating}/5")
else:
print("You haven't rated this tool")
import { DanubeClient } from 'danube';
const client = new DanubeClient({ apiKey: 'YOUR_API_KEY' });
const rating = await client.ratings.getMine('tool_abc123'); // null when you have not rated it
console.log(rating ? `Rated ${rating.rating}/5` : 'Not rated');
{
"tool_id": "tool_abc123",
"rating": 4,
"comment": "Very useful tool"
}
Overview
Returns your previously submitted rating and comment for a tool. If you have not rated it yet the whole response is{"rating": null}; the other fields are absent.
Auth: Requires authentication (JWT or API key).
Path Parameters
string
required
The tool UUID to check your rating for
Response
string
The tool identifier
integer
Your rating (1-5), or
null if not ratedstring
Your comment, or
null if not ratedExample
curl -X GET "https://api.danubeai.com/v1/ratings/my/tool_abc123" \
-H "danube-api-key: YOUR_API_KEY"
from danube import DanubeClient
with DanubeClient(api_key="YOUR_API_KEY") as client:
rating = client.ratings.get_mine("tool_abc123") # None when you have not rated it
if rating:
print(f"You rated this {rating.rating}/5")
else:
print("You haven't rated this tool")
import { DanubeClient } from 'danube';
const client = new DanubeClient({ apiKey: 'YOUR_API_KEY' });
const rating = await client.ratings.getMine('tool_abc123'); // null when you have not rated it
console.log(rating ? `Rated ${rating.rating}/5` : 'Not rated');
{
"tool_id": "tool_abc123",
"rating": 4,
"comment": "Very useful tool"
}
MCP Tool
This endpoint is also available as theget_my_rating MCP tool:
result = await mcp.call_tool("get_my_rating", {
"tool_id": "tool_abc123"
})
