Skip to main content
Glama

propose_price

Proposes a price for services discussed in a thread on the402.ai marketplace. Providers use this to set prices for AI agents to accept, pay, or negotiate further.

Instructions

Provider proposes a price for a thread on the402.ai. After discussing requirements with the agent, use this to set a price. The agent can then accept and pay, or continue negotiating. Free — provider action only. Requires API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
thread_idYesThe thread ID
priceYesProposed price in USD (e.g., '5.00', '25.50')
messageNoOptional message explaining the price or scope

Implementation Reference

  • The handler function for the propose_price tool, which makes an authenticated POST request to set a price for a thread.
    async ({ thread_id, price, message }) => {
    	const body: Record<string, unknown> = { price };
    	if (message) body.message = message;
    	const result = await client.authPost(
    		`/v1/threads/${thread_id}/propose`,
    		body
    	);
    	return {
    		content: [
    			{ type: "text" as const, text: JSON.stringify(result, null, 2) },
    		],
    	};
  • Registration of the propose_price tool with its description and input schema definition.
    server.tool(
    	"propose_price",
    	"Provider proposes a price for a thread on the402.ai. After discussing requirements with the agent, use this to set a price. The agent can then accept and pay, or continue negotiating. Free — provider action only. Requires API key.",
    	{
    		thread_id: z.string().describe("The thread ID"),
    		price: z
    			.string()
    			.describe("Proposed price in USD (e.g., '5.00', '25.50')"),
    		message: z
    			.string()
    			.optional()
    			.describe("Optional message explaining the price or scope"),
    	},
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses key behavioral traits: it's a provider action only, free, and requires an API key. However, it lacks details on rate limits, error handling, or what happens if the price is invalid, leaving some gaps in transparency for a mutation tool.

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 front-loaded with the core purpose, followed by usage context and key constraints, all in three efficient sentences with zero wasted words. It's appropriately sized and well-structured for quick comprehension.

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

Completeness3/5

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

Given the tool's complexity (a mutation with 3 parameters, no annotations, and no output schema), the description is adequate but incomplete. It covers the action and basic constraints but lacks details on return values, error cases, or deeper behavioral aspects, making it minimally viable but with clear gaps.

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%, so the schema already documents all parameters thoroughly. The description doesn't add any additional meaning or context beyond what the schema provides, such as explaining the relationship between parameters or usage tips, resulting in a baseline score of 3.

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

Purpose4/5

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

The description clearly states the action ('proposes a price') and resource ('for a thread on the402.ai'), making the purpose specific and understandable. However, it doesn't explicitly differentiate from sibling tools like 'accept_proposal' or 'send_message' in terms of negotiation flow, which prevents a perfect score.

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 on when to use this tool ('After discussing requirements with the agent') and mentions the subsequent actions ('agent can then accept and pay, or continue negotiating'), giving good guidance. It doesn't explicitly state when not to use it or name alternatives among siblings, so it falls short of a 5.

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