get-ml-model-service
Retrieve an ML model service by its fully qualified name. Access details, fields, and inclusion status of the service.
Instructions
Get ML model service by name
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fqn | Yes | Service fully qualified name | |
| fields | No | ||
| include | No |
Implementation Reference
- src/tools/services.ts:127-130 (handler)Handler function for get-ml-model-service: fetches an ML model service by its fully qualified name (fqn) from OpenMetadata API endpoint /services/mlmodelServices/name/{fqn}
export async function getMlModelService(params: z.infer<typeof getMlModelServiceSchema>) { const { fqn, ...query } = params; return omClient.get(`/services/mlmodelServices/name/${encodeURIComponent(fqn)}`, query); } - src/tools/services.ts:19-23 (schema)Schema (getByNameParams) reused for getMlModelServiceSchema: defines input params with required fqn (fully qualified name) string, optional fields and include filters
const getByNameParams = z.object({ fqn: z.string().describe("Service fully qualified name"), fields: z.string().optional(), include: z.enum(["non-deleted", "deleted", "all"]).optional(), }); - src/index.ts:236-236 (registration)Registration of the 'get-ml-model-service' tool with MCP server using schema shape and wrapped handler
tool("get-ml-model-service", "Get ML model service by name", getMlModelServiceSchema.shape, wrapToolHandler(getMlModelService)); - src/index.ts:45-47 (registration)Import of getMlModelServiceSchema and getMlModelService from ./tools/services.js into the main index.ts
listMlModelServicesSchema, listMlModelServices, getMlModelServiceSchema, getMlModelService, listStorageServicesSchema, listStorageServices, getStorageServiceSchema, getStorageService, } from "./tools/services.js"; - src/tools/services.ts:126-130 (helper)Schema alias: getMlModelServiceSchema is set to getByNameParams, which is defined on lines 19-23
export const getMlModelServiceSchema = getByNameParams; export async function getMlModelService(params: z.infer<typeof getMlModelServiceSchema>) { const { fqn, ...query } = params; return omClient.get(`/services/mlmodelServices/name/${encodeURIComponent(fqn)}`, query); }