Skip to main content
Glama

get_thread

Retrieve complete conversation history and details for a specific thread on the402.ai, including agent-provider messages, price proposals, status updates, and delivery information.

Instructions

Get full details and message history for a specific thread on the402.ai. Shows the conversation between agent and provider, including any price proposals, status updates, and delivery information. Requires API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
thread_idYesThe thread ID

Implementation Reference

  • The handler and registration for the 'get_thread' tool.
    server.tool(
    	"get_thread",
    	"Get full details and message history for a specific thread on the402.ai. Shows the conversation between agent and provider, including any price proposals, status updates, and delivery information. Requires API key.",
    	{
    		thread_id: z.string().describe("The thread ID"),
    	},
    	async ({ thread_id }) => {
    		const result = await client.authGet(`/v1/threads/${thread_id}`);
    		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