Skip to main content
Glama

User-agent parser

user_agent_parse
Read-onlyIdempotent

Parse a User-Agent string to identify browser, rendering engine, operating system, device type, and CPU architecture for request analysis.

Instructions

Identify browser, engine, OS, device and CPU from a User-Agent string. (Same as IT-Tools /user-agent-parser.)

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": {
      "userAgent": "<userAgent>"
    },
    "name": "user_agent_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
userAgentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=false, so purity and safety are covered. The description adds real value by naming the five output categories, which is important since no output schema exists, but it says nothing about behavior on malformed or unrecognized UA strings, whether missing fields are omitted or null, or the response shape.

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?

One dense sentence front-loads the action and the returned fields, followed by a short reference note. No filler; the IT-Tools parenthetical is marginally useful for expectation-setting on output parity but is not strictly necessary.

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?

For a one-parameter, side-effect-free parser with annotations in place, the definition covers what the agent needs to call it and what categories of data come back. The absence of output schema means more detail on return structure or unrecognized-string handling would have made it 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?

Schema coverage is 0%, so the description must carry the single parameter, and it does: the input is explicitly a User-Agent string, matching the required 'userAgent' property. No format or validation detail (trimming, empty string handling, max length) is given, which is the only remaining gap.

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?

States a specific verb (Identify) plus the exact resource (a User-Agent string) and enumerates the parsed dimensions returned: browser, engine, OS, device, CPU. Nothing among the siblings (url_parse, jwt_decode, hash_text, etc.) overlaps, so an agent can select this tool from the name and first sentence alone.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no prerequisites, and no mention of alternatives or limits. The only additional context, '(Same as IT-Tools /user-agent-parser.)', points to an external reference implementation rather than telling the agent when this tool is the right choice.

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