AI agent requests and activity (GraphQL)

Related queries and mutations in AI features. Each has its own section.

Queries

getAgentActionLog (query)

getAgentActionLog is a query in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

The action decisions AI agents made on an alert (allowed or blocked), newest first. Actions a person took in the UI are not included.

Arguments

ArgumentTypeDescription
alertIdUUID!UUID of the alert.

Returns

[AgentActionLogEntry!]!

Example

query GetAgentActionLog($alertId: UUID!) {
  getAgentActionLog(alertId: $alertId) {
    id
    agent
    action
    decision
    reason
    result
    executed
    targetStatus
    actingFor
    runReference
    createdTime
    updatedTime
  }
}

Types used only by getAgentActionLog

AgentActionLogEntry

Object type. One action decision an agent made on an alert.

FieldTypeDescription
idUUID!The agent's id for this action.
agentString!The agent that decided, e.g. triage.
actionString!The action, e.g. close_alert.
decisionAgentActionDecision!
reasonStringWhy the action was allowed or blocked. Null when this request may not read it under its sampling policy. It can hold customer text.
resultGenericScalarThe outcome and its proof. Null when this request may not read it under its sampling policy. It can hold customer text.
executedBoolean!Whether the agent carried the action out. Served under every sampling policy.
targetStatusStringThe alert status the action set or would set, such as expected or no_action_needed. Served under every sampling policy. Null when unknown.
actingForStringDisplay label for the user the agent acted for; null when the agent acted on its own. Returns the user's email for human users; for agent users, returns a derived display label (e.g. Bayes on <domain>) — never the agent's internal address.
runReferenceUUIDThe agent run the action came from, e.g. a remediation plan's referenceUuid.
createdTimeDateTime!
updatedTimeDateTime!When the agent last wrote this action. A retry or an outcome update moves it.

Related types

AgentActionDecision, DateTime, GenericScalar, UUID

Mutations

requestAgentBudgetIncrease (mutation)

requestAgentBudgetIncrease is a mutation in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Email the account's admins asking them to raise the given agent's monthly run limit.

Arguments

ArgumentTypeDescription
agentBudgetLimitedAgentType!The agent whose monthly limit the requester wants raised.

Returns

RequestAgentBudgetIncrease

Example

mutation RequestAgentBudgetIncrease($agent: BudgetLimitedAgentType!) {
  requestAgentBudgetIncrease(agent: $agent) {
    success
  }
}

Types used only by requestAgentBudgetIncrease

BudgetLimitedAgentType

Enum type. An agent whose monthly run budget account admins can raise in the AI agents settings. TROUBLESHOOTING: the troubleshooting agent, which investigates alerts on demand. TRIAGE: the triage agent, which scores and prioritizes alerts.

ValueDescription
TROUBLESHOOTING
TRIAGE
RequestAgentBudgetIncrease

Object type. Email the account's admins asking them to raise an agent's monthly limit.

Succeeds only when the account is currently blocked by that agent's monthly
limit. Fails with AGENT_NOT_LIMITED when the account is unrestricted or
under its limit, and with NO_ADMINS when the account has no admins to
notify.

FieldTypeDescription
successBoolean!

requestAutoTroubleshoot (mutation)

requestAutoTroubleshoot is a mutation in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Email the account's admins asking them to turn on auto-troubleshoot.

Arguments

ArgumentTypeDescription
thresholdAutoTroubleshootRequestThreshold!The alerts the requester wants troubleshot automatically.

Returns

RequestAutoTroubleshoot

Example

mutation RequestAutoTroubleshoot($threshold: AutoTroubleshootRequestThreshold!) {
  requestAutoTroubleshoot(threshold: $threshold) {
    success
  }
}

Types used only by requestAutoTroubleshoot

AutoTroubleshootRequestThreshold

Enum type. The auto-troubleshoot threshold a user may ask admins to turn on. HIGH: troubleshoot alerts triaged High. HIGH_MEDIUM: troubleshoot alerts triaged High or Medium.

ValueDescription
HIGH
HIGH_MEDIUM
RequestAutoTroubleshoot

Object type. Email the account's admins asking them to turn on auto-troubleshoot.

Any account member may call it. Fails with AUTO_TROUBLESHOOT_ALREADY_ON when the
account-level threshold is not OFF, and with NO_ADMINS when nobody on the account can
change it. A repeat within 24 hours succeeds but sends nothing new.

FieldTypeDescription
successBoolean!

Source: The GraphQL API reference

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