get-tag
Retrieve tag details by providing its UUID. Specify fields and include status for filtered results.
Instructions
Get tag details by UUID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Tag UUID | |
| fields | No | Comma-separated fields to include | |
| include | No |
Implementation Reference
- src/tools/tags.ts:82-91 (schema)Zod schema for 'get-tag' tool: validates id (UUID), optional fields, and optional include filter.
export const getTagSchema = z.object({ id: z.string().describe("Tag UUID"), fields: z.string().optional().describe("Comma-separated fields to include"), include: z.enum(["non-deleted", "deleted", "all"]).optional(), }); export async function getTag(params: z.infer<typeof getTagSchema>) { const { id, ...query } = params; return omClient.get(`/tags/${id}`, query); } - src/tools/tags.ts:88-91 (handler)Handler function for 'get-tag': extracts id and query params, then calls GET /tags/{id} on the OpenMetadata client.
export async function getTag(params: z.infer<typeof getTagSchema>) { const { id, ...query } = params; return omClient.get(`/tags/${id}`, query); } - src/index.ts:89-91 (registration)Import of getTagSchema and getTag from tools/tags.ts into the main server file.
listTagsSchema, listTags, getTagSchema, getTag, getTagByNameSchema, getTagByName, createTagSchema, createTag, updateTagSchema, updateTag, deleteTagSchema, deleteTag, } from "./tools/tags.js"; - src/index.ts:328-328 (registration)Registration of 'get-tag' tool on the MCP server with the schema and wrapped handler.
tool("get-tag", "Get tag details by UUID", getTagSchema.shape, wrapToolHandler(getTag));