Skip to main content
Glama

GenAIScript

Official
by microsoft
MIT License
43
2,820
  • Linux
  • Apple
system.fs_data_query.genai.mts927 B
system({ description: "A tool that can query data in a file", }) export default function (ctx: ChatGenerationContext) { const { defTool } = ctx defTool( "fs_data_query", "Query data in a file using GROQ syntax", { type: "object", properties: { filename: { type: "string", description: "The filename to query data from", }, query: { type: "string", description: "The GROQ query to run on the data", }, }, }, async (args) => { const { context, query, filename } = args context.log(`query ${query} in ${filename}`) const data = await workspace.readData(filename) const res = await parsers.GROQ(query, data) return res } ) }

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