Skip to main content
Glama
dappros
by dappros

ethora-app-delete

Remove an application from the Ethora MCP Server using the appId, enabling users to manage and delete their apps within the Ethora platform.

Instructions

Delete an app by appId for the logged-in user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
appIdYesappId for app

Implementation Reference

  • The inline handler function for the 'ethora-app-delete' tool. It takes appId, calls appDelete(appId), and returns the result as text content or a network error message.
    async function ({ appId }) { try { let result = await appDelete(appId) let toolRes: CallToolResult = { content: [{ type: "text", text: JSON.stringify(result.data) }] } return toolRes } catch (error) { let toolRes: CallToolResult = { content: [{ type: "text", text: "error: network error" }] } return toolRes }
  • src/tools.ts:113-135 (registration)
    The appDeleteTool function that registers the 'ethora-app-delete' MCP tool with its description, input schema, and handler.
    function appDeleteTool(server: McpServer) { server.registerTool( 'ethora-app-delete', { description: 'Delete an app by appId for the logged-in user', inputSchema: { appId: z.string().describe("appId for app") } }, async function ({ appId }) { try { let result = await appDelete(appId) let toolRes: CallToolResult = { content: [{ type: "text", text: JSON.stringify(result.data) }] } return toolRes } catch (error) { let toolRes: CallToolResult = { content: [{ type: "text", text: "error: network error" }] } return toolRes } } ) }
  • Zod input schema for the tool, validating appId as a string.
    description: 'Delete an app by appId for the logged-in user', inputSchema: { appId: z.string().describe("appId for app") }
  • Helper function appDelete that performs the HTTP DELETE request to the API endpoint `/apps/${appId}` using the axios instance.
    export function appDelete(appId: string) { return httpClientDappros.delete( `/apps/${appId}` ) }

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/dappros/ethora-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server