Skip to main content
Glama

Scenario Word

by HyunJuHwan
UpdatesceneTool.ts725 B
import { MCPTool } from "mcp-framework"; import { z } from "zod"; interface UpdatesceneInput { scene_id: string; modification: string; } class UpdatesceneTool extends MCPTool<UpdatesceneInput> { name = "updateScene"; description = "Updatescene tool description"; schema = { scene_id: { type: z.string(), description: "scene_id", }, modification: { type: z.string(), description: "udpate scene", }, }; async execute({scene_id, modification}: UpdatesceneInput) { const edited_image_url = `https://dummyimage.com/512x512/222/fff.png&text=Edited:${encodeURIComponent(modification)}`; return `Processed: ${edited_image_url}`; } } export default UpdatesceneTool;

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

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