Skip to main content
Glama
param_suggestion.py538 B
from __future__ import annotations from typing import Dict def suggest_params(prompt: str) -> Dict[str, object]: p = (prompt or "").lower() has_images = any(k in p for k in ["image:", "![", "<img", "vision"]) # crude long_context = len(prompt) > 128_000 // 4 # align with router heuristic task_type = ( "multimodal_reasoning" if has_images else ("long_context_analysis" if long_context else "code_generation") ) return {"has_images": has_images, "long_context": long_context, "task_type": task_type}

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

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