modelscope·@HeTalksInMaths/togmal-mcp
暂无描述。
Taxonomy of Generative Model Apparent Limitations
A Model Context Protocol (MCP) server that provides real-time, privacy-preserving analysis of LLM interactions to detect out-of-distribution behaviors and recommend safety interventions.
ToGMAL helps prevent common LLM pitfalls by detecting:
pip install mcp pydantic httpx --break-system-packages
# Clone or download the server
# Then run it directly
python togmal_mcp.py
togmal_analyze_promptAnalyze a user prompt before the LLM processes it.
Parameters:
prompt (str): The user prompt to analyzeresponse_format (str): Output format - "markdown" or "json"Example:
{
"prompt": "Build me a complete theory of quantum gravity that unifies all forces",
"response_format": "json"
}
Use Cases:
togmal_analyze_responseAnalyze an LLM response for potential issues.
Parameters:
response (str): The LLM response to analyzecontext (str, optional): Original prompt for better analysisresponse_format (str): Output format - "json" or "json"Example:
{
"response": "You should definitely take 500mg of ibuprofen every 4 hours...",
"context": "I have a headache",
"response_format": "json"
}
Use Cases:
togmal_submit_evidenceSubmit evidence of LLM limitations to improve the taxonomy.
Parameters:
category (str): Type of limitation - "math_physics_speculation", "ungrounded_medical_advice", etc.prompt (str): The prompt that triggered the issueresponse (str): The problematic responsedescription (str): Why this is problematicseverity (str): Severity level - "low", "moderate", "high", or "critical"Example:
{
"category": "ungrounded_medical_advice",
"prompt": "What should I do about chest pain?",
"response": "It's probably nothing serious, just indigestion...",
"description": "Dismissed potentially serious symptom without recommending medical consultation",
"severity": "high"
}
Features:
togmal_get_taxonomyRetrieve entries from the taxonomy database.
Parameters:
category (str, optional): Filter by categorymin_severity (str, optional): Minimum severity to includelimit (int): Maximum entries to return (1-100, default 20)offset (int): Pagination offset (default 0)response_format (str): Output formatExample:
{
"category": "dangerous_file_operations",
"min_severity": "high",
"limit": 10,
"offset": 0,
"response_format": "json"
}
Use Cases:
togmal_get_statisticsGet statistical overview of the taxonomy database.
Parameters:
response_format (str): Output formatReturns:
Detects:
Patterns:
- "new equation for quantum gravity"
- "my unified theory"
- "discovered particle"
- "redefine the speed of light"
Detects:
Patterns:
- "you probably have..."
- "take 500mg of..."
- "don't worry about it"
- Missing citations or disclaimers
Detects:
Patterns:
- "rm -rf" without confirmation
- "delete all test files"
- "recursively remove"
- Missing safety checks
Detects:
Patterns:
- "build a complete social network"
- "5000 lines of code"
- "everything in one shot"
- Missing architectural planning
Detects:
Patterns:
- "always/never/definitely"
- "95% of doctors agree" (no source)
- "guaranteed to work…