import type { Services } from '../../services.js'; import type { McpTool } from '../../utils/index.js'; /** * Creates the metrics_get tool. * * Retrieves observability metrics time-series for a B2C Commerce tenant by category: * - **overall**: Aggregate site metrics (requests, response times, errors) * - **sales**: Sales and order metrics * - **ecdn**: Edge CDN performance metrics * - **third-party**: External service integration metrics (filter by thirdPartyServiceId) * - **scapi**: SCAPI endpoint metrics (filter by apiFamily, apiName) * - **scapi-hooks**: SCAPI hooks execution metrics * - **mrt**: Managed Runtime (PWA Kit) metrics * - **controller**: Controller execution metrics * - **ocapi**: OCAPI endpoint metrics (filter by ocapiCategory, ocapiApi) * * Returns time-series data with metric metadata (title, description, unit) and data points * (timestamp, value) grouped by series (e.g., 2xx, 4xx, 5xx response codes). * * **Requirements:** OAuth with `sfcc.metrics` scope. * * @param loadServices - Function that loads configuration and returns Services instance * @returns MCP tool for retrieving metrics */ export declare function createMetricsGetTool(loadServices: () => Promise | Services): McpTool;