Skip to main content
Glama
get-initial-context.ts921 B
import type { Tool } from 'fastmcp'; import { outdent } from 'outdent'; import { config } from '../../config/offorte.js'; import { INSTRUCTIONS } from '../../instructions.js'; import { emptyObject as parameters } from '../../utils/schema.js'; export const getInitialContextTool: Tool<undefined, typeof parameters> = { name: 'get_initial_context', description: `IMPORTANT: This tool must be called before using any other tools. It will get usage instructions & Offorte context for this MCP server.`, parameters, annotations: { title: 'Get MCP Server Instructions', openWorldHint: false, }, async execute() { const currentDate = new Date().toLocaleDateString('en-US'); const context = outdent` ${INSTRUCTIONS} Context for your Offorte instance: <context> Account Name: ${config.accountName} Date today: ${currentDate} </content> `; return context; }, };

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/offorte/offorte-mcp-server'

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