Skip to main content
Glama

delete-phrase

Remove a specific phrase by its ID from the Phrases MCP Server to maintain an organized and up-to-date collection of inspirational quotes.

Instructions

Deletes a phrase by its ID.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesPhrase ID to delete

Implementation Reference

  • Handler function that sends a DELETE request to mock API to delete phrase by ID and returns appropriate text response.
    async ({id}) => { const result = await makeMockAPIRequest<null>("DELETE", { path: `/${id}`, }); const resultText = result === null ? `Phrase with ID ${id} was successfully deleted.` : `Failed to delete phrase with ID ${id}.`; return { content: [ { type: "text", text: resultText } ] } }
  • Zod schema for input parameter 'id' of the phrase to delete.
    { id: z.number().min(0).describe("Phrase ID to delete") },
  • src/index.ts:157-181 (registration)
    Registration of the 'delete-phrase' tool on the MCP server with name, description, schema, and handler.
    server.tool( "delete-phrase", "Deletes a phrase by its ID.", { id: z.number().min(0).describe("Phrase ID to delete") }, async ({id}) => { const result = await makeMockAPIRequest<null>("DELETE", { path: `/${id}`, }); const resultText = result === null ? `Phrase with ID ${id} was successfully deleted.` : `Failed to delete phrase with ID ${id}.`; return { content: [ { type: "text", text: resultText } ] } } );

Other Tools

Related Tools

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/ronniemh/phrases-MCP-server'

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