Skip to main content
Glama

Reddit MCP Server

by ozipi
create-prompts-batch.ts2.21 kB
/** * Create multiple prompts at once for an interaction */ import type { Tool } from '@modelcontextprotocol/sdk/types.js'; export const createPromptsBatch: Tool = { name: "create_prompts_batch", description: "Create multiple prompts (questions/exercises) at once for an interaction. Useful when you have several questions ready. However, creating prompts one-by-one is recommended for better error handling and verification.", inputSchema: { type: "object", properties: { interactionId: { type: "string", description: "The ID of the interaction to add prompts to", }, prompts: { type: "array", items: { type: "object", properties: { question: { type: "string", description: "The question text or prompt instruction", }, type: { type: "string", enum: ["multiple-choice", "single-choice", "short-answer", "true-false", "code", "interactive-component"], description: "Type of prompt", }, options: { type: "array", items: { type: "string" }, description: "Options for multiple-choice questions", }, answer: { description: "The correct answer", }, explanation: { type: "string", description: "Explanation of the correct answer", }, codeLanguage: { type: "string", description: "Programming language for code questions", }, codeStarterCode: { type: "string", description: "Starter code for code questions", }, componentType: { type: "string", description: "Type of interactive component", }, componentConfig: { description: "Configuration for interactive component", }, }, required: ["question", "type"], }, description: "Array of prompts to create", }, }, required: ["interactionId", "prompts"], }, };

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/ozipi/brainloop-mcp-server-v2'

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