Related queries and mutations in Agent traces and evaluations. Each has its own section.
Queries
getTraces (query)
getTraces is a query in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get traces from the agent_spans table with bidirectional cursor-based pagination. Traces are aggregations of individual spans grouped by trace_id. Supports sorting by multiple fields and filtering by agent name and time range.
Arguments
| Argument | Type | Description |
|---|---|---|
input | GetTracesInput! |
Returns
TraceConnection
Example
query GetTraces($input: GetTracesInput!) {
getTraces(input: $input) {
edges {
cursor
}
}
}Types used only by getTraces
getTracesGetTracesInput
GetTracesInputInput object type. Input parameters for GetTraces query.
| Field | Type | Description |
|---|---|---|
agentName | String! | Agent name to filter by |
traceTableMcon | String! | MCON of the trace table or platform agent (aiagent object type) to query. Filters traces to only those from this data source. |
startTime | DateTime! | Start of time range (inclusive) |
endTime | DateTime! | End of time range (inclusive) |
filters | TraceFiltersInput | Optional filters to refine results |
first | Int | Number of records to fetch for forward pagination |
after | String | Cursor for forward pagination |
last | Int | Number of records to fetch for backward pagination |
before | String | Cursor for backward pagination |
sortField | TraceSortField | Field to sort by. The cost fields (COST, QUERY_COST, TOTAL_COST) order by warehouse-priced cost — Cortex only — and attribution trails execution by about three hours, so the freshest traces sort by a lower bound of their query and total cost. Default: "trace_start_time". |
sortDirection | TraceSortDirection | Sort direction Default: "DESC". |
Trace
TraceObject type. Traces from the agent_spans table.
| Field | Type | Description |
|---|---|---|
agentUuid | UUID | Agent UUID (nullable for now, will be required in the future) |
agentName | String! | Agent name |
traceId | String! | Trace ID (hex-encoded) |
traceStartTime | DateTime! | Earliest span start time in trace |
traceEndTime | DateTime! | Latest span end time in trace |
ingestStartTime | DateTime! | Start of the window that contains this trace's spans on every time axis a span read may filter on — the earlier of the earliest span start time and the earliest span ingest time. Use it to bound a span-content fetch for this trace. |
ingestEndTime | DateTime! | End of the window described by ingestStartTime — the later of the latest span end time and the latest span ingest time. |
durationSeconds | Float! | Trace duration in seconds |
promptTokens | Int | Total prompt tokens |
completionTokens | Int | Total completion tokens |
totalTokens | Int | Total tokens |
countLlmCalls | Int! | Number of LLM calls in trace |
models | [String!]! | Unique models used in trace |
workflows | [String!]! | Unique workflows in trace |
tasks | [String!]! | Unique tasks in trace |
conversationId | String | Conversation ID |
rootHasError | Boolean! | Whether the root span had an error |
errorsCount | Int! | Number of spans with errors in this trace |
TraceConnection
TraceConnectionObject type. Connection type for trace pagination.
| Field | Type | Description |
|---|---|---|
edges | [TraceEdge!]! | List of edges |
pageInfo | TracePageInfo! | Pagination information |
TraceEdge
TraceEdgeObject type. Edge type for trace pagination.
| Field | Type | Description |
|---|---|---|
node | Trace! | The trace |
cursor | String! | Cursor for this edge |
TraceSortField
TraceSortFieldEnum type. Fields that can be used for sorting traces.
The three cost fields order by a value only the customer's warehouse holds,
so they page by offset cursor rather than the keyset cursors the other
fields use. They are Cortex-only, because the sort scans the agent's
Snowflake event table and only Cortex agents have one. Any other
Timescale-served agent sorts to an empty page. The ClickHouse backend
rejects a cost sort with a validation error. QUERY_COST orders traces with
no attributed warehouse compute last in both directions -- unknown after
known. COST keeps traces whose models the price book omits; their cost is
unknown and sorts last in both directions.
Attribution trails execution by about three hours, so the freshest traces
sort by a lower bound of their query and total cost.
FEEDBACK orders by each trace's newest end-user rating: negative, unrated,
then positive ascending. Traces with no feedback sort last in both
directions. Feedback is available for Snowflake Cortex and Databricks Genie
agents, and code-based agents that send feedback to Agent Observability ClickHouse.
| Value | Description |
|---|---|
TRACE_ID | |
TRACE_START_TIME | |
TRACE_END_TIME | |
DURATION_SECONDS | |
PROMPT_TOKENS | |
COMPLETION_TOKENS | |
TOTAL_TOKENS | |
COUNT_LLM_CALLS | |
COST | |
QUERY_COST | |
TOTAL_COST | |
STATUS | |
FEEDBACK |
Related types
DateTime, TraceFiltersInput, TracePageInfo, TraceSortDirection, UUID
getTracesFilters (query)
getTracesFilters is a query in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get metadata about filters that can be applied when requesting traces
Returns
[TraceFilter]
Example
query GetTracesFilters {
getTracesFilters {
fieldName
displayName
queryParameterName
queryParameterAcceptsMultipleValues
isRangeFilter
facetable
facetSearchable
}
}Types used only by getTracesFilters
getTracesFiltersTraceFilter
TraceFilterObject type. Metadata about a trace filter.
| Field | Type | Description |
|---|---|---|
fieldName | TraceFilterFieldName! | |
displayName | String! | |
queryParameterName | String! | Associated getTraces parameter used to filter traces |
queryParameterAcceptsMultipleValues | Boolean! | Whether the associated getTraces parameter accepts multiple values as input |
isRangeFilter | Boolean! | Whether this is a range filter (min/max) vs equality filter (checkboxes) |
facetable | Boolean! | Whether the filter shows up as a facet in the UI |
facetSearchable | Boolean! | Whether the filter values can be searched by their display name |
Related types
getTracesFiltersData (query)
getTracesFiltersData is a query in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get filter values with counts for trace filters (for faceted search UI)
Arguments
| Argument | Type | Description |
|---|---|---|
filtersRequest | [TraceFilterDataRequest]! |
Returns
[TraceFilterData]
Example
query GetTracesFiltersData($filtersRequest: [TraceFilterDataRequest]!) {
getTracesFiltersData(filtersRequest: $filtersRequest) {
fieldName
hasUnvaluedTraces
}
}Types used only by getTracesFiltersData
getTracesFiltersDataTraceFilterData
TraceFilterDataObject type. Filter values with counts for a single filter.
| Field | Type | Description |
|---|---|---|
fieldName | TraceFilterFieldName! | The filter field name |
values | [TraceFilterDataValue!]! | List of filter values with counts |
pageInfo | TraceFilterDataPageInfo! | Pagination information |
hasUnvaluedTraces | Boolean! | True when the agent also has traces carrying NO value for this field, under the same search criteria (time window and cross-filters) as values — the complement of the enumeration, independent of searchValue. Only computed for the WORKFLOW field; always false otherwise. |
TraceFilterDataPageInfo
TraceFilterDataPageInfoObject type. Pagination info for filter values.
| Field | Type | Description |
|---|---|---|
hasNextPage | Boolean! | Whether there are more results |
endCursor | String | Cursor for the next page |
TraceFilterDataRequest
TraceFilterDataRequestInput object type. Request for filter values data.
| Field | Type | Description |
|---|---|---|
fieldName | TraceFilterFieldName! | Filter field name to get values for |
searchCriteria | TraceFilterDataSearchCriteria! | Search criteria |
first | Int | Number of values to return (default 50, max 250) |
after | String | Cursor for pagination |
searchValue | String | Search string to filter values |
TraceFilterDataSearchCriteria
TraceFilterDataSearchCriteriaInput object type. Search criteria for getting filter values.
TraceFilterDataSearchCriteriaFilter
TraceFilterDataSearchCriteriaFilterInput object type. A filter to apply when getting filter values (for cross-filtering).
| Field | Type | Description |
|---|---|---|
fieldName | TraceFilterFieldName! | Filter field name |
value | GenericScalar | Filter value |
TraceFilterDataValue
TraceFilterDataValueObject type. A single filter value with its count.
| Field | Type | Description |
|---|---|---|
value | GenericScalar! | The filter value |
displayName | String! | Display name for the value |
count | Int! | Number of traces with this value |
Related types
DateTime, GenericScalar, TraceFilterFieldName
getTraceTimeSeries (query)
getTraceTimeSeries is a query in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Get time series metrics for agent traces. Returns time-bucketed aggregations of trace metrics like count, latency percentiles, and token usage. Supports segmentation by workflow, task, or model.
Arguments
| Argument | Type | Description |
|---|---|---|
input | GetTraceTimeSeriesInput! |
Returns
[TraceTimeSeriesType]
Example
query GetTraceTimeSeries($input: GetTraceTimeSeriesInput!) {
getTraceTimeSeries(input: $input) {
metric
segment
}
}Types used only by getTraceTimeSeries
getTraceTimeSeriesGetTraceTimeSeriesInput
GetTraceTimeSeriesInputInput object type. Input parameters for GetTraceTimeSeries query.
| Field | Type | Description |
|---|---|---|
agentName | String! | Agent name to filter by |
traceTableMcon | String! | MCON of the trace table or platform agent (aiagent object type) to query |
startTime | DateTime! | Start of time range (inclusive) |
endTime | DateTime! | End of time range (inclusive) |
bucketSize | TraceBucketSize! | Size of time buckets (MINUTE, HOUR, DAY, WEEK) |
metricGroup | TraceMetricGroup | Metric group to return. Each group maps to a set of metrics: OVERVIEW (count + latency + tokens), TRACE_COUNT (total traces + change in traces), TRACE_LATENCY (avg/p50/p95/p99), ERRORS (error count + error percentage), TOKENS (total/prompt/completion tokens), FEEDBACK (positive/negative feedback counts + negative feedback percentage). Deprecated: use metricGroups instead. |
metricGroups | [TraceMetricGroup!] | Metric groups to return from one read, with duplicate metrics returned once. Provide a non-empty list or metricGroup, exclusively. The groups are those of metricGroup. |
segmentFilter | TraceSegmentFilterInput | Optional segment dimension filter. Specifies the field to group results by (MODEL, WORKFLOW, or TASK) and an optional list of values to restrict results to. An empty values list returns all values for that dimension. |
filters | TraceFiltersInput | Optional filters to refine results |
TraceMetricGroup
TraceMetricGroupEnum type. Metric groups for time series queries.
Each group maps to a set of individual TraceTimeSeriesMetric values.
Use METRIC_GROUP_TO_METRICS to expand a group to its metrics.
| Value | Description |
|---|---|
OVERVIEW | |
TRACE_COUNT | |
TRACE_LATENCY | |
ERRORS | |
TOKENS | |
FEEDBACK |
TraceTimeSeriesMetric
TraceTimeSeriesMetricEnum type. Metrics available for time series queries.
| Value | Description |
|---|---|
TRACE_COUNT | |
CHANGE_IN_TRACES | |
LATENCY_AVG | |
LATENCY_P50 | |
LATENCY_P95 | |
LATENCY_P99 | |
TOTAL_TOKENS | |
PROMPT_TOKENS | |
COMPLETION_TOKENS | |
ERROR_COUNT | |
ERROR_PERCENTAGE | |
POSITIVE_FEEDBACK_COUNT | |
NEGATIVE_FEEDBACK_COUNT | |
NEGATIVE_FEEDBACK_PERCENTAGE |
TraceTimeSeriesType
TraceTimeSeriesTypeObject type. Time series data for a single metric.
When segmentBy is used, multiple TraceTimeSeries objects are returned per metric,
one for each unique segment value (e.g., one per workflow name).
| Field | Type | Description |
|---|---|---|
metric | TraceTimeSeriesMetric! | The metric this series represents |
buckets | [TraceTimeSeriesBucketType!]! | Time-bucketed data points |
segment | String | Segment value (e.g., workflow name) if segmentBy was requested |
Related types
DateTime, TraceBucketSize, TraceFiltersInput, TraceSegmentFilterInput, TraceTimeSeriesBucketType
Mutations
addConversationToGoldenSet (mutation)
addConversationToGoldenSet is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Snapshot a conversation turn into a golden set.
Arguments
| Argument | Type | Description |
|---|---|---|
input | AddConversationToGoldenSetInput! |
Returns
AddConversationToGoldenSet
Example
mutation AddConversationToGoldenSet($input: AddConversationToGoldenSetInput!) {
addConversationToGoldenSet(input: $input) {
goldenTestCase {
uuid
userInput
isMultiTurn
contextTurnCount
hasReference
targetResponseCaptured
targetTurnIndex
sourceConversationId
sourceTraceId
sourceAgedOut
createdTime
}
}
}Types used only by addConversationToGoldenSet
addConversationToGoldenSetAddConversationToGoldenSet
AddConversationToGoldenSetObject type.
| Field | Type | Description |
|---|---|---|
goldenTestCase | GoldenTestCase |
AddConversationToGoldenSetInput
AddConversationToGoldenSetInputInput object type.
| Field | Type | Description |
|---|---|---|
setUuid | UUID! | Target set to add the case to. |
agentName | String! | Source conversation agent name. |
traceTableMcon | String! | MCON of the agent's trace table. |
conversationId | String! | Source conversation id. |
startTime | DateTime! | Conversation window start. |
endTime | DateTime! | Conversation window end. |
targetTurnIndex | Int! | Turn to capture; preceding turns become fixed context, following dropped. |
referenceAnswer | String | Optional golden answer for correctness-style scoring. |
captureResponse | Boolean | Whether to also capture the target turn's original response. Default: false. |
Related types
DateTime, GoldenTestCase, UUID
configureLinearIntegration (mutation)
configureLinearIntegration is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
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.
Arguments
| Argument | Type | Description |
|---|---|---|
input | ConfigureLinearIntegrationInput! |
Returns
ConfigureLinearIntegration
Example
mutation ConfigureLinearIntegration($input: ConfigureLinearIntegrationInput!) {
configureLinearIntegration(input: $input) {
integration {
uuid
webhookUrl
webhookEnabled
defaultTeamId
integrationName
}
}
}Types used only by configureLinearIntegration
configureLinearIntegrationConfigureLinearIntegration
ConfigureLinearIntegrationObject type.
| Field | Type | Description |
|---|---|---|
integration | LinearIntegrationResult |
ConfigureLinearIntegrationInput
ConfigureLinearIntegrationInputInput object type.
| Field | Type | Description |
|---|---|---|
apiToken | String! | Linear API token to store. |
defaultTeamId | String | Linear team ID new tickets default to. |
Related types
createGoldenSet (mutation)
createGoldenSet is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Create a golden set.
Arguments
| Argument | Type | Description |
|---|---|---|
input | CreateGoldenSetInput! |
Returns
CreateGoldenSet
Example
mutation CreateGoldenSet($input: CreateGoldenSetInput!) {
createGoldenSet(input: $input) {
goldenSet {
uuid
name
agentName
traceTableMcon
prodTargetPath
devTargetPath
evalConfig
retentionDays
testCaseCount
lastUsedAt
expiresAt
createdTime
updatedTime
}
}
}Types used only by createGoldenSet
createGoldenSetCreateGoldenSet
CreateGoldenSetObject type.
| Field | Type | Description |
|---|---|---|
goldenSet | GoldenSet |
CreateGoldenSetInput
CreateGoldenSetInputInput object type.
| Field | Type | Description |
|---|---|---|
name | String! | Display name of the set. |
agentName | String! | Observability agent to scope the set to. |
traceTableMcon | String! | MCON of the scoped agent's trace table. |
prodTargetPath | String | Baseline (prod) agent REST endpoint path. |
devTargetPath | String | Default test (dev) agent REST endpoint path. |
evalConfig | GenericScalar | Rubric config the baseline scores against: {"rules": [...]} where each rule sets exactly one of templateName (a catalog conversation-eval template) or custom.criteria (a non-empty, ≤1000-char rubric). At most 5 rules, at most one custom rule, no duplicate template. Rejected at generateGoldenBaseline if malformed. |
retentionDays | Int | Retention window in days (defaults to 90). |
Related types
createJiraTicketForAgentHealthIssue (mutation)
createJiraTicketForAgentHealthIssue is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Create a Jira ticket for an agent-health issue
Arguments
| Argument | Type | Description |
|---|---|---|
input | CreateJiraTicketForAgentHealthIssueInput! |
Returns
CreateJiraTicketForAgentHealthIssue
Example
mutation CreateJiraTicketForAgentHealthIssue($input: CreateJiraTicketForAgentHealthIssueInput!) {
createJiraTicketForAgentHealthIssue(input: $input) {
ticket {
identifier
url
origin
createdTime
}
}
}Types used only by createJiraTicketForAgentHealthIssue
createJiraTicketForAgentHealthIssueCreateJiraTicketForAgentHealthIssue
CreateJiraTicketForAgentHealthIssueObject type.
| Field | Type | Description |
|---|---|---|
ticket | AgentHealthIssueJiraTicket |
CreateJiraTicketForAgentHealthIssueInput
CreateJiraTicketForAgentHealthIssueInputInput object type.
| Field | Type | Description |
|---|---|---|
findingUuid | UUID! | UUID of the reinforcement-loop issue to act on — the issueUuid of a getReinforcementLoopV2Issues node, stable across runs. |
integrationId | UUID! | UUID of the Jira integration to create the ticket under. |
project | Int! | Jira project id. |
issuetype | Int! | Jira issue-type id. |
summary | String | Ticket summary; defaults to the issue title. |
description | String | Ticket description; defaults to the issue's action context. |
fields | JSONString | Additional Jira fields keyed by field id (e.g. required custom fields). |
Related types
AgentHealthIssueJiraTicket, JSONString, UUID
createLinearTicketForAgentHealthIssue (mutation)
createLinearTicketForAgentHealthIssue is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Create a Linear ticket for an agent-health issue
Arguments
| Argument | Type | Description |
|---|---|---|
input | CreateLinearTicketForAgentHealthIssueInput! |
Returns
CreateLinearTicketForAgentHealthIssue
Example
mutation CreateLinearTicketForAgentHealthIssue($input: CreateLinearTicketForAgentHealthIssueInput!) {
createLinearTicketForAgentHealthIssue(input: $input) {
ticket {
identifier
url
status
createdTime
}
}
}Types used only by createLinearTicketForAgentHealthIssue
createLinearTicketForAgentHealthIssueCreateLinearTicketForAgentHealthIssue
CreateLinearTicketForAgentHealthIssueObject type.
| Field | Type | Description |
|---|---|---|
ticket | AgentHealthIssueLinearTicket |
CreateLinearTicketForAgentHealthIssueInput
CreateLinearTicketForAgentHealthIssueInputInput object type.
| Field | Type | Description |
|---|---|---|
findingUuid | UUID! | UUID of the reinforcement-loop issue to act on — the issueUuid of a getReinforcementLoopV2Issues node, stable across runs. |
title | String | Ticket title; defaults to the issue title. |
description | String | Ticket description; defaults to the issue's action context. |
teamId | String | Linear team ID; defaults to the integration's default team. |
Related types
AgentHealthIssueLinearTicket, UUID
createOrUpdateAgentTraceTable (mutation)
createOrUpdateAgentTraceTable is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Create or update an agent trace table
Arguments
| Argument | Type | Description |
|---|---|---|
input | CreateOrUpdateAgentTraceTableInput! |
Returns
CreateOrUpdateAgentTraceTable
Example
mutation CreateOrUpdateAgentTraceTable($input: CreateOrUpdateAgentTraceTableInput!) {
createOrUpdateAgentTraceTable(input: $input) {
agentTraceTable {
createdTime
updatedTime
id
uuid
spanFormat
recommendationsGeneratedAt
supportsConversationEval
supportsConversationClustering
supportsTokenMetrics
}
}
}Types used only by createOrUpdateAgentTraceTable
createOrUpdateAgentTraceTableAgentTraceFormatEnum
AgentTraceFormatEnumEnum type. Enum for agent trace format types.
| Value | Description |
|---|---|
STANDARD | |
STRANDS |
CreateOrUpdateAgentTraceTable
CreateOrUpdateAgentTraceTableObject type.
| Field | Type | Description |
|---|---|---|
agentTraceTable | AgentTraceTable |
CreateOrUpdateAgentTraceTableInput
CreateOrUpdateAgentTraceTableInputInput object type.
Related types
createOrUpdateConversationClusteringSpace (mutation)
createOrUpdateConversationClusteringSpace is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Create or update a conversation-clustering space: scope, facet, config overrides, guidance, and pause/resume. Creating with facet omitted opts into both an intent and an issue space for the scope in one call.
Arguments
| Argument | Type | Description |
|---|---|---|
input | CreateOrUpdateConversationClusteringSpaceInput! |
Returns
CreateOrUpdateConversationClusteringSpace
Example
mutation CreateOrUpdateConversationClusteringSpace($input: CreateOrUpdateConversationClusteringSpaceInput!) {
createOrUpdateConversationClusteringSpace(input: $input) {
space {
uuid
agentName
scopeWorkflow
facet
isEnabled
taxonomyVersion
discoveryCompletedAt
userGuidance
state
clustersWithheldReason
classificationWatermark
budgetLimited
dailyClassificationBudget
trailingDaySpend
}
}
}Types used only by createOrUpdateConversationClusteringSpace
createOrUpdateConversationClusteringSpaceClusteringConfigInput
ClusteringConfigInputInput object type.
| Field | Type | Description |
|---|---|---|
discoveryModelId | String | Model id for the one-time taxonomy synthesis. |
classifyModelId | String | Model id for per-conversation classification (and discovery summaries). |
embeddingModelId | String | Warehouse embedding model producing 1024 dimensions. Defaults to snowflake-arctic-embed-l-v2.0-8k for Cortex and databricks-gte-large-en for Genie. Applies to platform intent spaces. |
embeddingInputCharCap | Int | Maximum rendered conversation characters sent to the embedding model. Choose a cap within the selected model's token window. |
maxClusters | Int | Cap on discovered clusters (excludes the Uncategorized bucket). |
discoverySampleSize | Int | Number of newest eligible conversations fed to discovery. |
discoveryLookbackDays | Int | Maximum history, in days, discovery scans back to fill its sample. |
classifyCapPerRun | Int | Maximum conversations classified per run, oldest by readiness first. |
minConfidence | Float | Confidence below which a label is dropped. On Intent spaces, the conversation routes to Uncategorized. |
userInputCharCap | Int | Per-turn cap on user-input characters sent to the model. |
agentResponseCharCap | Int | Per-turn cap on agent-response characters sent to the model. |
minConversations | Int | Minimum historical conversation count before clustering activates: on intent spaces, the discovery activation floor; on issue spaces, the minimum conversations in the percentile trailing window before percentile clusters assign. |
classifyCadenceMinutes | Int | Minimum minutes between COMPLETED runs of a kind before the orchestrator dispatches the next — it paces a space's runs (on intent spaces, classification and pre-taxonomy discovery dispatch; on issue spaces, rule evaluation). A run that left claimable backlog re-dispatches on the next tick. A single failed run is retried on the next tick rather than waiting out this interval; consecutive failures back off exponentially, capped at this interval. |
issueWatermarkRangeMinutes | Int | Minutes covered by each platform-agent issue-space watermark work item. Minimum 30. |
issueWatermarkBatchSize | Int | Maximum adjacent watermark slices produced or consumed together for a platform-agent issue space. Must be a positive integer. |
backfillSliceHours | Int | Hours covered by each BACKFILL and lookback work item. Wider than a watermark range because this work drains in the background; bounded so one item's rule matches still fit a single read. |
issueInitialBackfillDays | Int | Days of retained history queued when an issue space is first enabled. The queued range is capped by the 30-day retention window. |
dailyClassificationBudget | Int | Maximum conversations classified per trailing 24 hours, summed from COMPLETED runs' processed counts (bootstrap sweeps included; rule evaluation is exempt). At or over budget the space isn't dispatched — the coverage watermark holds and scanning resumes oldest-first when budget frees, so nothing is dropped, only delayed. |
workItemBatchCap | Int | Maximum work items one consumer run claims from the space's list. Each item is a chunk of conversations. |
collectionLagHours | Int | Settle window in hours before a conversation's last turn counts. |
percentileWindowDays | Int | Trailing window, in days, over which issue-space percentile thresholds (e.g. p95 duration) are resolved each run. Issue spaces only — rejected on intent spaces. |
evalScoreThreshold | Float | Fallback bar for numeric evals whose monitor has no fixed alert threshold, as a score above 1 and up to 5. It moves to the same place on each judge's scale, and a higher value fails more conversations. Conversations scoring on the failing side of it join that eval's issue cluster. Issue spaces only — rejected on intent spaces. |
CreateOrUpdateConversationClusteringSpace
CreateOrUpdateConversationClusteringSpaceObject type.
| Field | Type | Description |
|---|---|---|
space | ConversationClusteringSpaceType | DEPRECATED. End of life: February 1, 2027. The primary space touched by this call: the created/updated space for an update or single-facet create; the intent space on the create-both opt-in (facet omitted, no spaceUuid) — kept so existing callers that only read space see unchanged behavior. See spaces to read both facets. Deprecated: Use spaces, which lists every space this call touched.. |
spaces | [ConversationClusteringSpaceType!]! | Every space this call touched: one entry for an update or single-facet create; both the intent and issue spaces, in that order, for the create-both opt-in. |
CreateOrUpdateConversationClusteringSpaceInput
CreateOrUpdateConversationClusteringSpaceInputInput object type.
| Field | Type | Description |
|---|---|---|
spaceUuid | UUID | Set to update an existing space; null to create. |
agentName | String | Required on create; immutable on update. |
traceTableMcon | String | Required on create; immutable on update. |
scopeWorkflow | String | Null = whole agent; set on create, immutable. |
facet | ClusteringFacet | On create: which facet to create. Omit to opt in to both an intent and an issue space for the scope in one call — the enablement toggle's shape. configOverrides and userGuidance then land on the intent space only; the issue space is created with its facet defaults — tune its cadence or percentile window with a follow-up update against its own uuid, the same way pause already works. Set explicitly to create only that facet's space. On update: immutable — must match the target space's facet. |
isEnabled | Boolean | Pause (false) / resume (true) an existing space. On the create-both opt-in (facet omitted, no spaceUuid), applies to both spaces. |
userGuidance | String | Free-text guidance that steers cluster identity during discovery; rejected on an issue-facet space, which has no discovery step. On the create-both opt-in, applies to the intent space only. |
configOverrides | ClusteringConfigInput | Partial config overrides applied on top of the current settings. On the create-both opt-in, applies to the intent space only. |
Related types
ClusteringFacet, ConversationClusteringSpaceType, UUID
createOrUpdateCustomConversationCluster (mutation)
createOrUpdateCustomConversationCluster is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
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-classification sweep over recent history; recreating a deleted cluster with the same name restores it, trend history intact. Updates apply to future classification only.
Arguments
| Argument | Type | Description |
|---|---|---|
input | CreateOrUpdateCustomConversationClusterInput! |
Returns
CreateOrUpdateCustomConversationCluster
Example
mutation CreateOrUpdateCustomConversationCluster($input: CreateOrUpdateCustomConversationClusterInput!) {
createOrUpdateCustomConversationCluster(input: $input) {
cluster {
uuid
clusterKey
name
description
classificationCriteria
exemplars
exemplarsWithheldReason
ordinal
taxonomyVersion
derivation
source
createdBy
rule
sourceMonitorUuid
}
}
}Types used only by createOrUpdateCustomConversationCluster
createOrUpdateCustomConversationClusterCreateOrUpdateCustomConversationCluster
CreateOrUpdateCustomConversationClusterObject type.
| Field | Type | Description |
|---|---|---|
cluster | ConversationClusterType! |
CreateOrUpdateCustomConversationClusterInput
CreateOrUpdateCustomConversationClusterInputInput object type.
| Field | Type | Description |
|---|---|---|
spaceUuid | UUID! | The cluster's clustering space, of either facet. On create, the space to add the cluster to; on update, it must match the target cluster's space — a mismatch reads as an unknown cluster. |
clusterUuid | UUID | Set to update an existing custom cluster; null to create one. |
name | String! | Display name. On create it also derives the stable cluster key; renaming later never changes the key, so trends survive a rename. |
description | String! | What belongs in this cluster — shown on the card and used verbatim as the classification criteria, so write it for the classifier. |
Related types
createOrUpdatePlatformAgent (mutation)
createOrUpdatePlatformAgent is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Create or update a platform agent
Arguments
| Argument | Type | Description |
|---|---|---|
input | CreateOrUpdatePlatformAgentInput! |
Returns
CreateOrUpdatePlatformAgent
Example
mutation CreateOrUpdatePlatformAgent($input: CreateOrUpdatePlatformAgentInput!) {
createOrUpdatePlatformAgent(input: $input) {
platformAgent {
id
createdTime
updatedTime
uuid
agentType
agentMcon
agentName
agentDatabase
agentSchema
tablePrefix
recommendationsGeneratedAt
displayName
supportsConversationEval
supportsConversationClustering
supportsTokenMetrics
supportsEndUserFeedback
traceTableMcon
traceTableIngested
}
}
}Types used only by createOrUpdatePlatformAgent
createOrUpdatePlatformAgentCreateOrUpdatePlatformAgent
CreateOrUpdatePlatformAgentObject type.
| Field | Type | Description |
|---|---|---|
platformAgent | PlatformAgent |
CreateOrUpdatePlatformAgentInput
CreateOrUpdatePlatformAgentInputInput object type.
| Field | Type | Description |
|---|---|---|
warehouseUuid | UUID! | Warehouse UUID |
agentName | String! | Agent name on the platform |
agentDatabase | String! | Platform database containing the agent. For Databricks platform agents this is the Unity Catalog catalog name. For Agentforce this is the Salesforce organization ID. |
agentSchema | String! | Platform schema containing the agent. For Databricks platform agents this is the Unity Catalog schema name. For Agentforce this is the Data Cloud dataspace API name. |
connectionUuid | UUID | Source connection UUID. When omitted, keeps an existing agent's native schedule connection or saved export source. A new Genie agent reuses the collector connection at its location. Otherwise selects an allowed SQL connection on the warehouse. The chosen connection requires permission to use it. |
domainUuid | UUID | Domain to assign a Snowflake or Agentforce agent to (may be required for accounts using domain-based access); the caller needs monitor write access to it. Adding a domain preserves existing domain memberships. Not accepted for Databricks agents — their domains derive from the trace table's catalog domain assignments. An Agentforce registration shares this assignment with its imported ClickHouse agent. |
platformAgentType | PlatformAgentType | Platform agent integration type. Defaults to SNOWFLAKE when omitted, preserving backwards compatibility for Snowflake callers. Databricks Agent Bricks splits into two physical span shapes: DATABRICKS_MLFLOW_SDK (Mosaic AI Agent Framework + autolog) and DATABRICKS_MLFLOW_KA (Knowledge Assistant UI sync). The SDK and KA shapes differ on disk, so registration resolves the subtype from the trace table's physical shape — overriding the supplied value, and rejecting a fresh registration when the shape can't be resolved to exactly one of the two. |
tablePrefix | String | Trace-table identifier prefix. A blank value is treated as omitted. Databricks Genie defaults to its collector table. On Snowflake the prefix is optional and must match the saved value on re-registration. Databricks MLflow agents require a prefix. For DATABRICKS_MLFLOW_SDK it names the <table_prefix>_trace_unified view over <table_prefix>_otel_* tables. For DATABRICKS_MLFLOW_KA it is the Delta table name. |
autoSetupOverride | AgentAutoSetupChoice | Native automatic setup choice. Omit to preserve the saved choice. When the account’s writesEnabled is false, omit this field or registration is refused. |
Related types
AgentAutoSetupChoice, PlatformAgent, PlatformAgentType, UUID
createServiceNowTicketForAgentHealthIssue (mutation)
createServiceNowTicketForAgentHealthIssue is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Create a ServiceNow incident for an agent-health issue
Arguments
| Argument | Type | Description |
|---|---|---|
input | CreateServiceNowTicketForAgentHealthIssueInput! |
Returns
CreateServiceNowTicketForAgentHealthIssue
Example
mutation CreateServiceNowTicketForAgentHealthIssue($input: CreateServiceNowTicketForAgentHealthIssueInput!) {
createServiceNowTicketForAgentHealthIssue(input: $input) {
createWarning
}
}Types used only by createServiceNowTicketForAgentHealthIssue
createServiceNowTicketForAgentHealthIssueCreateServiceNowTicketForAgentHealthIssue
CreateServiceNowTicketForAgentHealthIssueObject type.
| Field | Type | Description |
|---|---|---|
ticket | AgentHealthIssueServiceNowTicket | |
createWarning | String | A non-fatal warning from ServiceNow — e.g. a field it silently dropped because the value was invalid. The incident was still created; surface this to the user (a toast) so they can fix the field. Null on success. This warning surface is ServiceNow-specific and has no Jira-mutation equivalent, so a shared frontend create-ticket handler must special-case it. |
CreateServiceNowTicketForAgentHealthIssueInput
CreateServiceNowTicketForAgentHealthIssueInputInput object type.
| Field | Type | Description |
|---|---|---|
findingUuid | UUID! | UUID of the reinforcement-loop issue to act on — the issueUuid of a getReinforcementLoopV2Issues node, stable across runs. |
integrationId | UUID! | UUID of the ServiceNow integration to create the incident under. |
shortDescription | String | Incident short description (its title); defaults to the issue title, falling back to a generic placeholder if the issue has none. |
description | String | Incident description; defaults to the issue's action context, falling back to its narrative, and finally to an empty description. |
fields | JSONString | Additional ServiceNow incident fields keyed by field name. |
Related types
AgentHealthIssueServiceNowTicket, JSONString, UUID
deleteAgentCostRate (mutation)
deleteAgentCostRate is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
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 edit permission.
Arguments
| Argument | Type | Description |
|---|---|---|
rateUuid | UUID! | Rate to delete. |
Returns
DeleteAgentCostRate
Example
mutation DeleteAgentCostRate($rateUuid: UUID!) {
deleteAgentCostRate(rateUuid: $rateUuid) {
success
}
}Types used only by deleteAgentCostRate
deleteAgentCostRateDeleteAgentCostRate
DeleteAgentCostRateObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the rate was deleted. |
Related types
deleteAgentTraceTable (mutation)
deleteAgentTraceTable is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Delete an agent trace table
Arguments
| Argument | Type | Description |
|---|---|---|
input | DeleteAgentTraceTableInput! |
Returns
DeleteAgentTraceTable
Example
mutation DeleteAgentTraceTable($input: DeleteAgentTraceTableInput!) {
deleteAgentTraceTable(input: $input) {
success
}
}Types used only by deleteAgentTraceTable
deleteAgentTraceTableDeleteAgentTraceTable
DeleteAgentTraceTableObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the agent trace table was successfully deleted |
DeleteAgentTraceTableInput
DeleteAgentTraceTableInputInput object type.
| Field | Type | Description |
|---|---|---|
uuid | UUID! | UUID of the agent trace table to delete |
Related types
deleteConversationClusteringSpace (mutation)
deleteConversationClusteringSpace is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Delete a clustering space, its taxonomy clusters, and its run history. Existing per-conversation assignments become unreachable and age out.
Arguments
| Argument | Type | Description |
|---|---|---|
spaceUuid | UUID! |
Returns
DeleteConversationClusteringSpace
Example
mutation DeleteConversationClusteringSpace($spaceUuid: UUID!) {
deleteConversationClusteringSpace(spaceUuid: $spaceUuid) {
success
}
}Types used only by deleteConversationClusteringSpace
deleteConversationClusteringSpaceDeleteConversationClusteringSpace
DeleteConversationClusteringSpaceObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean! |
Related types
deleteCustomConversationCluster (mutation)
deleteCustomConversationCluster is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Soft-delete a custom conversation cluster. Its card disappears immediately; recreating a cluster with the same name restores it, trend history intact.
Arguments
| Argument | Type | Description |
|---|---|---|
clusterUuid | UUID! |
Returns
DeleteCustomConversationCluster
Example
mutation DeleteCustomConversationCluster($clusterUuid: UUID!) {
deleteCustomConversationCluster(clusterUuid: $clusterUuid) {
success
}
}Types used only by deleteCustomConversationCluster
deleteCustomConversationClusterDeleteCustomConversationCluster
DeleteCustomConversationClusterObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean! |
Related types
deleteGoldenSet (mutation)
deleteGoldenSet is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Delete a golden set and its test cases.
Arguments
| Argument | Type | Description |
|---|---|---|
setUuid | UUID! | Set to delete. |
Returns
DeleteGoldenSet
Example
mutation DeleteGoldenSet($setUuid: UUID!) {
deleteGoldenSet(setUuid: $setUuid) {
success
}
}Types used only by deleteGoldenSet
deleteGoldenSetDeleteGoldenSet
DeleteGoldenSetObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the set was deleted. |
Related types
deleteGoldenTestCase (mutation)
deleteGoldenTestCase is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Delete a golden test case.
Arguments
| Argument | Type | Description |
|---|---|---|
caseUuid | UUID! | Test case to delete. |
Returns
DeleteGoldenTestCase
Example
mutation DeleteGoldenTestCase($caseUuid: UUID!) {
deleteGoldenTestCase(caseUuid: $caseUuid) {
success
}
}Types used only by deleteGoldenTestCase
deleteGoldenTestCaseDeleteGoldenTestCase
DeleteGoldenTestCaseObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the test case was deleted. |
Related types
deleteLlmPriceBookOverride (mutation)
deleteLlmPriceBookOverride is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Delete an LLM price book override. Costs for the pair fall back to the shipped rate. Requires the AI agent settings edit permission.
Arguments
| Argument | Type | Description |
|---|---|---|
overrideUuid | UUID! | Override to delete. |
Returns
DeleteLlmPriceBookOverride
Example
mutation DeleteLlmPriceBookOverride($overrideUuid: UUID!) {
deleteLlmPriceBookOverride(overrideUuid: $overrideUuid) {
success
}
}Types used only by deleteLlmPriceBookOverride
deleteLlmPriceBookOverrideDeleteLlmPriceBookOverride
DeleteLlmPriceBookOverrideObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the override was deleted. |
Related types
deletePlatformAgent (mutation)
deletePlatformAgent is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Delete a platform agent. For Agentforce, removes its shared domain assignments and requires monitor write access in every affected domain. Previously imported traces are retained.
Arguments
| Argument | Type | Description |
|---|---|---|
agentMcon | String! | MCON of the platform agent to delete |
Returns
DeletePlatformAgent
Example
mutation DeletePlatformAgent($agentMcon: String!) {
deletePlatformAgent(agentMcon: $agentMcon) {
success
}
}Types used only by deletePlatformAgent
deletePlatformAgentDeletePlatformAgent
DeletePlatformAgentObject type.
| Field | Type | Description |
|---|---|---|
success | Boolean | Whether the platform agent was successfully deleted |
deleteReinforcementLoopIssuesByIssueId (mutation)
deleteReinforcementLoopIssuesByIssueId is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
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.
Arguments
| Argument | Type | Description |
|---|---|---|
issueUuids | [UUID!]! | UUIDs of the issues to delete — each the issueUuid of a getReinforcementLoopV2Issues node. Unknown and already-deleted uuids are skipped. |
Returns
DeleteReinforcementLoopIssuesByIssueId
Example
mutation DeleteReinforcementLoopIssuesByIssueId($issueUuids: [UUID!]!) {
deleteReinforcementLoopIssuesByIssueId(issueUuids: $issueUuids) {
deletedCount
}
}Types used only by deleteReinforcementLoopIssuesByIssueId
deleteReinforcementLoopIssuesByIssueIdDeleteReinforcementLoopIssuesByIssueId
DeleteReinforcementLoopIssuesByIssueIdObject type.
| Field | Type | Description |
|---|---|---|
deletedCount | Int! | Number of issues actually deleted. |
Related types
discoverRecentAgents (mutation)
discoverRecentAgents is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
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 after another one for the same account and set of trace tables returns 0 without reading. When newAgentCount is above zero, read the agent list again.
Returns
DiscoverRecentAgents
Example
mutation DiscoverRecentAgents {
discoverRecentAgents {
newAgentCount
}
}Types used only by discoverRecentAgents
discoverRecentAgentsDiscoverRecentAgents
DiscoverRecentAgentsObject type.
| Field | Type | Description |
|---|---|---|
newAgentCount | Int! | How many agents you can see that this call recorded or re-stamped. Zero when there were none, when a recent call already ran, or when the span read or the registry write failed. |
generateGoldenBaseline (mutation)
generateGoldenBaseline is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Score a golden set's cases and overwrite its current baseline.
Arguments
| Argument | Type | Description |
|---|---|---|
setUuid | UUID! | Golden set to generate a baseline for. |
targetPath | String | Agent REST endpoint path to hit; defaults to the set's prod target path. |
Returns
GenerateGoldenBaseline
Example
mutation GenerateGoldenBaseline($setUuid: UUID!) {
generateGoldenBaseline(setUuid: $setUuid) {
baseline {
uuid
status
summary
isStale
targetRef
agentConfigSnapshot
createdTime
updatedTime
}
}
}Types used only by generateGoldenBaseline
generateGoldenBaselineGenerateGoldenBaseline
GenerateGoldenBaselineObject type.
| Field | Type | Description |
|---|---|---|
baseline | GoldenBaseline |
Related types
ignoreReinforcementLoopIssue (mutation)
ignoreReinforcementLoopIssue is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Marks the issue ignored with a reason. The scheduled digest leaves ignored issues out. Ignoring again replaces the reason. unignoreReinforcementLoopIssue restores the issue. Monte Carlo staff can't ignore issues.
Arguments
| Argument | Type | Description |
|---|---|---|
comment | String | |
issueUuid | UUID! | The issueUuid of a getReinforcementLoopV2Issues node. |
reason | ReinforcementLoopIssueDispositionReason! |
Returns
IgnoreReinforcementLoopIssue
Example
mutation IgnoreReinforcementLoopIssue($issueUuid: UUID!, $reason: ReinforcementLoopIssueDispositionReason!) {
ignoreReinforcementLoopIssue(issueUuid: $issueUuid, reason: $reason) {
issueUuid
}
}Types used only by ignoreReinforcementLoopIssue
ignoreReinforcementLoopIssueIgnoreReinforcementLoopIssue
IgnoreReinforcementLoopIssueObject type.
| Field | Type | Description |
|---|---|---|
issueUuid | UUID! |
Related types
ReinforcementLoopIssueDispositionReason, UUID
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
