Skip to content

Owl CLI Tool Inventory


This document introduces the business tool capabilities that Owl CLI can directly execute, including tool scope, permission types, CLI usage conventions, tool overview, and tool descriptions categorized by type.

The visibility and execution results of tools depend on the permissions of the API Key corresponding to the current OWL_TOKEN. If the API Key lacks permissions for the relevant resources or operations, the corresponding tool may fail to execute or return empty results.

Note

This document only describes the business tools that can be directly invoked via owl exec, and does not include CLI commands themselves, such as owl init, owl login, owl sync, owl list, owl show, owl data list, etc.

Tool Scope

The tools exposed by Owl CLI will be continuously updated along with platform capabilities. The actual visible tools are subject to the tool directory returned by owl list after completing owl sync locally.

The current document covers the following business categories:

Category Description
catalog Unified Resource Catalog, entity types, entity details, and topology relationships
dashboard Dashboard creation, replacement, and detail retrieval
data DQL namespace exploration, Log/Metrics/RUM/APM/Network/Profile/Billing data discovery, DQL documentation query, DQL validation, full query execution, and Profiling parsing
errors Error Center issue query and comment management
event Event list query and event detail retrieval
incident Incident list, incident comments, operation records, and on-call schedules
infrastructure Unified catalog resource query
llm LLM observable application list query
member Workspace member query
mdsearch Unified document search (search, document reading, directory browsing)
monitor Monitor query, creation, update, and external event reception
pipeline Pipeline list query and sample validation

Permission Types

Permission Type Meaning Usage Recommendation
Read-only Operations that do not modify workspace resources, such as queries, listing, detail retrieval, sample validation Suitable for daily troubleshooting and automated read-only execution
Write Operations that modify workspace resources, such as creation, update, appending comments, receiving external events It is recommended to confirm parameters and impact scope before using in production environments
Local Assistance Auxiliary capabilities that do not modify workspace resources, such as local DQL documentation search, local syntax validation Suitable for use before formally executing queries

CLI Usage Conventions

Type Convention
Tool Synchronization Execute owl sync first upon initial use or after platform tool updates
Category and Tool Browsing Use owl category list, owl list, owl list -c <category> to browse the tool directory
Viewing Tool Definition Before execution, it is recommended to use owl show <tool name> to view parameter definitions
Tool Execution Uniformly use owl exec <tool name> [parameters] to execute tools
Parameter Passing Supports four methods: --key value, key=value, -p '<json>', --stdin
Time Range Uniformly use 13-digit millisecond timestamps
Pagination Parameters Typically use page_size and page_index
Detail Query Usually relies on identifiers like UUID, ID, URN returned by list tools for further querying
Data Query It is recommended to first call discovery tools to obtain source, field, tag, index, then execute the formal query
Data Result Files When the tool output type is data, results are automatically written to the local data directory and can be viewed with owl data list, owl data show <file-id>

Sampling Field in Data Result Files

When the tool output type is data, the CLI writes the data file and optionally includes a sample field in the execution result:

  • sample: A numeric value (floating point), representing the sampling ratio for this query (e.g., 0.0077 indicates approximately 0.77% sampling). This field only appears when the backend returns sampling information, or when the sampling ratio can be parsed from the data file content; it is omitted when there is no sampling information.
  • When sample is present, it means the results are estimated based on sampled data. When interpreting counts, sums, and other aggregates, they need to be scaled back according to the sampling ratio before judging the magnitude.

Common CLI Command Examples:

owl sync
owl list
owl list -c data
owl show owl.data.query
owl exec owl.metric.list --mode source
owl exec owl.event.list --start_time 1712505600000 --end_time 1712592000000 --limit 20

Tool Overview

