Skip to main content
Glama

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
NameRequiredDescriptionDefault
thread_idYesThe thread ID with a pending price proposal

Implementation Reference

  • 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) },
    		],
    	};
    }
  • 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) },
    			],
    		};
    	}
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/the402ai/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server