get_my_submissions
Retrieve your malware analysis submissions with pagination to manage and review threat investigation history on Threat.Zone MCP Server.
Instructions
Get user's submissions with pagination.
Args: page: Page number (default: 1) jump: Number of items per page (default: 10)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| jump | No |
Implementation Reference
- src/threatzone_mcp/server.py:570-579 (handler)The handler function for the 'get_my_submissions' MCP tool. It is registered via the @app.tool decorator and fetches the user's submissions with pagination parameters using the shared API client.@app.tool async def get_my_submissions(page: int = 1, jump: int = 10) -> Dict[str, Any]: """ Get user's submissions with pagination. Args: page: Page number (default: 1) jump: Number of items per page (default: 10) """ return await get_client().get(f"/public-api/get/my-submissions/{page}/{jump}")
- src/threatzone_mcp/server.py:570-570 (registration)The @app.tool decorator registers the get_my_submissions function as an MCP tool on the FastMCP server instance.@app.tool
- src/threatzone_mcp/server.py:102-109 (helper)The get_client() helper function used by get_my_submissions to obtain the API client instance for making the HTTP request.def get_client(): """Get or create the API client.""" global client if client is None: if not API_KEY: raise ThreatZoneError("THREATZONE_API_KEY environment variable is required") client = APIClient(API_KEY) return client