Skip to main content
Glama
by microsoft
agentic-tools.genai.mts782 B
import { calculator } from "@agentic/calculator" import { WeatherClient } from "@agentic/weather" const { question, city } = env.vars script({ model: "small", parameters: { question: { type: "string", default: "How much is 11 + 4? then divide by 3?", }, city: { type: "string", default: "Paris", }, }, /*tests: { description: "Testing the default prompt", keywords: "5", },*/ }) defTool(calculator as any) const weather = new WeatherClient() const res = await weather.getCurrentWeather({ q: city }) console.log(`weather: ${YAML.stringify(res)}`) defTool(weather as any) $`Answer the following arithmetic question: ${question} Get the weather in ${city}. `

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