Skip to main content
Glama
weather.prompt.ts897 B
import { Injectable, Scope } from '@nestjs/common'; import { Prompt } from '@rekog/mcp-nest'; import { z } from 'zod'; @Injectable({ scope: Scope.REQUEST }) export class WeatherPrompt { @Prompt({ name: 'weather-guide', description: 'Simple instruction for providing weather updates', parameters: z.object({ location: z.string().describe('The location to get weather updates for'), unit: z.string().describe('The unit of measurement for the temperature').default('Celsius'), }), }) getWeatherInstructions({ location, unit }: { location: string; unit: string }) { return { description: 'Provide weather updates for a specific location!', messages: [ { role: 'user', content: { type: 'text', text: `Provide weather updates for ${location} in ${unit}`, }, }, ], }; } }

Latest Blog Posts

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/RenzoReccio/nestjs-mcp'

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