list-ml-model-services
List machine learning model services with filtering by fields, pagination, and options to include deleted records.
Instructions
List ML model services
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Comma-separated fields to include | |
| limit | No | ||
| before | No | ||
| after | No | ||
| include | No | non-deleted |
Implementation Reference
- src/tools/services.ts:122-124 (handler)The handler function that lists ML model services by calling the OpenMetadata API endpoint /services/mlmodelServices with pagination/field params.
export async function listMlModelServices(params: z.infer<typeof listMlModelServicesSchema>) { return omClient.get("/services/mlmodelServices", params); } - src/tools/services.ts:5-11 (schema)The schema definition (listParams) used for list-ml-model-services; includes fields, limit, before, after, and include (non-deleted/deleted/all).
const listParams = z.object({ fields: z.string().optional().describe("Comma-separated fields to include"), limit: z.coerce.number().optional().default(10), before: z.string().optional(), after: z.string().optional(), include: z.enum(["non-deleted", "deleted", "all"]).optional().default("non-deleted"), }); - src/index.ts:235-235 (registration)Registration of the 'list-ml-model-services' tool with the MCP server, binding the schema and handler.
tool("list-ml-model-services", "List ML model services", listMlModelServicesSchema.shape, wrapToolHandler(listMlModelServices)); - src/tools/utils.ts:18-30 (helper)The wrapToolHandler utility that wraps tool handlers with error handling and redaction.
export const wrapToolHandler = createWrapToolHandler({ redactionPatterns: [/OPENMETADATA_TOKEN/i], errorExtractors: [ { match: (error) => error instanceof WriteBlockedError, extract: (error) => ({ kind: "passthrough", text: (error as WriteBlockedError).message, }), }, { match: (error) => error instanceof OpenMetadataError, extract: (error) => {