Use cases (GraphQL)

Related queries and mutations in Catalog and lineage. Each has its own section.

Queries

getTableDescriptions (query)

getTableDescriptions is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Get the use-case table description for a list of tables by MCON, in one call. Returns one entry per requested MCON that has a stored description; MCONs without a UseCaseTable row or description are omitted. MCONs are globally unique, so no warehouse is needed.

Arguments

ArgumentTypeDescription
mcons[String!]!List of table MCONs to look up

Returns

[TableDescription!]

Example

query GetTableDescriptions($mcons: [String!]!) {
  getTableDescriptions(mcons: $mcons) {
    mcon
    tableDescription
  }
}

Types used only by getTableDescriptions

TableDescription

Object type. A table's LLM-generated use-case description, keyed by MCON.

FieldTypeDescription
mconString!Unique table identifier (MCON)
tableDescriptionString!LLM-generated description of the table

getTableUseCases (query)

getTableUseCases is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Get use case memberships for a list of tables by MCON

Arguments

ArgumentTypeDescription
mcons[String!]!List of table MCONs to look up
warehouseIdUUID!The warehouse UUID
includeDeletedAssetsBooleanWhen true, returns memberships for tables that have been soft-deleted in the warehouse, and returns memberships even if the warehouse itself has been soft-deleted. When false (default), soft-deleted tables and memberships for a soft-deleted warehouse are excluded — every input mcon is still returned with an empty memberships list. Default: false.

Returns

[TableUseCasesResult!]

Example

query GetTableUseCases($mcons: [String!]!, $warehouseId: UUID!) {
  getTableUseCases(mcons: $mcons, warehouseId: $warehouseId) {
    mcon
  }
}

Types used only by getTableUseCases

TableUseCasesResult

Object type. Use case memberships for a single table MCON.

FieldTypeDescription
mconString!Unique table identifier (MCON)
memberships[TableUseCaseMembership!]!Use case memberships for this table

Related types

TableUseCaseMembership, UUID

getUseCases (query)

getUseCases is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Get all use cases for a warehouse

Arguments

ArgumentTypeDescription
warehouseIdUUID!The warehouse UUID
firstInt!Number of items to return (page size)
domainIdUUIDFilter to use cases with at least one tagged asset in this domain. Must be one of the domains the user has access to. When omitted, the user's domain restrictions (if any) are applied automatically.
includeDeletedAssetsBooleanWhen true, returns use cases even if the requested warehouse has been soft-deleted. When false (default), returns no use cases for a soft-deleted warehouse. Default: false.
beforeString
afterString
lastInt

Returns

UseCaseConnection

Example

query GetUseCases($warehouseId: UUID!, $first: Int!) {
  getUseCases(warehouseId: $warehouseId, first: $first) {
    totalCount
  }
}

Types used only by getUseCases

UseCaseConnection

Object type. Paginated list of use cases.

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[UseCaseEdge]!Contains the nodes in this connection.
totalCountIntTotal number of use cases matching the query
UseCaseEdge

Object type. A Relay edge containing a UseCase and its cursor.

FieldTypeDescription
nodeUseCaseOutputThe item at the end of the edge
cursorString!A cursor for use in pagination
UseCaseOutput

Object type. A business use case scoped to a warehouse.

FieldTypeDescription
idUUID!Stable use case identifier
nameString!Human-readable use case name
descriptionStringUse case description
criticalityCriticalityBusiness-level criticality
tableCountInt!Total number of tables assigned to this use case
tagKeyString!Tag identifier for this use case, used as the ObjectPropertyModel.property_name on tagged tables (e.g. 'use-case-revenue_reporting-ab12cd').

Related types

Criticality, PageInfo, UUID

getUseCaseTableDetails (query)

getUseCaseTableDetails is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Search UseCaseTable rows for a warehouse. Optionally look up by mcon, or rank results by semantic similarity — either to a natural-language query or to another mcon's stored embedding. At most one of mcon, tableDescriptionQuery, or similarToMcon may be supplied.

Arguments

ArgumentTypeDescription
warehouseIdUUID!The warehouse UUID
firstInt!Number of items to return (page size)
mconStringWhen set, return only the row for this mcon.
tableDescriptionQueryStringWhen set, rank results by semantic similarity of this query against each table's description embedding. Rows without a stored embedding are excluded.
similarToMconStringWhen set, find tables similar to this mcon — uses its stored embedding as the query vector and ranks the rest of the warehouse by cosine similarity. The seed mcon itself is excluded from the results.
beforeString
afterString
lastInt

Returns

UseCaseTableDetailConnection

Example

query GetUseCaseTableDetails($warehouseId: UUID!, $first: Int!) {
  getUseCaseTableDetails(warehouseId: $warehouseId, first: $first) {
    totalCount
  }
}

Types used only by getUseCaseTableDetails

