get-container-sample-data
Retrieve sample data from a storage container by its UUID. Inspect contents without full data extraction.
Instructions
Get sample data for a storage container by UUID
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Container UUID |
Implementation Reference
- src/tools/sample-data.ts:52-54 (handler)Handler function that executes the get-container-sample-data tool. Makes a GET request to /containers/{id}/sampleData.
export async function getContainerSampleData(params: z.infer<typeof getContainerSampleDataSchema>) { return omClient.get(`/containers/${params.id}/sampleData`); } - src/tools/sample-data.ts:48-50 (schema)Zod schema defining the input parameter (id: Container UUID) for get-container-sample-data.
export const getContainerSampleDataSchema = z.object({ id: z.string().describe("Container UUID"), }); - src/index.ts:428-429 (registration)Registration of the get-container-sample-data tool with its name, description, schema, and handler.
tool("get-container-sample-data", "Get sample data for a storage container by UUID", getContainerSampleDataSchema.shape, wrapToolHandler(getContainerSampleData)); tool("get-container-sample-data-by-name", "Get sample data for a storage container by fully qualified name", getContainerSampleDataByNameSchema.shape, wrapToolHandler(getContainerSampleDataByName)); - src/index.ts:126-133 (registration)Import of getContainerSampleDataSchema and getContainerSampleData from the sample-data module into the main index.ts for registration.
import { getTableSampleDataSchema, getTableSampleData, getTableSampleDataByNameSchema, getTableSampleDataByName, getTopicSampleDataSchema, getTopicSampleData, getTopicSampleDataByNameSchema, getTopicSampleDataByName, getContainerSampleDataSchema, getContainerSampleData, getContainerSampleDataByNameSchema, getContainerSampleDataByName, } from "./tools/sample-data.js"; - src/tools/utils.ts:18-21 (helper)The wrapToolHandler utility that wraps the handler for error handling and redaction.
export const wrapToolHandler = createWrapToolHandler({ redactionPatterns: [/OPENMETADATA_TOKEN/i], errorExtractors: [ {