get_incident
Retrieve full details of a data quality incident by its ID, including severity, affected data types, root cause, resolution, and timeline.
Instructions
Get a specific data quality incident by its ID. Returns full incident details including severity, affected data types, root cause, resolution, and timeline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Incident ID (e.g., 'INC-2026-001') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Result data object |
Implementation Reference
- src/index.ts:2015-2026 (registration)Registration of the 'get_incident' tool via registerTool helper. Defines a single input param 'id' (string), uses ObjectOutputSchema, and calls the SDK's dataQuality.getIncident() as the handler.
registerTool( "get_incident", "Get a specific data quality incident by its ID. Returns full incident details including severity, affected data types, root cause, resolution, and timeline.", { id: z.string().describe("Incident ID (e.g., 'INC-2026-001')"), }, ObjectOutputSchema, async (params) => { const data = await api().dataQuality.getIncident(params.id); return formatResponse(data); } ); - src/index.ts:2022-2025 (handler)The inline handler function for 'get_incident'. Calls api().dataQuality.getIncident(params.id) and formats the response. The actual SDK method resolves via the OxArchive client from the @0xarchive/sdk package.
async (params) => { const data = await api().dataQuality.getIncident(params.id); return formatResponse(data); } - src/index.ts:2019-2021 (schema)Input schema for 'get_incident' — takes a single string parameter 'id' (the incident identifier).
id: z.string().describe("Incident ID (e.g., 'INC-2026-001')"), }, ObjectOutputSchema, - src/index.ts:139-141 (helper)Output schema used by 'get_incident' — returns a single object with a 'data' field containing the incident details.
const ObjectOutputSchema: ZodRawShape = { data: z.record(z.unknown()).describe("Result data object"), };