list-data-products
Retrieve paginated data products with optional filters like domain, fields, and include deleted items. Control pagination using cursor-based before/after parameters.
Instructions
List data products with pagination
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Comma-separated fields to include | |
| limit | No | Number of results per page | |
| before | No | Cursor for backward pagination | |
| after | No | Cursor for forward pagination | |
| domain | No | Filter by domain FQN | |
| include | No | Include deleted entities | non-deleted |
Implementation Reference
- src/tools/domains.ts:104-106 (handler)The handler function that executes the list-data-products tool logic. Calls omClient.get('/dataProducts', params) with pagination/filtering parameters.
export async function listDataProducts(params: z.infer<typeof listDataProductsSchema>) { return omClient.get("/dataProducts", params); } - src/tools/domains.ts:95-102 (schema)Zod schema defining input parameters for list-data-products: fields, limit (default 10), before/after cursors for pagination, domain filter, and include (non-deleted/deleted/all).
export const listDataProductsSchema = z.object({ fields: z.string().optional().describe("Comma-separated fields to include"), limit: z.coerce.number().optional().default(10).describe("Number of results per page"), before: z.string().optional().describe("Cursor for backward pagination"), after: z.string().optional().describe("Cursor for forward pagination"), domain: z.string().optional().describe("Filter by domain FQN"), include: z.enum(["non-deleted", "deleted", "all"]).optional().default("non-deleted").describe("Include deleted entities"), }); - src/index.ts:345-345 (registration)Tool registration using the tool() MCP helper. Registers 'list-data-products' with description, schema shape, and handler wrapped with wrapToolHandler.
tool("list-data-products", "List data products with pagination", listDataProductsSchema.shape, wrapToolHandler(listDataProducts)); - src/tools/domains.ts:2-2 (helper)The omClient from '../client.js' is used as the HTTP client helper to make the GET /dataProducts API call.
import { omClient } from "../client.js";