Agent traces and evaluations (GraphQL)

Traces, spans, evaluations and datasets for AI agents.

Query operations

  • evaluateAgentMonitorDataSource: Get agent span/trace schema from base trace table
  • evaluatePlatformAgentDataSource: Evaluate a platform agent as a SQL data source for agent monitors
  • getAgentAlertInsight: Generate an AI insight about the dominant pattern in an agent alert's traces. Returns 1–3 observational sentences. Each call regenerates — insights are not pers
  • getAgentAutoSetupAccountSetting: Get the account default for automatic coverage.
  • getAgentAutoSetupStates: Resolve automatic setup for agents and a registration selection.
  • getAgentClassification: Classify the agent-observability agent behind an anchor — sourceType, platformAgentType, traceBackend, plus identity (name/displayName/traceTableMcon). Anchor i
  • getAgentConversationSampleV2: Sample conversation-grain agent data: one row per conversation (packed transcript + conversation-level columns). When conversation eval transforms are supplied,
  • getAgentCost: Cost of an agent's model calls over a time range, in the agent's costUnit: credits, or the customer's currency when cost rates apply. With none of traceIds, con
  • getAgentCostRates: List the account's agent cost rates: what one billing unit, such as a Snowflake credit, costs the customer. An agent's costs are shown in money when it has an A
  • getAgentCostTotals: Window cost for several agents at once. Returns the total only: the cache savings and counts getAgentCost carries belong to a single agent's summary. The read s
  • getAgentDatasetBuilderCandidates: One dataset's conversations in rank order, with their scores and clusters. Holds no question or answer text. Conversations come from the last 30 days. A single-
  • getAgentDatasetBuilderExport: An export's status. Poll until COMPLETED, FAILED or STALE. Only the user who started it can read it.
  • getAgentDatasetBuilderExportFile: A completed export's file in the chosen format. It reads the saved query result, or runs the query again when the result is gone, so it can answer RUNNING: ask
  • getAgentDatasetBuilderPreview: One conversation as a dataset example in the chosen format. Answers RUNNING until the warehouse read finishes, so ask again with the same attemptId. Needs acces
  • getAgentDatasetBuilderSettings: An agent's dataset builder settings, with every conversation eval monitor on the agent and whether it counts. Defaults when nothing was saved.
  • getAgentDatasetBuilderSummary: Counts for each of an agent's golden and improvement datasets, one pair per workflow, or why it has none. Conversations come from the last 30 days. A single-tur
  • getAgentDetails: Get summary stats for a single agent (last trace, total traces over the trailing 7 days, plus active-alerts count). Returns null when the MCON is malformed/unsu
  • getAgentDomainCandidates: Agents the caller may assign to a domain individually, ordered by name. Reaches every live agent, including quiet ones the agents listing leaves out.
  • getAgentDomainCandidatesByMcon: The agents among agentMcons the caller may assign to a domain, for showing a saved selection. Unknown agents and agents out of scope are left out.
  • getAgentEvaluationRunSamples: Fetch exact stored evaluated rows for an AgentEvaluation monitor run.
  • getAgentFeedback: End-user feedback on a page of an agent's traces. Cortex and Genie feedback is collected from the warehouse. Code-based agents send feedback spans to Agent Obse
  • getAgentFeedbackComments: The comment and user on each trace's newest end-user feedback. Traces whose comments are withheld are left out, and contentWithheldReason says why: the user may
  • getAgentFeedbackStatus: Whether code-agent feedback is available and whether stored feedback has unmatched targets older than 24 hours. An incomplete check reports checkComplete false.
  • getAgentGraph: Read the daily-refreshed snapshot of an agent's fused trace graph. Nodes group spans by (kind, name) — and additionally by model for LLM spans — and edges recor
  • getAgentMetadata: Get metadata about AI agents for agent observability
  • getAgentMetadataV2: Get metadata about AI agents including both trace table and platform agents
  • getAgentObservabilityBillingInfo: Get agent observability billing breakdown: active agents, monitors targeting those agents, and the resulting tier
  • getAgentObservabilitySummary: Summarize observed agents and known data dependencies for a time window. Unavailable metrics are null.
  • getAgentReadableIdentity: The agent's identity, when the caller may open its pages. Null otherwise. Unlike the agents listing, this covers every agent.
  • getAgentReadAccess: Whether the caller may open this agent's pages. Without agentName, whether the caller reaches the trace table or any agent on it. Unlike the agents listing, t
  • getAgentSegments: Get distinct segment values for the given field across all traces. Used to populate the segments dropdown in the Filter Widget.
  • getAgentSpanGroups: Retrieve agent log groups with observability data
  • getAgentSpanSample: Sample agent span data with optional transforms and filtering
  • getAgentSpanSampleV2: Sample agent span data with optional transforms and filtering
  • getAgentSpansExport: Status and short-lived (10 min) download URL for a span export job. URL is a bearer credential — do not log or share. Regenerated fresh per call.
  • getAgentSpend: What the visible agents' model calls cost in a half-open time window, in the customer's currency. Read separately from getAgentObservabilitySummary because it c
  • getAgentsTraceOverview: Get trace totals (count, average latency, tokens, errors) for several agents or workflow agents of one ClickHouse trace table in one read, for the agents list.
  • getAgentTraceExport: Status and short-lived (10 min) download URL for an export job. URL is a bearer credential — do not log or share. Regenerated fresh per call.
  • getAgentTraceTables: Get all agent trace tables
  • getAvailablePlatformAgents: Get available agents in a warehouse by querying the platform directly
  • getConversationClustering: Conversation-clustering panel for one (agent, scope) over the requested [startTime, endTime] window: enablement state, the space, per-cluster stats, eligible/cl
  • getConversationClusteringSettings: Account-level conversation clustering settings.
  • getConversationClusteringSpaces: List conversation-clustering spaces for one facet of an agent + trace table, each with its current-version taxonomy clusters.
  • getConversationEval: Score a conversation across one or more rating dimensions (task completion, answer relevance, helpfulness, clarity, prompt adherence, language match, or a calle
  • getConversationExplanation: Generate an AI explanation of a full conversation across all its turns. Each call regenerates — explanations are not persisted.
  • getConversationMessageContentV2: Fetch a single chunk of full message content for a cached conversation-thread V2 snapshot.
  • getConversationOverview: Conversation counts, durations, root errors, and turn tokens over matching traces in a window with an exclusive end. Conversations need at least one trace with
  • getConversations: Get conversations grouped by conversation_id. Each conversation aggregates one or more agent traces (turns) that share the same conversation_id.
  • getConversationsFilters: Get metadata about filters available for the Conversations tab — field name, display name, input parameter, and whether it is a range slider or checkbox filter.
  • getConversationsFiltersData: Get actual filter values for the current time window: min/max bounds for range filters (turns, tokens, duration) and available enum values for checkbox filters
  • getConversationThread: Get LLM spans for a conversation ordered chronologically as a thread. Returns spans with is_tool_call=true, has_prompts=true, or has_completions=true for the gi
  • getConversationThreadV2: Get a structured conversation thread for the Conversations Details Page 2.0. Returns bounded message previews plus a snapshot ID that can be used to fetch full
  • getConversationTimeSeries: Conversation metrics by the first matching turn's bucket. Each conversation counts once per series. End time is excluded. Filters and segment values select trac
  • getConversationToolCallContentV2: Fetch a bounded input or output slice for a tool call in a cached conversation-thread V2 snapshot.
  • getGenieSpaceConfiguration: A Databricks Genie agent's space configuration, read live through its collector connection. Monte Carlo internal and system users only. Errors carry `extensions
  • getGoldenBaseline: Fetch a golden set's current baseline (with is_stale), or null if none.
  • getGoldenSet: Fetch one golden set by uuid.
  • getGoldenSets: List the account's golden sets. Pass agentName + traceTableMcon together to scope to one agent; omit both for the full account list.
  • getGoldenTestCases: List a golden set's test cases.
  • getGoldenTestRuns: List a golden set's test runs, newest first.
  • getLinearIntegration: The account's configured Linear integration. Returns null when Linear is not configured for the account.
  • getLinearTeams: Linear teams available via the account's configured integration — use a team's id as defaultTeamId (configureLinearIntegration) or teamId (createLinearTicketFor
  • getLlmPriceBook: Get the LLM price book agent costs are computed against: every model with its four per-million-token rates, the unit each rate table is denominated in, and the
  • getLlmPriceBookOverrides: List the account's LLM price book overrides: the negotiated per-model rates that replace the shipped book's rates when agent costs are computed. An override nam
  • getNodeAttributes: Fetch raw OTel attributes and error info for a single node from the warehouse. All node types (agent, workflow, task, tool, LLM) return error_message and span_m
  • getNodeDetail: Get detail for a single trace tree node including all span fields and trend metrics. Returns a typed node (AgentNodeDetail, WorkflowNodeDetail, TaskNodeDetail,
  • getObservedAgentSettings: An observed agent's settings, such as its split by workflow. Reads no traces. Null when the agent has no settings to change: it was never observed, or it is not
  • getOpenTelemetryDataStores: List all OpenTelemetry data stores for the account
  • getPlatformAgentRegistrationDomains: Get names and IDs of metadata domains available for platform-agent registration. Requires monitor write permission and includes only domains covered by that per
  • getPlatformAgents: Get platform agents for the authenticated user's account
  • getReinforcementLoopAgent: The reinforcement loop's state for one agent: whether the user paused it, and whether the loop can't diagnose it and why. An agent with no saved settings report
  • getReinforcementLoopCodeProjects: The projects of an Azure DevOps integration's organization, sorted. The values project on updateReinforcementLoopAgent's codeRepos accepts. Fails with VALID
  • getReinforcementLoopCodeRepos: The repos an installation can read, sorted by name. The values repo on updateReinforcementLoopAgent's codeRepos accepts. Fails with VALIDATION_ERROR when th
  • getReinforcementLoopDiagnosisTriggers: Monte Carlo users only. The reinforcement loop's diagnosis input for an agent's conversations labeled in a window, one payload per Issue space, the agent-wide o
  • getReinforcementLoopGithubRepos: DEPRECATED. The names of the repos a GitHub App installation can read, sorted. The values repo on updateReinforcementLoopAgent's githubCodeRepos accepts.
  • getReinforcementLoopSelectors: The reinforcement loop's Issue-cluster selectors for one agent, with the clusters available to select. One per Issue space, the agent-wide one first, then each
  • getReinforcementLoopV2Issues: Issues the reinforcement loop diagnosed for one agent, each with the conversations it was found in: one node per issue with its current title, description and r
  • getSimilarConversations: Find similar conversations, nearest first. Returns an empty list when the anchor has no embedding.
  • getToolCallOverview: Get aggregate tool-call metrics over tool spans for a time range: total tool calls, average calls per trace, tool error rate, and the most-invoked tool with its
  • getToolCallTimeSeries: Get per-tool time series metrics over tool spans. Returns time-bucketed, gap-filled series segmented by tool name — call volume, latency percentiles, or error c
  • getToolDetail: Get per-tool detail (last invoked, average latency, invocation count, tables accessed) for a given tool MCON. lastInvoked, avgLatencySeconds, and ``invo
  • getTopTools: Get ranked per-tool aggregate stats over tool spans for a time range: call count and share, average/p95 latency, and error count/rate. Sorted by call count desc
  • getTraceExplanation: Generate an AI explanation of a single trace. Each call regenerates — explanations are not persisted.
  • getTraceOverview: Get aggregated overview metrics for agent traces. Returns total counts, latency percentiles, and token usage for a time range. Optionally includes comparison to
  • getTraces: Get traces from the agent_spans table with bidirectional cursor-based pagination. Traces are aggregations of individual spans grouped by trace_id. Supports sort
  • getTracesFilters: Get metadata about filters that can be applied when requesting traces
  • getTracesFiltersData: Get filter values with counts for trace filters (for faceted search UI)
  • getTraceTimeSeries: Get time series metrics for agent traces. Returns time-bucketed aggregations of trace metrics like count, latency percentiles, and token usage. Supports segment
  • getTraceTreeNodes: Retrieve span tree for a given traceId

Mutation operations

Types

AgentAutoSetupAccountSetting, AgentAutoSetupChoice, AgentAutoSetupOrigin, AgentAutoSetupState, AgentClassificationOutput, AgentCostRate, AgentDatasetBuilderContentStatus, AgentDatasetBuilderDatasetType, AgentDatasetBuilderEvalMonitor, AgentDatasetBuilderExport, AgentDatasetBuilderExportStatus, AgentDatasetBuilderFormat, AgentDatasetBuilderPin, AgentDatasetBuilderSettings, AgentDomainCandidate, AgentHealthIssueJiraTicket, AgentHealthIssueLinearTicket, AgentHealthIssueServiceNowTicket, AgentHealthPriority, AgentSourceType, AgentSpanFieldFilterInput, AgentSpanFilterInput, AgentSpanInput, ClusteringConfig, ClusteringDerivation, ClusteringFacet, ClusterSource, ComputationId, ConversationClusterConnection, ConversationClusterEdge, ConversationClusteringRunConnection, ConversationClusteringRunEdge, ConversationClusteringRunKind, ConversationClusteringRunStage, ConversationClusteringRunStatus, ConversationClusteringRunType, ConversationClusteringSettings, ConversationClusteringSpaceType, ConversationClusteringState, ConversationClusterType, ConversationFilterFieldName, CostRateUnit, CostRateUsageType, EvaluationTemplateRef, GetConversationsFiltersDataInput, GoldenBaseline, GoldenBaselineResult, GoldenBaselineStatus, GoldenEvalScore, GoldenMetricComparison, GoldenMetricSummary, GoldenPriorTurn, GoldenRunResultStatus, GoldenRunRuleSummary, GoldenRunStatus, GoldenSet, GoldenTestCase, GoldenTestResult, GoldenTestRun, GoldenTokenUsage, GoldenVerdict, GoldenVerdictSummary, HasFeedbackCommentValue, LinearIntegrationResult, LlmPriceBookOverride, ObservedAgentSettings, ObservedAgentSplitBy, OpenTelemetryDataStore, PlatformAgentType, ReinforcementLoopAgent, ReinforcementLoopAgentCodeRepo, ReinforcementLoopAgentErrorKind, ReinforcementLoopAgentErrorState, ReinforcementLoopAgentGithubCodeRepo, ReinforcementLoopAgentObject, ReinforcementLoopAgentResourceKind, ReinforcementLoopAgentWarningState, ReinforcementLoopAvailableCluster, ReinforcementLoopClusterKind, ReinforcementLoopCodeHost, ReinforcementLoopFeedbackPriorityReason, ReinforcementLoopFeedbackRating, ReinforcementLoopFeedbackReason, ReinforcementLoopIssueDispositionReason, ReinforcementLoopIssueStatus, ReinforcementLoopSelector, TimeFilterInput, TraceBucketSize, TraceFeedbackRating, TraceFilterFieldName, TraceFiltersInput, TracePageInfo, TraceRootStatus, TraceSegmentField, TraceSegmentFilterInput, TraceSortDirection, TraceTimeSeriesBucketType

Source: The GraphQL API reference

This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.