Skip to main content
Glama

User agent parse

useragent_parse
Read-onlyIdempotent

Parse browser user-agent strings into browser, engine, OS, device type, vendor, bots and HTTP clients — from one string, a list, or an access-log file.

Instructions

Parse browser user-agent strings into browser + version, engine (Blink, WebKit, Gecko, Trident, EdgeHTML, Presto), OS + version, device type (desktop, mobile, tablet, TV, console, bot, HTTP client), vendor and model. Recognises ~50 crawlers and AI bots (Googlebot, Bingbot, GPTBot, ClaudeBot, PerplexityBot…) and HTTP clients (curl, python-requests, Go, okhttp, Postman…). Give one "userAgent", a list, or a text/log file (one per line, or the last quoted field of each access-log line); up to 5000 per call, with a count by type. Web version: https://s3eidat.github.io/ua-parser/

Input Schema

NameRequiredDescriptionDefault
fileNoOr: a text file (path or base64) with one user agent per line, or an access log.
accessLogNoRead "file" as an access log: take the last quoted field of each line.
userAgentNoOne user-agent string.
userAgentsNoSeveral user-agent strings.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

While annotations provide safety hints, the description adds critical operational behavior by listing the specific types of bots and clients it recognizes (e.g., Googlebot, curl, Postman), defining its scope far beyond basic parsing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Although long, the definition is entirely efficient. Every sentence adds unique, high-value information regarding the parsing capabilities and input flexibility.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complex, multi-mode nature of the tool, the description is perfectly complete. It covers what it does, what it extracts, what formats it handles, and its performance limitations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema coverage is 100%. The description supplements this by explaining how to use the input fields—specifically that a 'file' can be a path or a base64 string, and how the 'accessLog' flag dictates log processing behavior.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The purpose is exceptionally clear, specifying that it 'Parse[s] browser user-agent strings' and detailing the exact fields extracted (browser, engine, OS, device type, vendor, model).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It provides multiple usage paths: single user agent, list, file path, and parsing an access log. It also explicitly defines operational boundaries, noting 'up to 5000 per call.'

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools