---
title: "Record Public MCP Tool Call"
method: POST
path: "/v2/public/auth/mcp-session/tool-call-log"
tags: ["public-auth"]
---

# Record Public MCP Tool Call

`POST /v2/public/auth/mcp-session/tool-call-log`

## Request

- Base URL: `https://api.sanka.com`
- URL: `https://api.sanka.com/v2/public/auth/mcp-session/tool-call-log`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sankahq/apis/sanka-public-api/docs/v2/public/auth/mcp-session/tool-call-log/post.ts> (a function with typed inputs; its response is checked against the schema)

## Query parameters

- `workspace_id` string, nullable

## Headers

- `X-Sanka-MCP-Session-ID` string, nullable
- `X-Workspace-Code` string

## Request body

- McpToolCallLogRequest
  - `tool_name` string, required
  - `tool_title` string, nullable
  - `resource` string, nullable
  - `operation` string, nullable
  - `success` boolean
  - `duration_ms` number, nullable
  - `client_name` string, nullable
  - `client_version` string, nullable
  - `source_ip_address` string, nullable
  - `source_user_agent` string, nullable
  - `source_browser` string, nullable
  - `source_os` string, nullable
  - `source_device_type` string, nullable
  - `mcp_protocol_version` string, nullable
  - `mcp_server_name` string, nullable
  - `mcp_server_version` string, nullable
  - `model_provider` string, nullable
  - `model_name` string, nullable
  - `result_summary` string, nullable
  - `record_ids` object, nullable
  - `error` string, nullable

## Response `200`

Successful Response

- RecordPublicAuthMcpToolCallApiV2PublicAuthMcpSessionToolCallLogPost200Envelope
  - `success` true, required
  - `data` object, required
  - `meta` EnvelopeMeta, required
    - `ctx_id` string, required
    - `pagination` PaginationMeta
      - `page` integer, required
      - `page_size` integer, required
      - `total` integer, required
      - `next_cursor` string, nullable
    - `toast` ToastMessage
      - `variant` 'success' | 'error' | 'info' | 'warning', required
      - `code` string, required
      - `message` string, required
      - `i18n` ToastMessageI18n, required
        - `en` string, required
        - `ja` string, required

## Other responses

- `401`: Error response
- `403`: Error response
- `422`: Error response

## Changes

- **2026-07-06** `6ce94a6be72c`: 8 info
  - added the optional property `meta/pagination/next_cursor` to the response with the `200` status
  - added the optional property `meta/pagination/next_cursor` to the response with the `401` status
  - added the optional property `meta/pagination/next_cursor` to the response with the `403` status
  - added the optional property `meta/pagination/next_cursor` to the response with the `422` status
  - …4 more
- **2026-06-12** `f2f9dae18e12`: 12 info
  - added the new optional request property `mcp_protocol_version`
  - added the new optional request property `mcp_server_name`
  - added the new optional request property `mcp_server_version`
  - added the new optional request property `model_name`
  - …8 more
- **2026-06-10** `9099b22c3aae`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sankahq/apis/sanka-public-api/changes/v2/public/auth/mcp-session/tool-call-log/post.md)

---

[API](https://skmtc.dev/sankahq/apis/sanka-public-api.md) - [All operations](https://skmtc.dev/sankahq/apis/sanka-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sankahq/apis/sanka-public-api/revisions/16f03a9e3ab9?raw)
