get_verification
Fetch the status of a verification job and retrieve the full report including per-criterion findings, citations, and pass/fail summary.
Instructions
Fetch verification job status and (when complete) the full report with per-criterion findings, citations, and pass/fail summary. Poll roughly every 5–10s after start_verification.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| jobId | Yes | Job ID returned by start_verification. |
Implementation Reference
- src/tools/get_verification.ts:8-14 (handler)The handler function that executes the get_verification tool logic: calls client.get() with the jobId from the input schema.
export const getVerification = defineTool({ name: "get_verification", description: "Fetch verification job status and (when complete) the full report with per-criterion findings, citations, and pass/fail summary. Poll roughly every 5–10s after start_verification.", inputSchema: Input, handler: async ({ jobId }, { client }) => client.get(`/v1/reports/${encodeURIComponent(jobId)}`), }); - src/tools/get_verification.ts:4-6 (schema)Input schema for get_verification: requires a jobId string (returned by start_verification).
const Input = z.object({ jobId: z.string().describe("Job ID returned by start_verification."), }); - src/tools/index.ts:7-20 (registration)Import and registration of getVerification in the tools array, making it available as a tool.
import { getVerification } from "./get_verification.js"; import { chatWithDocument } from "./chat_with_document.js"; import { getUsage } from "./get_usage.js"; export const tools: ToolDef[] = [ uploadDocument, getDocument, listDocuments, listTemplates, startVerification, getVerification, chatWithDocument, getUsage, ]; - src/tools/types.ts:17-24 (helper)The defineTool helper function used to define the get_verification tool, providing type inference and a standard shape.
export function defineTool<Input extends z.ZodTypeAny>(t: { name: string; description: string; inputSchema: Input; handler: (input: z.infer<Input>, ctx: ToolContext) => Promise<unknown>; }): ToolDef { return t as unknown as ToolDef; }