Skip to main content
Glama
by microsoft
cityinfo.genai.js997 B
script({ files: "src/cities.md", }) // the data to analyze def("CITIES", env.files) // JSON schema to constrain the output of the tool. const schema = defSchema("CITY_SCHEMA", { type: "array", description: "A list of cities with population and elevation information.", items: { type: "object", description: "A city with population and elevation information.", properties: { name: { type: "string", description: "The name of the city." }, population: { type: "number", description: "The population of the city.", }, url: { type: "string", description: "The URL of the city's Wikipedia page.", }, }, required: ["name", "population", "url"], }, }) // the task` $`Answer with a JSON array with the information of the cities in the CITIES data set, compliant with ${schema}.` $` Do not emit the enclosing markdown.`

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