delete_target_tag
Remove a tag from a target by specifying the target ID and tag name.
Instructions
Remove a tag from a target.
Args:
target_id: The ID of the target to remove the tag from
tag_name: The name of the tag to remove
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target_id | Yes | ||
| tag_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
Implementation Reference
- intruder_mcp/server.py:236-246 (handler)The MCP tool handler function that implements 'delete_target_tag'. It receives target_id and tag_name, calls the API client, and returns a confirmation string.
@mcp.tool() async def delete_target_tag(target_id: int, tag_name: str) -> str: """ Remove a tag from a target. Args: target_id: The ID of the target to remove the tag from tag_name: The name of the tag to remove """ api.delete_target_tag(target_id=target_id, tag_name=tag_name) return f"Removed tag '{tag_name}' from target {target_id}" - intruder_mcp/server.py:236-237 (registration)The tool is registered as an MCP tool via the @mcp.tool() decorator on line 236.
@mcp.tool() async def delete_target_tag(target_id: int, tag_name: str) -> str: - intruder_mcp/api_client.py:290-291 (helper)The API client helper method that sends the actual HTTP DELETE request to the Intruder API to remove a tag from a target.
def delete_target_tag(self, target_id: int, tag_name: str) -> None: self.client.delete(f"{self.base_url}/targets/{target_id}/tags/{tag_name}/")