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
| Name | Required | Description | Default |
|---|---|---|---|
| service_id | Yes | The service ID to delete |
Implementation Reference
- src/tools/services.ts:147-161 (handler)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) }, ], }; } );