Tool Set Tool Function Permission
catalog owl.catalog.entity_type_query Query entity types supported by the unified catalog Read-only
catalog owl.catalog.entity_query Query entity list by entity type Read-only
catalog owl.catalog.entity_get Get single entity details by urn Read-only
catalog owl.catalog.entity_topology_query Query topology relationships associated with a single entity Read-only
catalog owl.catalog.all_topology_query Query global topology grouping results Read-only
dashboard owl.dashboard.create Create a dashboard Write
dashboard owl.dashboard.replace Replace existing dashboard content Write
dashboard owl.dashboard.get Get dashboard details Read-only
data owl.data.show_dql_namespace View DQL namespace list and whether indexing is supported Read-only
data owl.data.query Execute full DQL or PromQL query Read-only
data owl.data.simple_query_file Execute query using namespace + time range and other simplified parameters and write results to data file Read-only
data owl.data.search_dql_docs Query locally synchronized DQL documentation and example snippets Local Assistance
data owl.data.check_dql Validate candidate DQL statement syntax Local Assistance
data owl.metric.list Discover available source, fields, or tag keys for metric query Read-only
data owl.rum.list Discover available source or fields for RUM query Read-only
data owl.apm.list Discover available source or fields for APM query Read-only
data owl.network.list Discover available source or fields for Network query Read-only
data owl.profile.list Discover available source or fields for Profile query Read-only
data owl.logging.list Discover available source or fields for logging query Read-only
data owl.logging.cluster_task.create Create log clustering (cluster) asynchronous analysis task Read-only
data owl.logging.cluster_task.get Get log clustering asynchronous analysis task result Read-only
data owl.billing.list Discover available source or fields for Billing query Read-only
data owl.slo.list Query current workspace SLO list Read-only
data owl.log_index.list List available indexes for logging query Read-only
data owl.log_index.get Query single log index details Read-only
data owl.field_schema.get Query current field catalog Read-only
data owl.profiling.get_summary Query Profiling record summary information Read-only
data owl.profiling.parse Parse Profiling record detailed content Read-only
errors owl.errors.list Query Error Center issue list Read-only
errors owl.errors.comment.add Add a new comment to an error issue Write
errors owl.errors.comment.list Query error issue comment list Read-only
errors owl.errors.comment.update Update an existing error comment Write
event owl.event.list Query event list Read-only
event owl.event.get Query single event details Read-only
incident owl.incident.list Query incident list Read-only
incident owl.incident_comment.list Query incident comment list Read-only
incident owl.incident_comment.add Add a new comment to an incident ticket Write
incident owl.incident_operation.list Query incident operation records Read-only
incident owl.incident_schedule.list Query on-call schedule list Read-only
incident owl.incident_schedule.get Query on-call schedule details Read-only
infrastructure owl.infrastructure.list Query infrastructure object list Read-only
infrastructure owl.infrastructure.get Query single infrastructure object details Read-only
llm owl.llm.list Query LLM application list Read-only
member owl.member.list Query workspace member list Read-only
mdsearch mdsearch_search Search unified document library and return candidate documents Local Assistance
mdsearch mdsearch_document Read single document full text by id or path Local Assistance
mdsearch mdsearch_catalog Browse unified document library directory structure Local Assistance
monitor owl.monitor.list Query monitor list Read-only
monitor owl.monitor.get Query monitor details Read-only
monitor owl.monitor.upsert Create or update a monitor Write
monitor owl.monitor.receive Send external event Write
pipeline owl.pipeline.list Query Pipeline list Read-only
pipeline owl.pipeline.validate Validate Pipeline processing results with sample data Read-only

Catalog

Used for unified resource catalog entity type discovery, entity query, entity detail retrieval, and topology relationship query.

Tool Name Function Example Use Case Key Parameters Permission
owl.catalog.entity_type_query Query entity types supported by the unified catalog List entity types currently supported by Catalog page_size, page_index Read-only
owl.catalog.entity_query Query entity list by entity type Query Catalog entity list of type host entity_type, page_size, page_index Read-only
owl.catalog.entity_get Get single entity details by urn Query entity details corresponding to this urn urn Read-only
owl.catalog.entity_topology_query Query topology relationships associated with a single entity View upstream and downstream topology of this host entity urn Read-only
owl.catalog.all_topology_query Query global topology grouping results Query global topology structure of the current unified catalog None Read-only

Dashboard

Used for dashboard creation, replacement, and detail retrieval.

Tool Name Function Example Use Case Key Parameters Permission
owl.dashboard.create Create a dashboard Create a dashboard named "APM Overview" name, dashboard_json Write
owl.dashboard.replace Replace existing dashboard content Replace specified dashboard with new dashboard_json dashboard_uuid, dashboard_json Write
owl.dashboard.get Get dashboard details Query full configuration corresponding to this dashboard UUID dashboard_uuid Read-only

Data

Used for full data query and query assistance, covering data domains such as Log, Metrics, RUM, APM, Network, Profile, Billing, etc.

