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
agentMconsthe 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
projecton updateReinforcementLoopAgent'scodeReposaccepts. Fails with VALID - getReinforcementLoopCodeRepos: The repos an installation can read, sorted by name. The values
repoon updateReinforcementLoopAgent'scodeReposaccepts. 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
repoon updateReinforcementLoopAgent'sgithubCodeReposaccepts. - 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
- addConversationToGoldenSet: Snapshot a conversation turn into a golden set.
- configureLinearIntegration: Step 1 of 2: store the account's Linear API token and return the webhook URL. Register the URL in Linear, then call setLinearWebhookSecret to finish setup.
- createGoldenSet: Create a golden set.
- createJiraTicketForAgentHealthIssue: Create a Jira ticket for an agent-health issue
- createLinearTicketForAgentHealthIssue: Create a Linear ticket for an agent-health issue
- createOpenTelemetryDataStore: Create an OpenTelemetry data store
- createOrUpdateAgentEvaluationMonitor: Create or update an Agent Evaluation monitor
- createOrUpdateAgentMetricMonitor: Create or update an Agent Metric monitor
- createOrUpdateAgentTraceTable: Create or update an agent trace table
- createOrUpdateAgentTrajectory: Create or update agent trajectory.
- createOrUpdateAgentValidation: Create or update agent validation.
- createOrUpdateConversationClusteringSpace: Create or update a conversation-clustering space: scope, facet, config overrides, guidance, and pause/resume. Creating with facet omitted opts into both an inte
- createOrUpdateCustomConversationCluster: Create or update a custom (user-defined) conversation cluster on an intent clustering space (at most 10 per space). Creating one triggers a bounded re-classific
- createOrUpdatePlatformAgent: Create or update a platform agent
- createServiceNowTicketForAgentHealthIssue: Create a ServiceNow incident for an agent-health issue
- deleteAgentCostRate: Delete an agent cost rate. Agents it priced fall back to the account-wide rate. Without one, they go back to their billing unit. Requires the AI agent settings
- deleteAgentTraceTable: Delete an agent trace table
- deleteConversationClusteringSpace: Delete a clustering space, its taxonomy clusters, and its run history. Existing per-conversation assignments become unreachable and age out.
- deleteCustomConversationCluster: Soft-delete a custom conversation cluster. Its card disappears immediately; recreating a cluster with the same name restores it, trend history intact.
- deleteGoldenSet: Delete a golden set and its test cases.
- deleteGoldenTestCase: Delete a golden test case.
- deleteLlmPriceBookOverride: Delete an LLM price book override. Costs for the pair fall back to the shipped rate. Requires the AI agent settings edit permission.
- deleteOpenTelemetryDataStore: Delete an OpenTelemetry data store
- deletePlatformAgent: Delete a platform agent. For Agentforce, removes its shared domain assignments and requires monitor write access in every affected domain. Previously imported t
- deleteReinforcementLoopIssuesByIssueId: Delete reinforcement-loop issues by uuid. A deleted issue never resurfaces; if the agent reports the same problem again it starts over as a brand-new issue.
- discoverRecentAgents: Records agents that sent traces in the last two hours, so a new or returning agent counts as recently active before the next scheduled refresh. A call shortly a
- exportAgentSpans: Export a selected set of agent spans (trace_id, span_id, conversation_id, model_name, prompts, completions, tool_call_input, tool_call_output) to S3 as JSONL, o
- exportAgentTrace: Export a full agent trace (tree + per-span content) to S3 as gzipped JSON. Returns a job id; poll getAgentTraceExport for the download URL when complete. Async
- generateGoldenBaseline: Score a golden set's cases and overwrite its current baseline.
- ignoreReinforcementLoopIssue: Marks the issue ignored with a reason. The scheduled digest leaves ignored issues out. Ignoring again replaces the reason. unignoreReinforcementLoopIssue restor
- installGenieCollector: Synchronously install the Databricks Genie trace collector and return any missing Databricks grants. Call before registering a Genie agent; register only when o
- linkReinforcementLoopIssueTicket: Links a pasted ticket or PR URL to a live RL V2 issue. A Linear, Jira or ServiceNow ticket URL that one of the account's integrations owns becomes the issue's t
- markReinforcementLoopIssueFixed: Marks a live RL V2 issue fixed. An issue that is already FIXED is left as is. undoReinforcementLoopIssueStatus reverts it. Monte Carlo staff can't change the st
- markReinforcementLoopIssueInProgress: Marks a live RL V2 issue in progress. On a FIXED issue this ends the fix. undoReinforcementLoopIssueStatus reverts it. Monte Carlo staff can't change the status
- pinAgentDatasetBuilderConversation: Pin a conversation into the golden or improvement dataset of its workflow, or move its pin to the other one. Only single-turn conversations from the last 30 day
- recordPreflightRun: Record a preflight run: evaluate the submitted agent spans with the same LLM-as-judge path as runAgentEvaluations, then either promote the results as a new base
- refreshConversationClusteringSpace: Regenerate a clustering space's taxonomy from scratch (bumps the taxonomy version and re-discovers).
- refreshOpenTelemetryCollectorConfig: Regenerate the OpenTelemetry collector config and restart the collector
- requestConversationClusteringBackfill: Classify retained conversations from before an issue clustering space was enabled. The requested range is clamped to 30 days of retained history.
- runAgentEvaluations: Run LLM-as-judge evaluations against a caller-supplied list of agent spans. Each evaluation template is applied to every span in the request.
- setLinearWebhookSecret: Step 2 of 2: store the signing secret Linear issues after the webhook URL from configureLinearIntegration is registered, enabling ticket status sync.
- startAgentDatasetBuilderExport: Start exporting a dataset's checked conversations. Poll getAgentDatasetBuilderExport, then download with getAgentDatasetBuilderExportFile. Needs access to the a
- startGoldenTestRun: Run a golden set's cases against a dev agent and score them vs the baseline.
- submitReinforcementLoopIssueFeedback: Rate an RL V2 issue, or one of its conversations, with a reason. Each call adds a row; the caller's newest row is their current feedback. Feedback from Monte Ca
- undoReinforcementLoopIssueStatus: Reverts the last markReinforcementLoopIssueFixed or markReinforcementLoopIssueInProgress on an issue. A later fix, ticket, draft PR or regression clears the und
- unignoreReinforcementLoopIssue: Clears the ignore on an RL V2 issue so the scheduled digest includes it again. An issue that isn't ignored is left as is. Monte Carlo staff can't un-ignore issu
- unpinAgentDatasetBuilderConversation: Remove a conversation's pin. Always true, also when it had none.
- updateAgentAutoSetup: Set an agent's automatic coverage choice. ON retries skipped setup.
- updateAgentAutoSetupAccountSetting: Set the account default for automatic coverage of new agents.
- updateAgentDatasetBuilderSettings: Save an agent's dataset builder settings.
- updateConversationClusteringSettings: Set or clear account-level conversation clustering settings. Changing the Snowflake model rewrites the model on every existing Snowflake clustering space in the
- updateGoldenSet: Update a golden set's settings.
- updateObservedAgentSettings: Set how an agent traced to ClickHouse splits into workflow agents. Turning the split on lists the workflows of the last 7 days before it returns.
- updateReinforcementLoopAgent: Pause or resume the reinforcement loop for an agent, or set its GitHub and Azure DevOps code repos. While paused, the loop diagnoses nothing for any Issue space
- updateReinforcementLoopSelector: Change which Issue clusters the reinforcement loop diagnoses for an agent, or turn the loop on or off. Omitted fields are unchanged; [] clears the selection. Cr
- upsertAgentCostRate: Create or replace an agent cost rate: what one billing unit costs the customer, for the agent's model calls (AGENT) or its SQL (COMPUTE). Agent costs are shown
- upsertLlmPriceBookOverride: Create or replace an LLM price book override: a negotiated per-model rate that replaces the shipped book's rate for its (computation, model) pair when agent cos
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.
