Skip to main content
Glama

update_profile

Modify your participant profile on the402.ai marketplace by updating display name, description, or other profile fields using your API key.

Instructions

Update your participant profile on the402.ai. Change your display name, description, or other profile fields. Requires API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
participant_idYesYour participant ID
nameNoNew display name
descriptionNoNew profile description

Implementation Reference

  • The async handler function for the update_profile tool, which prepares the body and calls the authenticated client.
    async ({ participant_id, name, description }) => {
    	const body: Record<string, unknown> = {};
    	if (name) body.name = name;
    	if (description) body.description = description;
    
    	const result = await client.authPut(
    		`/v1/participants/${participant_id}`,
    		body
    	);
    	return {
    		content: [
    			{ type: "text" as const, text: JSON.stringify(result, null, 2) },
    		],
    	};
    }
  • The registration of the update_profile tool using server.tool.
    server.tool(
    	"update_profile",
    	"Update your participant profile on the402.ai. Change your display name, description, or other profile fields. Requires API key.",
    	{
    		participant_id: z.string().describe("Your participant ID"),
    		name: z.string().optional().describe("New display name"),
    		description: z.string().optional().describe("New profile description"),
    	},
    	async ({ participant_id, name, description }) => {
    		const body: Record<string, unknown> = {};
    		if (name) body.name = name;
    		if (description) body.description = description;
    
    		const result = await client.authPut(
    			`/v1/participants/${participant_id}`,
    			body
    		);
    		return {
    			content: [
    				{ type: "text" as const, text: JSON.stringify(result, null, 2) },
    			],
    		};
    	}
    );
  • Input validation schema for the update_profile tool using Zod.
    {
    	participant_id: z.string().describe("Your participant ID"),
    	name: z.string().optional().describe("New display name"),
    	description: z.string().optional().describe("New profile description"),
    },

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