Tool Name Function Example Use Case Key Parameters Permission
owl.data.show_dql_namespace List currently supported DQL namespaces and indicate whether index is supported View which DQL namespaces are currently supported None Read-only
owl.data.query Execute full DQL or PromQL query Query 500 errors in nginx logs from the last 1 hour dql_namespace, start_time, end_time, query_mode, query_text, source, select, index, same_org_workspace_uuids Read-only
owl.data.simple_query_file Execute query using namespace + time range and other simplified parameters and write results to data file Query logs and write to file directly by namespace and filter conditions without manually writing full DQL namespace, start_time, end_time, index, source, select_clause, where_clause, group_by_clause, limit, same_org_workspace_uuids Read-only
owl.data.search_dql_docs Query locally synchronized DQL documentation and example snippets Search for the syntax of percentile in DQL query, refresh_docs, limit Local Assistance
owl.data.check_dql Validate candidate DQL statement syntax Validate if a handwritten DQL is correct query_text Local Assistance
owl.metric.list Discover available source, fields, or tag keys for metric query List available measurements or tags in the metric domain mode, source Read-only
owl.rum.list Discover available source or fields for RUM query List available fields in the RUM domain mode, source Read-only
owl.apm.list Discover available source or fields for APM query Query available sources in the APM domain mode, source Read-only
owl.network.list Discover available source or fields for Network query List available fields in the Network domain mode, source Read-only
owl.profile.list Discover available source or fields for Profile query View available sources in the Profile domain mode, source Read-only
owl.logging.list Discover available source or fields for logging query List available sources in the logging domain mode, source Read-only
owl.logging.cluster_task.create Create log clustering (cluster) asynchronous analysis task, grouping by similar logs or fields Perform clustering on recent logs by specified fields, returning task_id timeRange, analysisField, namespace, conditions, query, indexes Read-only
owl.logging.cluster_task.get Get log clustering asynchronous analysis task result Use task_id returned by cluster_task.create to pull clustering results (task_status=ok indicates completion) task_id Read-only
owl.billing.list Discover available source or fields for Billing query List available fields in the Billing domain mode, source Read-only
owl.slo.list Query current workspace SLO list, searchable by name or monitor UUID List SLOs of the current workspace search Read-only
owl.log_index.list List available indexes for logging query List current log indexes None Read-only
owl.log_index.get Query single log index details Query details of this log index UUID index_uuid Read-only
owl.field_schema.get Query current field catalog for query field completion List current available field catalog None Read-only
owl.profiling.get_summary Query Profiling record summary information View summary information of this profile_id profile_id, timeRange Read-only
owl.profiling.parse Parse Profiling record detailed content Parse detailed stack information of this Profiling record profile_id, language, type, profile_start, profile_end Read-only

Cross-Workspace Query Parameter within Same Organization same_org_workspace_uuids

Both owl.data.query and owl.data.simple_query_file support the optional parameter same_org_workspace_uuids, used to include other workspaces within the same organization in a single query, commonly seen in scenarios where a trace spans multiple workspaces.

  • Type is a string array, elements are workspace_uuid of workspaces.
  • Values come from workspace_uuid returned by owl workspace same-org list, do not pass the workspace_id returned by that command.
  • Accepts up to 20 workspace UUIDs.
  • Do not pass all same-organization spaces by default; final validation of same-organization accessibility is performed by the backend.

Errors

Used for Error Center issue list query, and comment addition, query, and update.

Tool Name Function Example Use Case Key Parameters Permission
owl.errors.list Query Error Center issue list Query error issue list from the last 24 hours start_time, end_time, page_size, page_index, conditions, assigner, issue_status Read-only
owl.errors.comment.add Add a new comment to an error issue Add a troubleshooting comment to this error issue issue_id, comment, attachment_uuids, extend Write
owl.errors.comment.list Query comment list under an error issue View comment records of this error issue issue_id, page_size, page_index Read-only
owl.errors.comment.update Update an existing error comment Update the content of this error comment comment_uuid, comment, attachment_uuids, extend Write

Event

Used for Event Center list query and event detail retrieval.

Tool Name Function Example Use Case Key Parameters Permission
owl.event.list Query event list Query critical events from the last 1 hour start_time, end_time, status, limit Read-only
owl.event.get Query single event details Query details of this event doc_id doc_id Read-only

Incident

Used for incident list, incident comments, operation records, and on-call schedule query.

Tool Name Function Example Use Case Key Parameters Permission
owl.incident.list Query incident list Query all current incident tickets search, page_size, page_index Read-only
owl.incident_comment.list Query incident comment list View comment records of this incident ticket incident_uuid Read-only
owl.incident_comment.add Add a new comment to an incident ticket Add a processing progress comment to this incident ticket incident_uuid, comment Write
owl.incident_operation.list Query incident operation records View operation history of this incident ticket incident_uuid, page_size, page_index Read-only
owl.incident_schedule.list Query on-call schedule list Query current on-call schedule list search, page_size, page_index Read-only
owl.incident_schedule.get Query on-call schedule details Query detailed configuration of this on-call schedule schedule_uuid Read-only

