Skip to main content
Glama

TDengine Query MCP Server

template.py761 B
import os from jinja2 import Environment, FileSystemLoader, select_autoescape # Initialize Jinja2 environment env = Environment( loader=FileSystemLoader(os.path.dirname(__file__)), autoescape=select_autoescape(), trim_blocks=True, lstrip_blocks=True, ) def get_prompt_template(prompt_name: str) -> str: """ Load and return a prompt template using Jinja2. Args: prompt_name: Name of the prompt template file (without .md extension) Returns: The template string with proper variable substitution syntax """ try: template = env.get_template(f"{prompt_name}.md") return template.render() except Exception as e: raise ValueError(f"Error loading template {prompt_name}: {e}")

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/Abeautifulsnow/tdengine-mcp'

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