verify_delivery
Confirm satisfactory delivery and release escrow payment to service providers in the402.ai marketplace. Use after reviewing delivered work to complete transactions.
Instructions
Agent confirms that delivery is satisfactory and releases the escrow payment to the provider. Costs $0.001 from balance. Only use after reviewing the delivered work. Requires API key.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | The thread ID to verify |
Implementation Reference
- src/tools/threads.ts:149-164 (handler)The verify_delivery tool implementation, including its registration, description, schema, and handler logic that calls the /v1/threads/{thread_id}/verify endpoint.
server.tool( "verify_delivery", "Agent confirms that delivery is satisfactory and releases the escrow payment to the provider. Costs $0.001 from balance. Only use after reviewing the delivered work. Requires API key.", { thread_id: z.string().describe("The thread ID to verify"), }, async ({ thread_id }) => { const result = await client.balancePost( `/v1/threads/${thread_id}/verify` ); return { content: [ { type: "text" as const, text: JSON.stringify(result, null, 2) }, ], }; }