Skip to main content
Glama

Agent Data Tools: Utilities

User agent parser: browser, OS, device and bots

useragent_parse
Read-only

Parse a User-Agent string into browser and version, operating system and version, device type (desktop, mobile, tablet or bot) and, for crawlers, which bot it is: Googlebot, Bingbot, GPTBot, ClaudeBot, PerplexityBot, social previewers, SEO crawlers and HTTP libraries such as curl or python-requests. Local rules, no outside service. Use to read access logs, segment traffic or spot AI crawlers. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "ua": "<ua>"
    },
    "name": "useragent_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
uaYesThe User-Agent string

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/no-destroy/no-open-world, and the description reinforces this ('local rules, no outside service', 'reads or computes only and changes nothing'). It adds genuinely non-obvious behavior the annotations lack: per-call pricing, 10 free calls, failed calls free, and an explanation for why repeats are not free (consistent with idempotentHint=false). Slight deduction because the exact output shape and failure modes are not spelled out.

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

Conciseness4/5

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

Purpose and output categories are front-loaded in the first sentence, with usage and pricing following. The pricing/credits clause is somewhat verbose relative to the parsing content, but every sentence carries information.

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

Completeness4/5

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

No output schema exists, so the description bears the burden of describing returns, and it does list the result categories plus bot names. It omits details such as output field names or handling of unparseable UA strings, so it is strong but not fully complete.

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

Parameters4/5

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

A single required parameter with 100% schema description coverage, so the schema already carries the semantics; the description adds nothing parameter-specific beyond restating the concept. Baseline 4 applies for a fully documented one-param tool.

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?

Names a specific verb and resource ('Parse a User-Agent string') and enumerates the exact outputs: browser and version, OS and version, device type, and bot identity. The bot taxonomy (Googlebot, Bingbot, GPTBot, ClaudeBot, curl, python-requests) makes it unmistakably distinct from siblings like url_parse.

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

Usage Guidelines4/5

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

Gives concrete usage contexts: reading access logs, segmenting traffic, spotting AI crawlers. It states what the tool is for but does not name an alternative tool or an explicit when-not-to-use case, which keeps it below a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources