Skip to main content
Glama
delete-content.ts902 B
import { Tool } from '@modelcontextprotocol/sdk/types.js'; import { deleteContent } from '../client.js'; import type { ToolParameters } from '../types.js'; export const deleteContentTool: Tool = { name: 'microcms_delete_content', description: 'Delete content from microCMS', inputSchema: { type: 'object', properties: { endpoint: { type: 'string', description: 'Content type name (e.g., "blogs", "news")', }, contentId: { type: 'string', description: 'Content ID to delete', }, }, required: ['endpoint', 'contentId'], }, }; export async function handleDeleteContent(params: ToolParameters) { const { endpoint, contentId } = params; if (!contentId) { throw new Error('contentId is required'); } await deleteContent(endpoint, contentId); return { message: `Content ${contentId} deleted successfully` }; }

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/microcmsio/microcms-mcp-server'

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