/api/testing

POST /api/testing/mcp/seed-tool-call

Changed on

Seed one mcp_session_log + one mcp_tool_call_log row so the MCP analytics E2E page has a visible tool-call row. Routes through the production metabase.mcp.usage recording helpers (rather than hand-rolled inserts) so the seeded rows can't drift from real MCP writes. Intended only for E2E tests.

post/api/testing/mcp/seed-tool-call

Request

  • Base URL
    (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    API key in header X-API-Key

Request body

client_namestring nullable

value must be a non-blank string.

client_versionstring nullable

value must be a non-blank string.

duration_msinteger nullable

value must be an integer greater or equal to than zero.

error_codeinteger nullable
error_messagestring nullable

value must be a non-blank string.

statusstring nullable

value must be a non-blank string.

tool_namestring nullable

value must be a non-blank string.

user_idinteger required

value must be an integer greater than zero.

Response

Successful response

session_idstring required

value must be a non-blank string.

tool_namestring required

value must be a non-blank string.

Changes