UseCaseTableDetail

Object type. A warehouse table tracked for use-case criticality scoring.

Backed by UseCaseTableModel. Distinct from UseCaseTableOutput, which wraps
ObjectPropertyModel tags for the getUseCaseTables query.

FieldTypeDescription
idUUID!Stable UseCaseTable identifier
mconString!Unique table identifier (MCON)
tableDescriptionStringLLM-generated description of the table
isGoldenBoolean!Whether this table is classified as a golden-layer table
similarityScoreFloatCosine similarity to the semantic-search query (1.0 = identical direction, 0.0 = orthogonal). Null when no semantic search was performed.
useCases[TableUseCaseMembership!]!Use case memberships for this table.
UseCaseTableDetailConnection

Object type. Paginated list of use case table details.

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[UseCaseTableDetailEdge]!Contains the nodes in this connection.
totalCountIntTotal number of tables matching the query
UseCaseTableDetailEdge

Object type. A Relay edge containing a UseCaseTableDetail and its cursor.

FieldTypeDescription
nodeUseCaseTableDetailThe item at the end of the edge
cursorString!A cursor for use in pagination

Related types

PageInfo, TableUseCaseMembership, UUID

getUseCaseTables (query)

getUseCaseTables is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Get all tables associated with a use case. Tables are ordered with golden tables first, then by criticality (HIGH → MEDIUM → LOW → other), then by mcon ascending — so the highest-priority tables are seen first when paginating.

Arguments

ArgumentTypeDescription
warehouseIdUUID!The warehouse UUID
useCaseNameString!The use case name
firstInt!Number of items to return (page size)
goldenTablesOnlyBooleanWhen true, only golden tables are returned. When false, both golden and non-golden tables are returned. Omitting the argument or passing null is equivalent to true. Default: true.
criticalityCriticalityWhen set, only return tables with this criticality level.
domainIdUUIDFilter to tables in this domain. Must be one of the domains the user has access to. When omitted, the user's domain restrictions (if any) are applied automatically.
includeDeletedAssetsBooleanWhen true, includes tables that have been soft-deleted in the warehouse, and returns data even if the warehouse itself has been soft-deleted. When false (default), soft-deleted tables and tables in a soft-deleted warehouse are excluded. Default: false.
beforeString
afterString
lastInt

Returns

UseCaseTableConnection

Example

query GetUseCaseTables($warehouseId: UUID!, $useCaseName: String!, $first: Int!) {
  getUseCaseTables(warehouseId: $warehouseId, useCaseName: $useCaseName, first: $first) {
    totalCount
  }
}

Types used only by getUseCaseTables

UseCaseTableConnection

Object type. Paginated list of use case tables.

FieldTypeDescription
pageInfoPageInfo!Pagination data for this connection.
edges[UseCaseTableEdge]!Contains the nodes in this connection.
totalCountIntTotal number of tables matching the query
UseCaseTableEdge

Object type. A Relay edge containing a UseCaseTable and its cursor.

FieldTypeDescription
nodeUseCaseTableOutputThe item at the end of the edge
cursorString!A cursor for use in pagination
UseCaseTableOutput

Object type. A table associated with a use case.

FieldTypeDescription
mconString!Unique table identifier (MCON)
criticalityCriticality!Table criticality
reasoningStringExplanation for the criticality assessment
isGoldenTableBoolean!Whether this table is a golden table

Related types

Criticality, PageInfo, UUID

getUseCaseTableSummary (query)

getUseCaseTableSummary is a query in the Monte Carlo GraphQL API, in Catalog and lineage. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Get table criticality counts for a use case

Arguments

ArgumentTypeDescription
warehouseIdUUID!The warehouse UUID
useCaseNameString!The use case name
domainIdUUIDFilter counts to tables in this domain. Must be one of the domains the user has access to. When omitted, the user's domain restrictions (if any) are applied automatically.
includeDeletedAssetsBooleanWhen true, counts tables that have been soft-deleted in the warehouse, and returns counts even if the warehouse itself has been soft-deleted. When false (default), soft-deleted tables and counts for a soft-deleted warehouse are excluded. Default: false.

Returns

UseCaseTableSummaryOutput

Example

query GetUseCaseTableSummary($warehouseId: UUID!, $useCaseName: String!) {
  getUseCaseTableSummary(warehouseId: $warehouseId, useCaseName: $useCaseName) {
    totalTablesHigh
    totalTablesMedium
    totalTablesLow
  }
}

Types used only by getUseCaseTableSummary

UseCaseTableSummaryOutput

Object type. Counts of tables by criticality level for a use case.

FieldTypeDescription
totalTablesHighInt!Number of HIGH criticality tables
totalTablesMediumInt!Number of MEDIUM criticality tables
totalTablesLowInt!Number of LOW criticality tables

Related types

UUID

Source: The GraphQL API reference

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