Infrastructure

Used for infrastructure object list and detail query, covering resource objects such as hosts, containers, processes, etc.

Tool Name Function Example Use Case Key Parameters Permission
owl.infrastructure.list Query infrastructure object list Query all current host objects resource_type, limit, filters Read-only
owl.infrastructure.get Query single infrastructure object details Query detailed information of this container object resource_type, identity_value Read-only

LLM

Used for LLM observable application list query.

Tool Name Function Example Use Case Key Parameters Permission
owl.llm.list Query LLM application list List all current LLM applications search, type, page_size, page_index Read-only

Member

Used for workspace member list query and search by name, email keywords.

Tool Name Function Example Use Case Key Parameters Permission
owl.member.list Query workspace member list Search for members whose email contains alice search Read-only

Monitor

Used for monitor list query, detail retrieval, creation or update, and external event reception.

Tool Name Function Example Use Case Key Parameters Permission
owl.monitor.list Query monitor list Query currently enabled monitors search, status_list Read-only
owl.monitor.get Query monitor details Query full configuration of this monitor rule rule_uuid Read-only
owl.monitor.upsert Create a monitor or update an existing monitor Create a new external event monitor json_script, rule_uuid, status, secret, alert_policy_uuids, tags Write
owl.monitor.receive Send external event to the receiver Send a test event to this monitor event, target, monitor, extra_data Write

Pipeline

Used for Pipeline list query and sample validation.

Tool Name Function Example Use Case Key Parameters Permission
owl.pipeline.list Query Pipeline list and return decoded content List Pipelines whose name contains nginx search, scope, categories Read-only
owl.pipeline.validate Validate Pipeline processing results with sample data Use this log sample to validate if this Pipeline can parse correctly content, testData, dataType Read-only

mdsearch

Used for unified document library search, single document reading, and directory browsing, supporting Chinese, English, and mixed language queries.

Tool Name Function Example Use Case Key Parameters Permission
mdsearch_search Search unified document library and return sorted candidate documents Search for integration access documentation q, top, path_prefix, tags, mode, sort Local Assistance
mdsearch_document Read single document full text by id or path Read full content of a candidate document id, meta Local Assistance
mdsearch_catalog Browse top-level directory and representative documents of the unified document library Understand the overall structure of the document library None Local Assistance

CLI Usage Paths

Data Query Issues

Applicable to issues like "query metrics, logs, RUM, APM, Network, Profile, Billing data", etc.

  1. First execute owl.data.show_dql_namespace to confirm the target namespace;
  2. Call discovery tools by data domain:

    • Metrics: owl.metric.list
    • RUM: owl.rum.list
    • APM: owl.apm.list
    • Network: owl.network.list
    • Profile: owl.profile.list
    • Logging: owl.logging.list
    • Billing: owl.billing.list
    • Log Indexes: owl.log_index.list
    • Field Catalog: owl.field_schema.get
  3. When needing to confirm DQL syntax, first call owl.data.search_dql_docs to search documentation;

  4. After manually writing the full DQL, first call owl.data.check_dql for local validation;
  5. Finally call owl.data.query to execute the formal query.

Profiling Analysis Issues

Applicable to issues like "already have a profile_id, want to view summary or parse detailed stack information", etc.

  1. First locate the target profile_id in the Profiling data domain via owl.data.query;
  2. Call owl.profiling.get_summary to get summary information;
  3. Reuse language, type, profile_start, profile_end from the summary result, then call owl.profiling.parse to parse detailed content.

Incident Troubleshooting Issues

Applicable to issues like "query incident tickets, track processing progress, add comments", etc.

  1. First call owl.incident.list to query incident tickets;
  2. Based on incident_uuid, continue calling:

    • owl.incident_comment.list to view comments
    • owl.incident_operation.list to view operation records
    • When needing to add processing progress, call owl.incident_comment.add.

Dashboard Management Issues

Applicable to issues like "create dashboard, replace dashboard content, view existing dashboard configuration", etc.

  1. Call owl.dashboard.create when creating a new dashboard;
  2. Call owl.dashboard.replace when replacing an existing dashboard;
  3. Call owl.dashboard.get when needing to view current configuration.

Monitor Management Issues

Applicable to issues like "view monitors, create monitors, update monitors, send test events", etc.

  1. First call owl.monitor.list to browse target monitors;
  2. Call owl.monitor.get when details are needed;
  3. Call owl.monitor.upsert when creating or updating;
  4. Call owl.monitor.receive when needing to send external events to verify the reception pipeline.

Feedback

Is this page helpful? ×