OWL CLI Tool Reference¶
This document describes the business tool capabilities that OWL CLI can currently execute directly, including tool scope, permission types, CLI conventions, tool overview, and tool descriptions organized by category.
The visible scope of tools and their execution results depend on the permissions of the API Key corresponding to the current OWL_TOKEN. If an API Key does not have the corresponding resource or operation permissions, the corresponding tool may fail or return empty results.
Note
This document describes only business tools that can be called directly through owl exec; it does not cover CLI commands themselves, such as owl init, owl login, owl sync, owl list, owl show, and owl data list.
v1.8.0 introduces field search, pagination, and note expected_etag. Refer to the current tool schema for complete parameters. For the upgrade order and write recovery rules, see v1.8.0 Release Notes.
Tool Scope¶
The tools exposed by OWL CLI are continuously updated as platform capabilities evolve. The tools actually visible are determined by the tool catalog returned by owl list after owl sync is completed locally.
This document covers the following business categories:
| Category | Description |
|---|---|
account |
Same-organization Workspace discovery |
catalog |
Querying, creating, and modifying Unified Catalog Entities and querying topology relations |
dashboard |
Dashboard creation, replacement, and detail retrieval |
data |
DQL namespace discovery; log/metric/RUM/APM/Network/Profile/Billing data discovery; DQL documentation lookup; DQL validation; full queries; data forwarding asynchronous queries; same-organization cross-workspace trace queries; and Profiling parsing |
errors |
Error Center issue queries and comment management |
event |
Event list queries and event detail retrieval |
incident |
Incident lists and details, related event references, Incident comments, operation records, and On-Call schedules |
infrastructure |
Unified Catalog resource queries |
llm |
LLM observability application list queries |
workspace |
Cross-workspace data query authorization scope discovery and current Workspace member and team queries |
mdsearch |
Unified document search (search, document reading, catalog browsing) |
monitor |
Monitor queries, creation, updates, and external event reception |
nbook_note |
Querying, reading, creating, modifying, and deleting standard notes and Runbooks |
pipeline |
Pipeline list queries and sample validation |
Permission Types¶
| Permission Type | Meaning | Usage Recommendation |
|---|---|---|
| Read-only | Operations such as queries, lists, detail retrieval, and sample validation that do not modify Workspace resources | Suitable for day-to-day troubleshooting and automated read-only execution |
| Write | Operations such as creation, updates, appending comments, and receiving external events that modify Workspace resources | Confirm parameters and scope of impact before using in production |
| Local assistance | Auxiliary capabilities such as local DQL documentation search and local syntax validation that do not modify Workspace resources | Suitable for use before formally executing queries |
CLI Conventions¶
When the target for an authorized cross-workspace query is not yet determined, first call owl.workspace.data_authorized.list, then pass workspace_uuids and target_region to owl.data.query or owl.data.simple_query_file. A single query is limited to one target region. If you omit the scope parameters, the query applies to the current Workspace. List page numbers and data cursors are handled separately; see Cross-Workspace Query Guide for details.
| Type | Convention |
|---|---|
| Tool sync | Before first use or after platform tools are updated, run owl sync first |
| Category and tool browsing | Use owl category list, owl list, and owl list -c <category> to browse the tool catalog |
| View tool definitions | Before execution, it is recommended to use owl show <tool name> to view parameter definitions |
| Tool execution | Use owl exec <tool name> [parameters] consistently for tool execution |
| Parameter passing | Supports four methods: --key value, key=value, -p '<json>', and --stdin |
| Time range | Use 13-digit millisecond timestamps consistently |
| Pagination parameters | Typically uses page_size and page_index |
| Detail queries | Typically relies on identifiers such as UUID, ID, and URN returned by list tools for follow-up queries |
| Data queries | It is recommended to first call discovery tools to obtain source, field, tag, and 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 and 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 (float) indicating the sampling ratio for this query (for example,0.0077means sampling at approximately 0.77%). It appears only when the backend returns sampling information or when the sampling ratio can be parsed from the data file content; when no sampling information is available, this field is omitted.- When
sampleis present, the results are estimated based on sampled data. For aggregate interpretation such as counts and sums, scale the values back according to the sampling ratio before assessing 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 --start_time 1792548000000 --end_time 1792551600000
owl exec owl.event.list --start_time 1712505600000 --end_time 1712592000000 --limit 20
Tool Overview¶
| Toolset | Tool | Function | Permission |
|---|---|---|---|
account |
owl.account.workspace.same_org.list |
Lists Workspaces in the same organization as the current API Key Workspace | Read-only |
catalog |
owl.catalog.entity_type_query |
Queries the Entity Types supported by Unified Catalog | Read-only |
catalog |
owl.catalog.entity_query |
Filters Entities by type, name, URN, or attributes | Read-only |
catalog |
owl.catalog.entity_get |
Gets details of a single Entity by urn |
Read-only |
catalog |
owl.catalog.entity_create |
Creates an Entity under an existing Entity Type | Write |
catalog |
owl.catalog.entity_modify |
Modifies the display name, attributes, or relations of a specified Entity | Write |
catalog |
owl.catalog.entity_topology_query |
Queries topology relations associated with a single Entity | Read-only |
catalog |
owl.catalog.all_topology_query |
Queries global topology grouping results | Read-only |
dashboard |
owl.dashboard.create |
Creates a dashboard | Write |
dashboard |
owl.dashboard.replace |
Replaces the content of an existing dashboard | Write |
dashboard |
owl.dashboard.get |
Gets dashboard details | Read-only |
data |
owl.data.show_dql_namespace |
Views the list of DQL namespaces and whether each supports index |
Read-only |
data |
owl.data.query |
Executes full DQL or PromQL queries | Read-only |
data |
owl.data.simple_query_file |
Executes queries with simplified parameters such as namespace and time range and writes results to a data file; limit ranges from 1 to 10000 |
Read-only |
data |
owl.external_datasource.list |
Discovers external data sources accessible in the current Workspace | Read-only |
data |
owl.external_datasource.query |
Executes restricted read-only SQL against a configured external data source | Read-only |
data |
owl.data.same_org.trace.query |
Queries traces in the current Workspace or Workspaces in the same organization by trace_id |
Read-only |
data |
owl.data.search_dql_docs |
Searches DQL documentation snippets on the Registry server | Read-only |
data |
owl.data.read_dql_docs |
Reads content by document reference and version with pagination | Read-only |
data |
owl.data.check_dql |
Validates the syntax of candidate DQL statements | Local assistance |
data |
owl.metric.list |
Discovers source, fields, or tag keys available for metric queries |
Read-only |
data |
owl.rum.list |
Discovers source or fields available for RUM queries |
Read-only |
data |
owl.apm.list |
Discovers source or fields available for APM queries |
Read-only |
data |
owl.network.list |
Discovers source or fields available for Network queries |
Read-only |
data |
owl.profile.list |
Discovers source or fields available for Profile queries |
Read-only |
data |
owl.logging.list |
Discovers source or fields available for log queries |
Read-only |
data |
owl.logging.cluster_task.create |
Creates an asynchronous log clustering (cluster) analysis task, grouping by similar logs or fields | Read-only |
data |
owl.logging.cluster_task.get |
Gets the results of an asynchronous log clustering analysis task | Read-only |
data |
owl.data_forwarding.rule.list |
Discovers data forwarding rules queryable by the current account | Read-only |
data |
owl.data_forwarding.query.create |
Creates an asynchronous object storage query task for data forwarding | Read-only |
data |
owl.data_forwarding.query.get |
Queries the status of an asynchronous data forwarding task and writes masked results to a local data file | Read-only |
data |
owl.billing.list |
Discovers source or fields available for Billing queries |
Read-only |
data |
owl.slo.list |
Queries the SLO list in the current Workspace | Read-only |
data |
owl.log_index.list |
Lists indexes available for log queries | Read-only |
data |
owl.log_index.get |
Queries details of a single log index | Read-only |
data |
owl.field_schema.get |
Queries the current field catalog | Read-only |
data |
owl.field_schema.search |
Searches field, metric, and measurement configurations as needed | Read-only |
data |
owl.profiling.get_summary |
Queries Profiling record summary information | Read-only |
data |
owl.profiling.parse |
Parses detailed Profiling record content | Read-only |
errors |
owl.errors.list |
Queries the Error Center issue list | Read-only |
errors |
owl.errors.comment.add |
Adds a comment to an error issue | Write |
errors |
owl.errors.comment.list |
Queries the comment list for an error issue | Read-only |
errors |
owl.errors.comment.update |
Updates an existing error comment | Write |
event |
owl.event.list |
Queries the event list | Read-only |
event |
owl.event.get |
Queries details of a single event | Read-only |
event |
owl.event.resolve |
Resolves event details by event document ID, event or Incident ID, or link | Read-only |
incident |
owl.incident.list |
Queries the Incident List | Read-only |
incident |
owl.incident.get |
Queries Incident Details and paginated related event references | Read-only |
incident |
owl.incident_comment.list |
Queries the Incident comment list | Read-only |
incident |
owl.incident_comment.add |
Adds a comment to an Incident | Write |
incident |
owl.incident_operation.list |
Queries Incident operation records | Read-only |
incident |
owl.incident_schedule.list |
Queries the On-Call schedule list | Read-only |
incident |
owl.incident_schedule.get |
Queries On-Call schedule details | Read-only |
infrastructure |
owl.infrastructure.list |
Queries the infrastructure object list | Read-only |
infrastructure |
owl.infrastructure.get |
Queries details of a single infrastructure object | Read-only |
llm |
owl.llm.list |
Queries the LLM application list | Read-only |
workspace |
owl.workspace.data_authorized.list |
Discovers authorized query Workspaces for the current Workspace by region | Read-only |
workspace |
owl.workspace.member.list |
Queries the Workspace member list | Read-only |
workspace |
owl.workspace.member.group_list |
Queries teams in the current Workspace | Read-only |
mdsearch |
mdsearch_search |
Searches the unified document library and returns candidate documents | Local assistance |
mdsearch |
mdsearch_document |
Reads the full text of a single document by id or path |
Local assistance |
mdsearch |
mdsearch_catalog |
Browses the catalog structure of the unified document library | Local assistance |
monitor |
owl.monitor.list |
Queries the Monitor list | Read-only |
monitor |
owl.monitor.get |
Queries Monitor details | Read-only |
monitor |
owl.monitor.upsert |
Creates or updates a Monitor | Write |
monitor |
owl.monitor.receive |
Sends external events | Write |
nbook_note |
owl.nbook_note.list |
Queries basic information about standard notes and Runbooks visible to the current account | Read-only |
nbook_note |
owl.nbook_note.get |
Gets note or Runbook details and Markdown content | Read-only |
nbook_note |
owl.nbook_note.add |
Creates a standard note or Runbook | Write |
nbook_note |
owl.nbook_note.modify |
Modifies a standard note or Runbook | Write |
nbook_note |
owl.nbook_note.delete |
Deletes a standard note or Runbook | Write |
pipeline |
owl.pipeline.list |
Queries the Pipeline list | Read-only |
pipeline |
owl.pipeline.validate |
Validates Pipeline processing results with sample data | Read-only |
Account¶
Starting from v1.6.0, it can be invoked through owl exec owl.account.workspace.same_org.list and shares the list contract with owl workspace same-org list and MCP. The result contains items and page_info; page_size defaults to 20 and ranges from 1 to 100. For the next page, pass next_before_workspace_id verbatim as a positive integer before_workspace_id; do not derive it from array indexes. workspace_uuids can filter results; an empty array means no filtering. Use the returned workspace_uuid only for same-organization Trace queries; this list does not establish authorization for general data queries.
| Tool Name | Function | Example Question | Key Parameters | Permission |
|---|---|---|---|---|
owl.account.workspace.same_org.list |
Lists Workspaces in the same organization as the current Workspace, in descending Workspace ID order | List Workspaces in the same organization as the current Workspace | workspace_uuids, page_size, before_workspace_id |
Read-only |
Catalog¶
Create and Modify Unified Catalog Entities
Used for Entity Type discovery, Entity queries, creation, modification, and topology relation queries in Unified Catalog. When creating or modifying Entities, the API Key used must have Unified Catalog management permissions.
| Tool Name | Function | Example Use | Key Parameters | Permission |
|---|---|---|---|---|
owl.catalog.entity_type_query |
Queries the Entity Types supported by Unified Catalog | List the Entity Types currently supported by Unified Catalog | page_size, page_index |
Read-only |
owl.catalog.entity_query |
Filters Entities by type, name, URN, or attributes | Find the service Entity named checkout-api exactly |
entity_type, name, search, urn, filters, page_size, page_index |
Read-only |
owl.catalog.entity_get |
Gets details of a single Entity by urn |
Query details of the Entity corresponding to this urn |
urn |
Read-only |
owl.catalog.entity_create |
Creates an Entity under an existing Entity Type | Create a service Entity named checkout-api |
request_id, entity_type, name, display_name, attributes, relation_modes |
Write |
owl.catalog.entity_modify |
Modifies the display name, attributes, or relations of a specified Entity | Modify the display name of a service Entity and retain other configurations | request_id, urn, display_name, attributes, relation_modes |
Write |
owl.catalog.entity_topology_query |
Queries topology relations associated with a single Entity | View the upstream and downstream topology of this Host Entity | urn |
Read-only |
owl.catalog.all_topology_query |
Queries global topology grouping results | Query the global topology structure of the current Unified Catalog | groupByFields |
Read-only |
entity_query must specify entity_type. name is used for exact matching, and search is used for fuzzy search of name, display name, or URN; they cannot be used together. You can also narrow the scope with a full urn or filters.
Create and Modify Entities¶
- Call
owl.catalog.entity_type_queryto confirm available types and the field requirements for that type. If you need to set the owning team, first useowl.workspace.member.group_listto find the team name. - Call
owl.catalog.entity_queryto find the target and avoid duplicate creation. When modifying an existing Entity, use the fullurnreturned by the query and verify the current configuration withowl.catalog.entity_get. - After verifying the content to be written, call
owl.catalog.entity_createorowl.catalog.entity_modify. When complete, you can return to the platform's Unified Catalog to view the Entity.
Creation must provide request_id, entity_type, and name, and complete attributes according to the type requirements. Modification must provide request_id and urn, and specify at least one item to modify. request_id uses a UUID to identify this operation; display_name is the display name. The modification tool does not support changing the Entity name or type. Attributes and relations that are not submitted are retained; the owning team owner uses the team name.
When modifying relations such as dependencies and components, set relation_modes for the submitted relation fields: add means append, and replace means replace the entire set; replace with an empty array means clear. Submit only fields and relations supported by the Entity Type.
If the result indicates pending confirmation, retain the original request_id and parameters, verify according to the returned instructions, and do not change the UUID and repeat the create or modify operation. If the result indicates that the audit status is uncertain, contact the administrator for verification first.
owl sync
owl show owl.catalog.entity_create
owl show owl.catalog.entity_modify
owl exec owl.catalog.entity_query -p '{"entity_type":"service","name":"checkout-api"}'
Dashboard¶
Used for dashboard creation, replacement, and detail retrieval.
| Tool Name | Function | Example Use | Key Parameters | Permission |
|---|---|---|---|---|
owl.dashboard.create |
Creates a dashboard | Create a dashboard named "APM Overview" | name, dashboard_json |
Write |
owl.dashboard.replace |
Replaces the content of an existing dashboard | Replace the specified dashboard with new dashboard_json |
dashboard_uuid, dashboard_json |
Write |
owl.dashboard.get |
Gets dashboard details | Query the complete configuration corresponding to this dashboard UUID | dashboard_uuid |
Read-only |
Data¶
v1.6.0 uniformly validates 13-digit integer millisecond timestamps and requires the end time to be later than the start time. Parameters that must be provided in pairs cannot be provided on only one side; required fields and maximum spans are subject to each tool's schema. The time range for owl.data.query is at most 7 days.
DQL in owl.data.query can omit the inline time window; the query window is provided by start_time / end_time. An inline absolute window must be consistent with the external window; relative windows are rejected. PromQL range selectors represent lookback duration, are not used as the query window, and do not enter DQL validation. Registry requires an available dqlcheck; if validation is unavailable, the DQL query is not executed. The request window is not equivalent to the time range actually executed by the backend or covered by the results.
Starting from v1.5.0, owl.metric/rum/apm/network/profile/logging/billing.list and owl.infrastructure.list/get must be passed 13-digit millisecond start_time / end_time, and the time window must not exceed 7 days. The time range for owl.llm.list is optional; when both are omitted, the most recent 24 hours are used.
The dql_namespace returned by owl.data.show_dql_namespace is a query alias, not the backend's original type name. When calling owl.data.query, pass it to dql_namespace; when calling the simple query or log clustering tools, pass the same value verbatim to namespace.
Used for full data queries and query assistance, covering logs, metrics, RUM, APM, Network, Profile, Billing, configured external data sources, and data forwarded to object storage.
For external data source queries, first use the list tool to discover the data source by datasource_id or name, then pass the datasource_uuid of the unique result verbatim to the query tool. datasource_id cannot replace the UUID. Raw row queries should include a deterministic ORDER BY and SQL LIMIT, and truncated=true only indicates partial results. Statement types must be based on the capabilities.statement_types returned by the list tool.
| Tool Name | Function | Example Use | Key Parameters | Permission |
|---|---|---|---|---|
owl.data.show_dql_namespace |
Lists currently supported DQL namespaces and indicates whether each supports index |
View which DQL namespaces are currently supported | None | Read-only |
owl.data.query |
Executes full DQL or PromQL queries | Query 500 errors in nginx logs over the last hour | dql_namespace, start_time, end_time, query_mode, query_text, source, select, index, workspace_uuids, target_region |
Read-only |
owl.data.simple_query_file |
Executes a query with simplified parameters such as namespace and time range and writes results to a data file | Query logs by namespace and filter conditions and write them to a file without writing full DQL manually | namespace, start_time, end_time, index, source, select_clause, where_clause, group_by_clause, limit, workspace_uuids, target_region |
Read-only |
owl.external_datasource.list |
Discovers external data sources accessible and queryable in the current Workspace | Find a configured external data source named orders | keyword, source_type, page_index, page_size |
Read-only |
owl.external_datasource.query |
Executes a single restricted read-only SQL statement against a configured external data source | Query the latest 20 orders in the orders data source | datasource_uuid, sql, timeout_seconds, max_rows |
Read-only |
owl.data.same_org.trace.query |
Queries traces in the current Workspace or Workspaces in the same organization by trace_id |
Reconstruct a trace spanning multiple Workspaces in the same organization | trace_id, workspace_uuids, start_time, end_time, where_clause, source, limit, cursor_time, cursor_token |
Read-only |
owl.data.search_dql_docs |
Searches DQL documentation snippets on the Registry server | Search DQL documentation snippets on the Registry server | query, limit |
Read-only |
owl.data.read_dql_docs |
Reads content by document reference and version with pagination | Read content by document reference and version with pagination | document_id, version, start_line, line_count |
Read-only |
owl.data.check_dql |
Validates whether candidate DQL statements conform to the syntax | Validate whether a hand-written DQL statement is correct | query_text, start_time, end_time |
Local assistance |
owl.metric.list |
Discovers source, fields, or tag keys available for metric queries |
List measurements or tags available in the metric domain | mode, source, start_time, end_time |
Read-only |
owl.rum.list |
Discovers source or fields available for RUM queries |
List fields available in the RUM domain | mode, source, start_time, end_time |
Read-only |
owl.apm.list |
Discovers source or fields available for APM queries |
Query sources available in the APM domain | mode, source, start_time, end_time |
Read-only |
owl.network.list |
Discovers source or fields available for Network queries |
List fields available in the Network domain | mode, source, start_time, end_time |
Read-only |
owl.profile.list |
Discovers source or fields available for Profile queries |
View sources available in the Profile domain | mode, source, start_time, end_time |
Read-only |
owl.logging.list |
Discovers source or fields available for log queries |
List sources available in the log domain | mode, source, start_time, end_time |
Read-only |
owl.logging.cluster_task.create |
Creates an asynchronous log clustering (cluster) analysis task, grouping by similar logs or fields | Cluster logs over a recent period by specified fields and return a task_id |
timeRange, analysisField, namespace, conditions, query, indexes |
Read-only |
owl.logging.cluster_task.get |
Gets the results of an asynchronous log clustering analysis task | Use the task_id returned by cluster_task.create to retrieve clustering results (task_status=ok means complete) |
task_id |
Read-only |
owl.data_forwarding.rule.list |
Lists data forwarding rules readable by the current account; by default, returns only rules queryable through AIAPI | Discover the exact rule_name before creating a query and confirm that the rule is queryable |
search, data_type, store_type, queryable_only, page_index, page_size |
Read-only |
owl.data_forwarding.query.create |
Creates an asynchronous object storage query task for a specified data forwarding rule | Query error records forwarded by data forwarding rule forward-rule within a specified time range and return a task_id |
rule_name, start_time, end_time, search, page_size, token |
Read-only |
owl.data_forwarding.query.get |
Gets the status of an asynchronous data forwarding task and writes the Workspace-masked response to a local data file | Use the task_id returned by create to get the result file, then check its task_status, items, and next_token |
task_id |
Read-only |
owl.billing.list |
Discovers source or fields available for Billing queries |
List fields available in the Billing domain | mode, source, start_time, end_time |
Read-only |
owl.slo.list |
Queries the SLO list in the current Workspace; can search by name or Monitor UUID | List SLOs in the current Workspace | search, page_size, page_index |
Read-only |
owl.log_index.list |
Lists indexes available for log queries | List current log indexes | None | Read-only |
owl.log_index.get |
Queries details of a single log index | Query details of this log index UUID | index_uuid |
Read-only |
owl.field_schema.get |
Queries the current field catalog to complete query fields | List the current available field catalog | None | Read-only |
owl.field_schema.search |
Searches field, metric, and measurement configurations as needed | Return type, unit source, and pagination information | kind, search, namespace, measurement, page_index, page_size |
Read-only |
owl.profiling.get_summary |
Queries Profiling record summary information | View summary information for this profile_id |
profile_id, timeRange |
Read-only |
owl.profiling.parse |
Parses detailed Profiling record content | Parse detailed stack information for this Profiling record | profile_id, language, type, profile_start, profile_end |
Read-only |
The limit parameter of owl.data.simple_query_file is an optional integer ranging from 1 to 10000; if omitted, the backend uses the default value. Out-of-range values are rejected before the request is executed.
Asynchronous Data Forwarding Queries¶
owl.data_forwarding.rule.list, owl.data_forwarding.query.create, and owl.data_forwarding.query.get are used to discover queryable rules and query data that has already been written to object storage through the rules. These three tools are single atomic calls; the CLI does not automatically select rules, poll tasks, or continue querying the next batch of data. rule.list and query.create return text results directly; query.get has an outputType of data, and each status query writes a new local data file.
OWL CLI Only
Data forwarding query tools are provided only through OWL CLI and do not appear in the Web Obsy Copilot or the MCP tool catalog.
Complete a query in the following order:
- If the user has not provided the exact rule name, or whether a rule is queryable has not been confirmed, first call
owl.data_forwarding.rule.list. For query scenarios, keepqueryable_only=true, and selectrule_namefrom results withqueryable=true; do not passrule_uuidtocreate. - Call
owl.data_forwarding.query.create, passing the selectedrule_name, query time range, and filter conditions verbatim, and obtain atask_id. - Use this
task_idto callowl.data_forwarding.query.get. The file object in its execution result does not include a data file ID: runowl data list -f json, find the corresponding entry, savefiles[].idverbatim, and then executeowl data show <file-id>. Do not derive or guess the ID from the path. - Check
task_statusin the file. If the value iscreatedorrunning, the task is not complete; even ifitemsis empty, it cannot be treated as the final result. You should later continue to callgetwith the sametask_id, and then repeat the data file listing step to view the latest status. - Stop polling when
task_statusiscompletedorfailed. Whencompleted, read the maskeditems; whenfailed, troubleshoot based on the returned failure information. - When
completedandnext_tokenis not empty, callcreateagain to query the next batch. You must retain the originalrule_name,start_time,end_time,search, andpage_size, and passnext_tokenastoken. The newcreatereturns a newtask_id.
Discover queryable rules:
owl exec owl.data_forwarding.rule.list -p '{
"queryable_only": true,
"page_index": 1,
"page_size": 20
}'
Create the first batch query task:
owl exec owl.data_forwarding.query.create -p '{
"rule_name": "forward-rule",
"start_time": 1784800000000,
"end_time": 1784886400000,
"search": {
"conditions": [
{
"key": "status",
"value": "error",
"logic": "match"
}
],
"operator": "and"
},
"page_size": 20
}'
Query task status and results:
owl exec owl.data_forwarding.query.get -p '{"task_id":"task_xxx"}'
owl data list -f json
owl data show <saved-file-ID>
When querying the next batch, reuse the original query parameters and pass next_token:
owl exec owl.data_forwarding.query.create -p '{
"rule_name": "forward-rule",
"start_time": 1784800000000,
"end_time": 1784886400000,
"search": {
"conditions": [
{
"key": "status",
"value": "error",
"logic": "match"
}
],
"operator": "and"
},
"page_size": 20,
"token": "next_xxx"
}'
Parameters and restrictions:
rule.listdefaults toqueryable_only=trueand returns only queryable rules. When set tofalse, it also returns rules that do not support queries; determine the reason usingqueryableandunsupported_reason, and do not continue to callcreateto query these rules.rule.listsupports fuzzy search of rule names throughsearch, and filtering bydata_typeorstore_type; the pagination range ispage_index >= 1,page_size1 to 100.rule_namemust use the exact value returned byrule.listand cannot be replaced withrule_uuid. Data types and object storage configurations are determined by the backend based on the rule.start_timeandend_timeare 13-digit millisecond timestamps, andend_timemust be later thanstart_time.- The maximum query duration is determined by the Workspace configuration, defaulting to 24 hours;
query_time_limit_hoursin thecreateresponse is the actual effective upper limit. search.conditions[].logicsupports onlymatchandnotMatch; multiple conditions are combined withandororthroughsearch.operator.page_sizeranges from 1 to 1000 and defaults to 20.query.getdoes not directly print full results to the CLI, and the file information it returns does not include an ID; you should runowl data list -f json, save the corresponding entry'sfiles[].idverbatim, and then view task status and masked results throughowl data show <file-id>.DF-API-KEYis automatically injected by the CLI and should not be passed as a tool parameter. Free Plan Workspaces do not support this query.- Supports S3, OSS, OBS, GCS, and TOS standard storage; Kafka, platform built-in storage, cold storage, and archived data are not supported.
Same-Organization Cross-Workspace Trace Queries¶
owl.data.same_org.trace.query is a dedicated tool for querying traces in the current Workspace or Workspaces in the same organization by trace_id. Call it directly in the current Workspace without listing Workspaces; if you need to query other Workspaces in the same organization and the UUID is not yet determined, run owl workspace same-org list to obtain candidate Workspaces before querying:
trace_idis a required parameter. The server enforces this condition; do not add it again inwhere_clause.workspace_uuidsis an optional string array. Use theworkspace_uuidfrom the list results;workspace_idis used only for list pagination and cannot be used for queries.- If
workspace_uuidsis omitted or an empty array is passed, only the Workspace to which the current API Key belongs is queried. - When the same-organization cross-workspace query feature is disabled, only the current Workspace can be queried; passing another Workspace UUID returns a parameter error.
where_clauseonly accepts an additional DQL condition fragment and does not include outer braces.start_timeandend_timeuse 13-digit millisecond timestamps; you can also narrow the query scope withsourceandlimit.- The returned content retains the original DQL query result structure. For cross-workspace Trace queries, do not fall back to
owl.data.queryorowl.data.simple_query_file.
owl workspace same-org list
owl exec owl.data.same_org.trace.query -p '{"trace_id":"TRACE-XXXX","workspace_uuids":["wksp_xxx"]}'
Errors¶
Used for querying the issue list in Error Center and for adding, querying, and updating comments.
| Tool Name | Function | Example Use | Key Parameters | Permission |
|---|---|---|---|---|
owl.errors.list |
Queries the Error Center issue list | Query the 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 |
Adds a comment to an error issue | Add a troubleshooting comment to this error issue | issue_id, comment, attachment_uuids, extend |
Write |
owl.errors.comment.list |
Queries the comment list under an error issue | View comment records for this error issue | issue_id, page_size, page_index |
Read-only |
owl.errors.comment.update |
Updates an existing error comment | Update the content of this error comment | comment_uuid, comment, attachment_uuids, extend |
Write |
Event¶
Used for Event Center list queries and event detail retrieval.
| Tool Name | Function | Example Use | Key Parameters | Permission |
|---|---|---|---|---|
owl.event.list |
Queries the event list | Query critical events from the last hour | start_time, end_time, status, limit, offset |
Read-only |
owl.event.get |
Queries details of a single event, optionally within an event time range | Query details of this event doc_id within the specified time range |
doc_id, timeRange |
Read-only |
owl.event.resolve |
Resolves event details by event document ID, event or Incident ID, or link | Resolve event details by event document ID, event or Incident ID, or link | doc_id, timeRange |
Read-only |
owl.event.listmust providestart_timeandend_time;statuscan befatal,critical,error,warning, ornodata;limitdefaults to 20 and has a maximum of 100. Returned items may include the event dimension label fielddf_dimension_tags.- The
timeRangeofowl.event.getis an optional two-element array[start, end]; both elements are 13-digit millisecond timestamps, andendmust be later thanstart. The parameter name istimeRange; do not rewrite it astime_range.
Event ID and Link Resolution¶
The doc_id of owl.event.get cannot be empty or all whitespace; use the original value of data.items[].doc_id returned by owl.event.list. Event IDs, Incident IDs, compatible opaque IDs, or HTTP(S) event links can be passed to owl.event.resolve. Links are used only to extract identifiers and time; they are not accessed, and they do not switch Workspaces or credentials. The link time must be consistent with the explicit timeRange.
For document IDs and opaque IDs, the tool first attempts to read details directly; it continues searching only when an empty result is recognized. Event or Incident IDs go directly to exact identifier search. If time is omitted from a search, the most recent 7 days are used; an explicit search range can be at most 7 days, and at most 20 candidates are returned. Direct detail reads are not subject to the 7-day limit; if the range is too long and details are empty, the tool stops and does not narrow the search range. Check resolution_status, candidates, and may_have_more; multiple_matches means ambiguity remains, and the attached latest candidate details cannot be used as the sole resolution result.
owl exec owl.event.resolve -p '{"doc_id":"event-example","timeRange":[1792548000000,1792551600000]}'
Incident¶
owl.incident.get accepts an Incident UUID (incident_*) and returns details and related_event_refs. Each page of related references defaults to and is capped at 100. Read subsequent pages according to page_info.has_more and next_page_index, and then call owl.event.get based on the event references; do not treat an Incident UUID as an event document ID. The total number of references may differ from the total number of events reported by the Incident; retain and explain the missing evidence.
Used for Incident lists and details, related event references, Incident comments, operation records, and On-Call schedule queries.
| Tool Name | Function | Example Use | Key Parameters | Permission |
|---|---|---|---|---|
owl.incident.list |
Queries the Incident List | Query all current Incidents | search, page_size, page_index |
Read-only |
owl.incident.get |
Queries Incident Details and paginated related event references | Get Incident source, occurrence time, and related events | incident_uuid, page_size, page_index |
Read-only |
owl.incident_comment.list |
Queries the Incident comment list | View comment records for this Incident | incident_uuid, page_index, page_size |
Read-only |
owl.incident_comment.add |
Adds a comment to an Incident | Add a handling progress update to this Incident | incident_uuid, comment |
Write |
owl.incident_operation.list |
Queries Incident operation records | View operation history for this Incident | incident_uuid, page_size, page_index |
Read-only |
owl.incident_schedule.list |
Queries the On-Call schedule list | Query the current On-Call schedule list | search, page_size, page_index |
Read-only |
owl.incident_schedule.get |
Queries On-Call schedule details | Query detailed configuration for this On-Call schedule | schedule_uuid |
Read-only |
Infrastructure¶
Used for infrastructure object list and detail queries, covering Host, Container, Process, and other resource objects.
| Tool Name | Function | Example Use | Key Parameters | Permission |
|---|---|---|---|---|
owl.infrastructure.list |
Queries the infrastructure object list | Query all current Host objects | resource_type, limit, filters, start_time, end_time, cursor_time, cursor_token |
Read-only |
owl.infrastructure.get |
Queries details of a single infrastructure object | Query detailed information for this Container object | resource_type, identity_value, start_time, end_time, cursor_time, cursor_token |
Read-only |
The limit of owl.infrastructure.list defaults to 20 and ranges from 1 to 100. Each filters entry must contain field, op, and value; op supports only =, !=, and in. The value of in must be a non-empty array; other operators use non-null strings, numbers, or booleans. Pass values as JSON; do not pre-concatenate or escape them into DQL.
LLM¶
Used for querying the list of LLM observability applications.
| Tool Name | Function | Example Use | Key Parameters | Permission |
|---|---|---|---|---|
owl.llm.list |
Queries the LLM application list | List all current LLM applications | search, type, page_size, page_index, start_time, end_time, app_type |
Read-only |
Workspace¶
Used for discovering authorized scopes for cross-workspace data queries, and for querying current Workspace members and teams. Members can be searched by name or email keyword, and teams can be searched by name keyword.
| Tool Name | Function | Example Use | Key Parameters | Permission |
|---|---|---|---|---|
owl.workspace.data_authorized.list |
Lists Workspaces that have granted data query permissions to the current Workspace | Confirm queryable Workspaces before cross-workspace queries | region_code, search, page_index, page_size |
Read-only |
owl.workspace.member.list |
Queries the Workspace member list | Search for members whose email contains alice |
search, page_size, page_index |
Read-only |
owl.workspace.member.group_list |
Queries teams in the current Workspace and returns team name, UUID, and member count | Find the Platform team that can be set as an Entity's owning team |
search |
Read-only |
owl.member.list is retained as a compatibility alias for explicit calls and is not listed as an independent tool; the CLI must be upgraded to a version that supports the alias before running owl sync.
owl.workspace.member.group_list returns all visible teams when search is not passed and does not paginate; Free Plan Workspaces do not support this tool. owl.member.group_list is a compatibility alias.
Monitor¶
Used for Monitor list queries, detail retrieval, creation or update, and external event reception.
| Tool Name | Function | Example Use | Key Parameters | Permission |
|---|---|---|---|---|
owl.monitor.list |
Queries the Monitor list | Query currently enabled Monitors | search, status_list, page_size, page_index |
Read-only |
owl.monitor.get |
Queries Monitor details | Query the full configuration of this Monitor rule | rule_uuid |
Read-only |
owl.monitor.upsert |
Creates a Monitor or updates an existing Monitor | Create a new external event Monitor | json_script, rule_uuid, status, secret, alert_policy_uuids, tags |
Write |
owl.monitor.receive |
Sends external events to a receiver | Send a test event to this Monitor | event, target, monitor, extra_data |
Write |
Notes and Runbooks¶
Used to manage standard notes and Runbooks visible to the current API Key account. Standard notes are suitable for recording conclusions and reference information, while Runbooks are suitable for storing reusable operational procedures.
| Tool Name | Function | Example Use | Key Parameters | Permission |
|---|---|---|---|---|
owl.nbook_note.list |
Queries basic information about visible notes and Runbooks and does not return Markdown content | Filter content by type, title, body, or tags | page_index, page_size, search, tags, tagkv_query, type |
Read-only |
owl.nbook_note.get |
Gets note or Runbook details and Markdown content by note_uuid |
Read the full content of the specified item | note_uuid |
Read-only |
owl.nbook_note.add |
Creates a standard note or Runbook and returns basic information | Create a tagged Markdown Runbook | title, content, tags, tag_kv, type |
Write |
owl.nbook_note.modify |
Modifies a note by note_uuid and returns the updated basic information |
Update the note title, content, or tags | note_uuid, title, content, tags, tag_kv, expected_etag |
Write |
owl.nbook_note.delete |
Deletes a note by note_uuid |
Delete the specified note | note_uuid, expected_etag |
Write |
- The
page_indexofowl.nbook_note.listdefaults to 1, andpage_sizedefaults to 20 with a maximum of 100. - The
typeofowl.nbook_note.listcan benormalorrunbook; if omitted, both types are returned. owl.nbook_note.getis the only tool that returns the Markdown contentcontent, but it does not returnpath,etag, orversion;list,add, andmodifyreturn only basic information such as title, type, and tags, and do not returncontent,path, ETag, or version information;deletereturns a concise result of the delete operation.owl.nbook_note.addmust providetitleandcontent;typecan benormalorrunbook; if omitted, a standard note is created. This tool does not acceptpath;created_sourceis always set toaiby the server, and the creating account is taken from the current API Key.- In addition to
note_uuid,owl.nbook_note.modifymust provide at least one oftitle,content,tags, ortag_kv; ifcontentis omitted, the original content is retained. - The content type cannot be modified after creation;
get,modify, anddeletedo not accepttype. To change the type, recreate the item with the target type. - Use the
note_uuidreturned by the list for get, modify, and delete. Do not pass backend-managed fields such aspath,etag,if_match,version,creator, orcreated_source. tagkv_queryis the TagKV expression string used by the list tool;tag_kvis the key-value object used by the create and modify tools. Do not mix the two.
Pipeline¶
Used for Pipeline list queries and sample validation.
| Tool Name | Function | Example Use | Key Parameters | Permission |
|---|---|---|---|---|
owl.pipeline.list |
Queries the Pipeline list and returns decoded content | List Pipelines whose names contain nginx | search, scope, categories |
Read-only |
owl.pipeline.validate |
Validates Pipeline processing results with sample data | Use this log sample to verify whether this Pipeline can parse correctly | content, testData, dataType |
Read-only |
mdsearch¶
Used for searching the unified document library, reading a single document, and browsing the catalog. Supports Chinese, English, and mixed-language queries.
| Tool Name | Function | Example Use | Key Parameters | Permission |
|---|---|---|---|---|
mdsearch_search |
Searches the unified document library and returns ranked candidate documents | Search for integration setup documentation for a certain integration | q, top, path_prefix, tags, mode, sort |
Local assistance |
mdsearch_document |
Reads the full text of a single document by id or path |
Read the full content of a document in the candidate results | id, meta |
Local assistance |
mdsearch_catalog |
Browses the top-level directories and representative documents of the unified document library | Understand the overall structure of the document library | None | Local assistance |
CLI Workflows¶
Data Query Questions¶
Applies to questions such as "query metric, log, RUM, APM, Network, Profile, and Billing data".
- First run
owl.data.show_dql_namespaceto confirm the target namespace; -
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
- Metrics:
-
When you need to confirm DQL syntax, first call
owl.data.search_dql_docsto look up documentation; - After writing the complete DQL manually, first call
owl.data.check_dqlfor local validation; - Finally, call
owl.data.queryto execute the formal query.
Profiling Analysis Questions¶
Applies to questions such as "you already have a profile_id and want to view the summary or parse detailed stack information".
- First locate the target
profile_idin the Profiling data domain throughowl.data.query; - Call
owl.profiling.get_summaryto obtain summary information; - Reuse
language,type,profile_start, andprofile_endfrom the summary result, then callowl.profiling.parseto parse the detailed content.
Incident Troubleshooting Questions¶
Applies to questions such as "query Incidents, trace the handling process, and add comments".
- When the Incident UUID is known, call
owl.incident.get; when the target is not determined, first callowl.incident.list. - Read all related event references according to the returned pagination information, and then call
owl.event.getto obtain event content. - Use
owl.incident_comment.listto view comments andowl.incident_operation.listto view operation records. - When you need to add handling progress, call
owl.incident_comment.add.
Dashboard Management Questions¶
Applies to questions such as "create a dashboard, replace dashboard content, and view existing dashboard configuration".
- Call
owl.dashboard.createwhen creating a new dashboard; - Call
owl.dashboard.replacewhen replacing an existing dashboard; - Call
owl.dashboard.getwhen you need to view the current configuration.
Note and Runbook Management Questions¶
Applies to questions such as "search, read, create, modify, or delete standard notes and Runbooks".
- First call
owl.nbook_note.listto search content and obtain thenote_uuid; if you need to narrow the scope, filter bytype=normalortype=runbook; - When you need to read the Markdown content, call
owl.nbook_note.get; - When creating a note, call
owl.nbook_note.add; you can usetypeto create anormalnote or arunbook. When updating, callowl.nbook_note.modify; the type of an existing note cannot be modified; - When deleting, call
owl.nbook_note.delete. Before performing write operations, confirm the target note or Runbook and its scope of impact.
Monitor Management Questions¶
Applies to questions such as "view Monitors, create Monitors, update Monitors, and send test events".
- First call
owl.monitor.listto browse target Monitors; - Call
owl.monitor.getwhen you need details; - Call
owl.monitor.upsertwhen creating or updating; - Call
owl.monitor.receivewhen you need to send external events to verify the receiving path.
DQL Document Search and Content Reading¶
owl.data.search_dql_docs executes on the Registry server and returns snippets in results, document_id, version, and read_reference. references_dir is a server-side diagnostic path retained for compatibility, not an Agent local directory; do not pass it to read_file, cat, or grep.
Pass the selected result's read_reference.arguments as JSON parameters verbatim to read_reference.tool; with the CLI, you can use owl exec owl.data.read_dql_docs --stdin -f json. Do not construct document_id from server paths yourself. The .output returned by the search and read tools is JSON text and does not itself contain an inner success field.
The read parameters are document_id, the returned version, start_line (starting from 1), and line_count (defaults to 80, maximum 200). The content is in content, and each page is at most 65536 UTF-8 bytes. When you need subsequent content and has_more=true, keep the same ID/version, set start_line to next_start_line, and repeat until the required section is complete or has_more=false. Pagination here is line-based and does not use next_offset from file reading.
When encountering document.version_changed, search again and use the new reference. Do not omit version to bypass validation, and do not mix pages from different versions. Empty results only means there are no matching snippets. The tool rejects path traversal, symbolic links, non-Markdown or non-UTF-8 files, documents larger than 4 MiB, and single lines larger than 65536 bytes. This capability is a CLI document assistance tool and is not guaranteed to be visible in all MCP exposure modes.