---
title: List tool calls in an MCP episode
description: "Returns the complete episode tool flow in event time and event id order, including recorded properties, rationale, duration, and errors. Properties are retur…"
product: general
lang: en
last_updated: 2026-11-18
token_estimate: 1510
---
# List tool calls in an MCP episode

## List tool calls in an MCP episode

**GET** `/v1/projects/{project_id}/mcp-analytics/episodes/{episode_id}/calls`

Full URL: `https://developer-api.amplitude.com/v1/projects/{project_id}/mcp-analytics/episodes/{episode_id}/calls`

> For AI agents: a documentation index is available at [/docs/llms.txt](/docs/llms.txt). Append `.md` to any page URL for markdown, or send `Accept: text/markdown`.

**Servers:**
- Production (US): `https://developer-api.amplitude.com/v1/projects/{project_id}/mcp-analytics/episodes/{episode_id}/calls`
- Production (EU): `https://developer-api.eu.amplitude.com/v1/projects/{project_id}/mcp-analytics/episodes/{episode_id}/calls`

List tool calls in an MCP episode

Returns the complete episode tool flow in event time and event id order, including recorded
properties, rationale, duration, and errors. Properties are returned as
recorded; individual input or output fields may be absent.
A missing or cross-project episode returns 404.

## Authorizations

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| Authorization | string | Yes | — | http |

## Path parameters

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| project_id (path) | string | Yes | 12345 | Amplitude project identifier, backed by the canonical app ID. Constraints: pattern: ^[0-9]+$ |
| episode_id (path) | string | Yes | — | Episode id returned by the topic or episode list. Constraints: min length: 1, max length: 512 |

## Response (application/json)

**200** — Complete ordered tool call list. An existing episode with no recorded calls returns an empty list.

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| data | object[] | Yes | — | — |
| data.id | string | Yes | — | Recorded tool call event id. |
| data.object | string | Yes | — | — |
| data.event_time | string | Yes | — | Constraints: format: date-time |
| data.tool_name | string | Yes | — | — |
| data.is_error | boolean | Yes | — | — |
| data.error_type | string | Yes | — | Constraints: nullable |
| data.error_message | string | Yes | — | Constraints: nullable |
| data.error_code | string | Yes | — | Constraints: nullable |
| data.error_http_status | integer | Yes | — | Constraints: nullable |
| data.duration_ms | integer | Yes | — | Constraints: nullable |
| data.rationale | string | Yes | — | Constraints: nullable |
| data.properties | object | Yes | — | Recorded event properties. Contents depend on the instrumented tool; input and output fields may be absent. Constraints: nullable |
| pagination | object | Yes | — | — |
| pagination.next_cursor | string | Yes | — | Cursor for the next page, or `null` on the last page. Chart list responses may stop before all project charts are enumerated because the search backend caps each query at 10,000 sorted hits. Constraints: nullable |
| pagination.has_more | boolean | Yes | — | — |

```json
{
  "data": [
    {
      "id": "string",
      "object": "mcp_analytics_call",
      "event_time": "2024-01-01T00:00:00Z",
      "tool_name": "string",
      "is_error": true,
      "error_type": "string",
      "error_message": "string",
      "error_code": "string",
      "error_http_status": 0,
      "duration_ms": 0,
      "rationale": "string",
      "properties": {}
    }
  ],
  "pagination": {
    "next_cursor": "string",
    "has_more": true
  }
}
```

**400**

**401**

**403**

**404**

**429**

**502**

## Code samples

### cURL

```bash
curl -X GET "https://developer-api.amplitude.com/v1/projects/12345/mcp-analytics/episodes/{episode_id}/calls" \
  -H "Content-Type: application/json" \
  -H "Authorization: YOUR_API_KEY"
```

### Python

```python
import requests

response = requests.get(
    "https://developer-api.amplitude.com/v1/projects/12345/mcp-analytics/episodes/{episode_id}/calls",
    headers={
        "Content-Type": "application/json",
        "Authorization": "YOUR_API_KEY"
    }
)
data = response.json()
```

### JavaScript

```javascript
const response = await fetch("https://developer-api.amplitude.com/v1/projects/12345/mcp-analytics/episodes/{episode_id}/calls", {
  method: "GET",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "YOUR_API_KEY"
  }
});
const data = await response.json();
```

### PHP

```php
<?php
$ch = curl_init("https://developer-api.amplitude.com/v1/projects/12345/mcp-analytics/episodes/{episode_id}/calls");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Content-Type: application/json",
    "Authorization: YOUR_API_KEY"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
```

### Go

```go
package main

import (
  "bytes"
  "net/http"
)

func main() {
req, _ := http.NewRequest("GET", "https://developer-api.amplitude.com/v1/projects/12345/mcp-analytics/episodes/{episode_id}/calls", nil)
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "YOUR_API_KEY")
  client := &http.Client{}
  resp, _ := client.Do(req)
  defer resp.Body.Close()
}
```

### Java

```java
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://developer-api.amplitude.com/v1/projects/12345/mcp-analytics/episodes/{episode_id}/calls"))
      .method("GET", HttpRequest.BodyPublishers.noBody())
.header("Content-Type", "application/json")
      .header("Authorization", "YOUR_API_KEY")
      .build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
```

### Ruby

```ruby
require "net/http"
require "json"

uri = URI("https://developer-api.amplitude.com/v1/projects/12345/mcp-analytics/episodes/{episode_id}/calls")
request = Net::HTTP::Get.new(uri)
request["Content-Type"] = "application/json"
request["Authorization"] = "YOUR_API_KEY"
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") do |http|
  http.request(request)
end
```

