---
title: "Recent request log"
method: GET
path: "/api/query-log"
---

# Recent request log

`GET /api/query-log`

## Request

- Base URL: `https://agentdeals.dev`
- URL: `https://agentdeals.dev/api/query-log`
- Auth: none required

Returns recent request-level log entries for both MCP tool calls and REST API hits. Stored in Redis, capped at 1000 entries. Query parameter values are not published: each entry reports the parameter names it carried and the length of each value. Session identifiers are not published either; entries from one session share a session_index that is assigned within a single response and carries no meaning across responses.

## Query parameters

- `limit` integer

## Response `200`

Recent request log entries

- object
  - `entries` object[]
    - `ts` string, date-time
    - `type` 'mcp' | 'api' | 'session_connect'
    - `endpoint` string
    - `param_lengths` object: Parameter name to the character length of the value that was sent. Values themselves are retained internally and never published.
    - `user_agent` string
    - `result_count` integer
    - `session_index` integer: Groups entries from the same session within this response only.
    - `client_info` object
      - `name` string
      - `version` string
  - `count` integer

---

[API](https://skmtc.dev/agentdeals/apis/agentdeals-api.md) · [All operations](https://skmtc.dev/agentdeals/apis/agentdeals-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentdeals/apis/agentdeals-api/revisions/2b80deacb326?raw)
