list_datasets
Retrieve and filter datasets (topics and data sources) from Lenses MCP Server environments with pagination, search, and sorting options.
Instructions
Retrieves a paginated list of datasets (topics and other data sources).
Args: environment: The environment name. page: Page number (default: 1). page_size: Items per page (default: 25). search: Search keyword for dataset, fields and description. connections: List of connection names to filter by. tags: List of tag names to filter by. sort_field: Field to sort results by. sort_order: Sorting order - "asc" or "desc" (default: "asc"). include_system: Include system entities (default: False). search_fields: Search field names/documentation (default: True). schema_format: Schema format filter for SchemaRegistrySubject. has_records: Filter based on whether dataset has records. is_compacted: Filter based on compacted status (Kafka only).
Returns: Paginated list of datasets with source types.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| environment | Yes | ||
| page | No | ||
| page_size | No | ||
| search | No | ||
| connections | No | ||
| tags | No | ||
| sort_field | No | ||
| sort_order | No | asc | |
| include_system | No | ||
| search_fields | No | ||
| schema_format | No | ||
| has_records | No | ||
| is_compacted | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||