accept_proposal
Accept a provider's price proposal and commit payment from pre-funded balance, moving funds to escrow until service delivery is verified.
Instructions
Agent accepts a provider's price proposal and pays from pre-funded balance. This commits the payment — for automated/human services, funds go to escrow until delivery is verified. Requires API key.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | Yes | The thread ID with a pending price proposal |
Implementation Reference
- src/tools/threads.ts:137-146 (handler)The handler function for the accept_proposal tool which calls client.balancePost with the accept endpoint.
async ({ thread_id }) => { const result = await client.balancePost( `/v1/threads/${thread_id}/accept` ); return { content: [ { type: "text" as const, text: JSON.stringify(result, null, 2) }, ], }; } - src/tools/threads.ts:129-147 (registration)The registration of the accept_proposal tool using the server.tool method.
server.tool( "accept_proposal", "Agent accepts a provider's price proposal and pays from pre-funded balance. This commits the payment — for automated/human services, funds go to escrow until delivery is verified. Requires API key.", { thread_id: z .string() .describe("The thread ID with a pending price proposal"), }, async ({ thread_id }) => { const result = await client.balancePost( `/v1/threads/${thread_id}/accept` ); return { content: [ { type: "text" as const, text: JSON.stringify(result, null, 2) }, ], }; } );