We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ivo-toby/mcp-openapi-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
prompt-types.ts•925 B
/**
* Prompt-related type definitions for MCP server
*/
/**
* Describes an argument that a prompt can accept
*/
export interface PromptArgumentDefinition {
/** The name of the argument */
name: string
/** A human-readable description of the argument */
description?: string
/** Whether this argument must be provided */
required?: boolean
}
/**
* Definition for a prompt template that can be exposed via MCP
*/
export interface PromptDefinition {
/** The name of the prompt (used as identifier) */
name: string
/** Human-readable title for display purposes */
title?: string
/** An optional description of what this prompt provides */
description?: string
/** A list of arguments to use for templating the prompt */
arguments?: PromptArgumentDefinition[]
/** Template string with {{argName}} placeholders for argument substitution */
template: string
}