Skip to main content
Glama

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
NameRequiredDescriptionDefault
thread_idYesThe thread ID to verify

Implementation Reference

  • 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) },
    			],
    		};
    	}
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 key behavioral traits: it's a financial transaction ('releases the escrow payment'), has a cost ('Costs $0.001 from balance'), and requires authentication ('Requires API key'). It doesn't mention rate limits or error handling, but covers the essential mutation and security aspects.

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 efficiently structured in three sentences that each add value: states the action, specifies cost, and provides usage prerequisites. It is front-loaded with the core purpose and has no wasted words.

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 mutation tool with no annotations and no output schema, the description is reasonably complete: it explains the action, cost, and prerequisites. However, it lacks details on response format or error conditions, which would be helpful given the financial nature of the operation.

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% for the single parameter 'thread_id', so the schema already documents it fully. The description adds no additional parameter semantics beyond what the schema provides, meeting the baseline for high coverage.

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 ('confirms that delivery is satisfactory and releases the escrow payment to the provider') and resource (delivery/escrow payment). It distinguishes from siblings like 'decline_thread' or 'send_message' by focusing on payment release after delivery verification.

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 ('Only use after reviewing the delivered work'), which implicitly distinguishes it from tools like 'decline_thread' or 'propose_price'. However, it does not explicitly name alternatives or specify when NOT to use it.

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