Skip to main content
Glama

parse_user_agent

Read-onlyIdempotent

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

Input Schema

NameRequiredDescriptionDefault
uaYesA browser User-Agent header value, for example: Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/126.0.
clientHintsNoOptional: pasted Sec-CH-UA request headers; adds a 'clientHints' object (for example Windows 11)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / ua / description
      Added value: +"A browser User-Agent header value, for example: Mozilla/5.0 (Windows NT 10.0; Win64; x64) Chrome/126.0."
  2. Changed1 schema field changed
    • addedInput schema / properties / ua / minLength
      Added value: +1
  3. Changed1 schema field changed
    • addedInput schema / properties / clientHints
      Added value: +{
      +  "description": "Optional: pasted Sec-CH-UA request headers; adds a 'clientHints' object (for example Windows 11)",
      +  "type": "string"
      +}
  4. First observed

TDQS

C2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description contributes nothing further: it says nothing about what the parse returns, how unknown agents are handled, or that client hints improve accuracy. This is the lower bar applied to annotations, and the description still adds zero.

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

Conciseness2/5

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

Three words are not conciseness but under-specification; there is no structure to front-load because no substantive claim is made. Nothing is bloated, but nothing earns its place either.

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

Completeness2/5

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

The schema is well documented and annotations are rich, but with no output schema the description should explain what the parse yields, and it does not. For a parser whose whole value is its output shape, this leaves a real gap.

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

Parameters3/5

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

Schema description coverage is 100%, and both parameters (ua, clientHints) already carry examples and semantics in the schema. The description adds no meaning beyond that, so the baseline of 3 applies when the schema does the heavy lifting.

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

Purpose2/5

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

"User agent parser" only restates the tool name and title; it adds no verb-plus-resource specificity such as parsing a UA string into browser, OS, or device fields. Nothing distinguishes it from neighboring text utilities like pdf_parse_fillable_form or text_user_manual beyond the noun.

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

Usage Guidelines1/5

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

There is no when-to-use guidance, no mention of prerequisites, and no routing to or away from any alternative. The agent is left to infer the tool's role entirely from its name.

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