Skip to main content
Glama
by microsoft
document-augmentor.genai.mts603 B
script({ secrets: ["TAVILY_API_KEY"], files: "src/rag/markdown.md", }) const { tavilySearch } = await import("./tavily.mts") const file = env.files[0] // Question const { text: question } = await runPrompt((_) => { const filen = _.def("FILE", file) _.$`Generate a question that summarizes the content of ${filen}` }) // Search const { answer } = await tavilySearch(question) // Augment const filen = def("FILE", file) const answern = def("ANSWER", answer) $`You are an expert at writing document. Integrate the information of ${answern} into ${filen} to make it more informative.`

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