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) },
    			],
    		};
    	}
    );
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden and does well by disclosing critical behavioral traits: it's a payment-committing action ('This commits the payment'), describes fund flow ('funds go to escrow until delivery is verified'), and mentions authentication requirements ('Requires API key'). It doesn't cover rate limits or error conditions, but provides substantial operational context.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is perfectly concise with three information-dense sentences that each earn their place: first states the core action, second explains the commitment and escrow mechanics, third specifies authentication. No wasted words, front-loaded with the primary purpose.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a payment-committing tool with no annotations and no output schema, the description does well by explaining the financial commitment, escrow mechanism, and authentication. It could be more complete by mentioning what happens after acceptance (e.g., thread status changes) or potential errors, but covers the essential transactional context adequately.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% (the single parameter 'thread_id' is fully documented in the schema), so the baseline is 3. The description doesn't add any parameter-specific information beyond what the schema already provides about the thread_id parameter.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the specific action ('accepts a provider's price proposal and pays from pre-funded balance') and distinguishes it from siblings like 'propose_price' (which creates proposals) and 'decline_thread' (which rejects them). It specifies the exact resource being acted upon (a price proposal in a thread).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear context for when to use this tool ('accepts a provider's price proposal') and mentions a prerequisite ('Requires API key'), but doesn't explicitly state when NOT to use it or name specific alternatives like 'decline_thread' for rejecting proposals. It implies usage when a proposal is pending in a thread.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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