# list_my_tests

> Every test paid with your API key's workspace, newest first.

**GET /api/agent/tests · MCP tool list_my_tests · Needs a key**
`list_my_tests` returns the tests paid with keys of your workspace, newest first, each in the same shape as [`get_test`](https://app.decalabs.ai/docs/tools/get-test). It needs an [API key](https://app.decalabs.ai/docs/reference/authentication) with the `read` scope, or a client [signed in with DECA](https://app.decalabs.ai/docs/reference/sign-in). A test paid without a key is not listed; read it with its `access_token`.

## Parameters

None.

## Request

```bash title="cURL"
curl -H "Authorization: Bearer deca_sk_…" https://app.decalabs.ai/api/agent/tests
```

```json title="MCP"
{ "name": "list_my_tests", "arguments": {} }
```

## Response

```json
{
  "count": 2,
  "tests": [
    { "id": "…", "state": "live", "option": "clear", "budget_usd": 1400, "result": { "confirmed_so_far": 12, "pass_line": 31 }, "…": "…" },
    { "id": "…", "state": "done", "option": "signal", "budget_usd": 600, "result": { "verdict": "pass", "confirmed": 19, "pass_line": 15 }, "…": "…" }
  ]
}
```

It returns up to 50 tests.

## Errors

| Code | Status | What to do |
|---|---|---|
| `key_required` | 401 | Send an API key, or sign in with DECA |
| `scope_missing` | 403 | In MCP & API, press Edit on the key and tick Read |

Source: https://app.decalabs.ai/docs/tools/list-my-tests
