interpret_threat_level
Convert numeric threat level values (0-3) into clear, human-readable descriptions for malware analysis results.
Instructions
Interpret a numeric threat level value from analysis results.
Args: level_value: Numeric threat level (0-3)
Returns: Human-readable threat level description
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"level_value": "<level_value>"
},
"name": "interpret_threat_level"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level_value | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- src/threatzone_mcp/server.py:158-175 (handler)The main tool handler: async function that interprets numeric threat level (0-3) to descriptive strings using a dictionary lookup.
@app.tool async def interpret_threat_level(level_value: int) -> str: """ Interpret a numeric threat level value from analysis results. Args: level_value: Numeric threat level (0-3) Returns: Human-readable threat level description """ level_map = { 0: "Unknown", 1: "Informative", 2: "Suspicious", 3: "Malicious" } return level_map.get(level_value, f"Unknown level: {level_value}") - src/threatzone_mcp/server.py:158-158 (registration)The @app.tool decorator registers the interpret_threat_level function as an MCP tool.
@app.tool