parse_user_agent
Read-onlyIdempotent
utilpeek: parse a User-Agent string. For known x402 monitors and indexers with call rates use identify_x402_client. A User-Agent is self-reported and easy to fake; is_bot is a heuristic (declared crawlers, HTTP libraries, headless browsers). Parsed with ua-parser and the uap-core regexes (Apache-2.0). Typically under 0.1 s (first call up to 0.5 s). Price: USD 0.001. Free: 10 utilpeek calls per IP per UTC day. Docs: https://tanod.dev/learn/user-agent-parser-api.html
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 | User-Agent string (1-1024 chars). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| os | No | ||
| note | No | ||
| error | No | Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object. | |
| device | No | ||
| is_bot | No | ||
| length | No | ||
| source | No | ||
| browser | No | ||
| is_mobile | No | ||
| bot_reason | No |