parse_user_agent
Parse any User-Agent string to identify browser, OS, device type, and detect bots like Googlebot and GPTBot.
Instructions
Parse a User-Agent string into browser, OS, and device details.
Detects 7 browsers, 9 OS variants, device type (desktop/mobile/tablet), and 17+ known bots including Googlebot, GPTBot, and ClaudeBot.
Args: user_agent: The full User-Agent header value
Returns: dict with keys: is_bot, bot_name, browser, browser_version, os, os_version, device_type, cost_usd
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": {
"user_agent": "<user_agent>"
},
"name": "parse_user_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user_agent | Yes |