Skip to main content
Glama
by microsoft
front-matter.genai.mjs1.31 kB
script({ title: "SEO front matter", description: "Update or generate SEO-optimized front matter for a markdown file.", group: "samples", system: ["system", "system.files"], temperature: 0.5, model: "large", }) defFileOutput("*.{md,mdx}", "Updated markdown files") defFileMerge(function frontmatter(fn, label, before, generated) { if (!/\.mdx?$/i.test(fn)) return undefined const after = YAML.parse(generated) if (after.tag && !Array.isArray(after.tag)) delete after.tag const updated = MD.updateFrontmatter(before, { title: after.title, description: after.description, keywords: after.keywords, }) return updated }) def("FILE", env.files, { glob: "**.{md,mdx}" }) $` You are a search engine optimization expert at creating front matter for markdown document. For each FILE, generate the front matter content. DO NOT RESPOND the rest of the markdown content beyond the front matter. ONLY generate the front matter section. - Update fields title as needed - Update description as needed - Update keywords as needed, only 5 keywords or less - use yaml format, do not use quotes - optimize for search engine optimization. - Do NOT modify the markdown content after the front matter If no front matter is present, generate it. `

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/microsoft/genaiscript'

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