Skip to main content
Glama

delete_service

Remove a service listing permanently from the402.ai marketplace, making it undiscoverable and unpurchasable. Requires service owner authorization.

Instructions

Remove a service listing from the402.ai marketplace. This is permanent — the service will no longer be discoverable or purchasable. Requires API key (service owner only).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
service_idYesThe service ID to delete

Implementation Reference

  • Implementation of the 'delete_service' tool, which handles the request to remove a service listing by calling the API client's authDelete method.
    server.tool(
    	"delete_service",
    	"Remove a service listing from the402.ai marketplace. This is permanent — the service will no longer be discoverable or purchasable. Requires API key (service owner only).",
    	{
    		service_id: z.string().describe("The service ID to delete"),
    	},
    	async ({ service_id }) => {
    		const result = await client.authDelete(`/v1/services/${service_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