> ## Documentation Index
> Fetch the complete documentation index at: https://docs.danubeai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get My Rating

> Get your rating for a specific tool

## Overview

Returns your previously submitted rating and comment for a tool. Returns null values if you haven't rated this tool yet.

**Auth:** Requires authentication (JWT or API key).

## Path Parameters

<ParamField path="tool_id" type="string" required>
  The tool UUID to check your rating for
</ParamField>

## Response

<ResponseField name="tool_id" type="string">
  The tool identifier
</ResponseField>

<ResponseField name="rating" type="integer">
  Your rating (1-5), or `null` if not rated
</ResponseField>

<ResponseField name="comment" type="string">
  Your comment, or `null` if not rated
</ResponseField>

## Example

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://api.danubeai.com/v1/ratings/my/tool_abc123" \
    -H "danube-api-key: YOUR_API_KEY"
  ```

  ```python Python SDK theme={null}
  from danube import DanubeClient

  with DanubeClient(api_key="dk_...") as client:
      rating = client.tools.get_my_rating("tool_abc123")
      if rating.rating:
          print(f"You rated this {rating.rating}/5")
      else:
          print("You haven't rated this tool")
  ```

  ```typescript TypeScript SDK theme={null}
  import { DanubeClient } from 'danube';

  const client = new DanubeClient({ apiKey: 'dk_...' });
  const rating = await client.tools.getMyRating('tool_abc123');
  console.log(rating.rating ? `Rated ${rating.rating}/5` : 'Not rated');
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "tool_id": "tool_abc123",
    "rating": 4,
    "comment": "Very useful tool"
  }
  ```
</ResponseExample>

## MCP Tool

This endpoint is also available as the `get_my_rating` MCP tool:

```python theme={null}
result = await mcp.call_tool("get_my_rating", {
    "tool_id": "tool_abc123"
})
```
