Skip to main content
POST
/
api
/
v1
/
org
/
tool
/
mcp
/
logs
/
list
/
List MCP Tool Logs
curl --request POST \
  --url https://app.superleap.com/api/v1/org/tool/mcp/logs/list/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "pointer": "<string>"
}
'
{
  "success": true,
  "data": {
    "logs": [
      {
        "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "user_id": "xxxxxx_xxxxxxxxxxx",
        "tool_name": "list_objects",
        "input_params": {
          "limit": 10,
          "query": ["interested"],
          "offset": 0
        },
        "response_time": 293,
        "response_code": 200,
        "tool_call_timestamp": 1778069821184
      },
      {
        "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "user_id": "xxxxxx_xxxxxxxxxxx",
        "tool_name": "execute_query",
        "input_params": {
          "query": "SELECT id, name FROM lead ORDER BY created_at DESC LIMIT 10",
          "object_slug": "lead"
        },
        "response_time": 211,
        "response_code": 200,
        "tool_call_timestamp": 1778057347278
      }
    ],
    "next": "eyJ0b29sX2NhbGxfdGltZXN0YW1wIjoxNzc3Mjc4NDk5Njc0LCJpZCI6IjdjNzVmODMzLTE0MDEtNDhmNC1hMDJjLTMxZmNiMGYyZWMxMCIsIm51bWJlcl9vZl9yZWNvcmRzIjo5NX0="
  }
}

Overview

Superadmin access only. This endpoint is restricted to users with the Superadmin role. Other users will receive a permission error even with a valid Bearer token.
Returns MCP tool call logs scoped to the authenticated organisation. The server controls the batch size — it starts at 200 records and grows by 200 on each subsequent page up to a maximum of 3000, with a 4MB payload cap. Do not pass a limit.

Authentication

Bearer token (org-scoped via OAuth2).

Request Body

pointer
string
Base64-encoded pagination cursor. Pass the value of data.next from the previous response exactly as received. Omit on the first request.

Response

success
boolean
true when the request succeeds.
data
object

Pagination

Cursor-based. Treat pointer as opaque — pass the base64 string back exactly as received from data.next, do not decode or construct it manually.
PageServer fetch limit
1 (no pointer)200
2prev number_of_records + 200
Ncapped at 3000

Examples

POST /api/v1/org/tool/mcp/logs/list/
Authorization: Bearer <token>

{}
{
  "success": true,
  "data": {
    "logs": [
      {
        "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "user_id": "xxxxxx_xxxxxxxxxxx",
        "tool_name": "list_objects",
        "input_params": {
          "limit": 10,
          "query": ["interested"],
          "offset": 0
        },
        "response_time": 293,
        "response_code": 200,
        "tool_call_timestamp": 1778069821184
      },
      {
        "id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
        "user_id": "xxxxxx_xxxxxxxxxxx",
        "tool_name": "execute_query",
        "input_params": {
          "query": "SELECT id, name FROM lead ORDER BY created_at DESC LIMIT 10",
          "object_slug": "lead"
        },
        "response_time": 211,
        "response_code": 200,
        "tool_call_timestamp": 1778057347278
      }
    ],
    "next": "eyJ0b29sX2NhbGxfdGltZXN0YW1wIjoxNzc3Mjc4NDk5Njc0LCJpZCI6IjdjNzVmODMzLTE0MDEtNDhmNC1hMDJjLTMxZmNiMGYyZWMxMCIsIm51bWJlcl9vZl9yZWNvcmRzIjo5NX0="
  }
}