@rhofkens/mcp-quotes-server
Version:
A Model Context Protocol (MCP) server that provides quotes based on user requests
72 lines • 2.5 kB
JavaScript
export const PROMPT_TEMPLATE_CONTENT = {
template: {
basic: "Get a quote from {person}",
withTopic: "Get a quote from {person} about {topic}",
withCount: "Get {numberOfQuotes} quotes from {person}",
comprehensive: "Get {numberOfQuotes} quotes from {person} about {topic}",
},
parameters: {
person: {
type: "string",
required: true,
description: "The name of the person to get quotes from",
validation: "Must not be empty",
},
topic: {
type: "string",
required: false,
description: "Optional topic to filter quotes by",
},
numberOfQuotes: {
type: "integer",
required: true,
description: "Number of quotes to retrieve",
validation: "Must be a positive integer between 1 and 10",
},
},
examples: [
{
prompt: "Get 3 quotes from Albert Einstein about science",
parameters: {
person: "Albert Einstein",
topic: "science",
numberOfQuotes: 3,
},
},
{
prompt: "Get 5 quotes from Maya Angelou about courage",
parameters: {
person: "Maya Angelou",
topic: "courage",
numberOfQuotes: 5,
},
},
{
prompt: "Get 1 quote from Winston Churchill",
parameters: {
person: "Winston Churchill",
numberOfQuotes: 1,
},
},
{
prompt: "Get 10 quotes from Mark Twain about life",
parameters: {
person: "Mark Twain",
topic: "life",
numberOfQuotes: 10,
},
},
],
bestPractices: [
"Use specific person names for better results",
"Topics should be general concepts rather than very specific terms",
"Request reasonable numbers of quotes (1-10) for optimal performance",
"Consider the context when selecting topics - broader topics yield more results",
"Historical figures and well-known personalities typically have more available quotes",
"When no topic is specified, you'll get a broader range of quotes from the person",
],
};
export function getPromptTemplateContent() {
return PROMPT_TEMPLATE_CONTENT;
}
//# sourceMappingURL=prompt-template-content.js.map