get_metafields
Retrieve available metafields to configure malware analysis scans for files and URLs using Threat.Zone's security tools.
Instructions
Get available metafields for scan configuration.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_metafields"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/threatzone_mcp/server.py:113-116 (handler)The handler function for the 'get_metafields' tool. It is decorated with @app.tool, which registers it as an MCP tool. The function fetches available metafields from the ThreatZone API using the shared API client.
@app.tool async def get_metafields() -> Dict[str, Any]: """Get available metafields for scan configuration.""" return await get_client().get("/public-api/constants/metafields")