Skip to main content
Glama

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

NameRequiredDescriptionDefault
user_agentYesUser-Agent string (1-1024 chars).

Output Schema

NameRequiredDescriptionDefault
osNo
noteNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
deviceNo
is_botNo
lengthNo
sourceNo
browserNo
is_mobileNo
bot_reasonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • removedInput schema / properties / user_agent / title
      Removed value: -"User Agent"
    • removedInput schema / title
      Removed value: -"parse_user_agentArguments"
    • removedOutput schema / properties / browser / properties
      Removed value: -{
      -  "family": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "major": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "minor": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "patch": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "version": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / device / properties
      Removed value: -{
      -  "brand": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "family": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "model": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / os / properties
      Removed value: -{
      -  "family": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "major": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "minor": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "patch": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "version": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / source / properties
      Removed value: -{
      -  "library": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "license": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "regexes": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "url": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  }
      -}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "bot_reason": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "browser": {
      +      "properties": {
      +        "family": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "major": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "minor": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "patch": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "version": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "device": {
      +      "properties": {
      +        "brand": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "family": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "model": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "error": {
      +      "description": "Only on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object."
      +    },
      +    "is_bot": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "is_mobile": {
      +      "type": [
      +        "boolean",
      +        "null"
      +      ]
      +    },
      +    "length": {
      +      "type": [
      +        "integer",
      +        "null"
      +      ]
      +    },
      +    "note": {
      +      "type": [
      +        "string",
      +        "null"
      +      ]
      +    },
      +    "os": {
      +      "properties": {
      +        "family": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "major": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "minor": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "patch": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "version": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    },
      +    "source": {
      +      "properties": {
      +        "library": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "license": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "regexes": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "url": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        }
      +      },
      +      "type": [
      +        "object",
      +        "null"
      +      ]
      +    }
      +  },
      +  "type": "object"
      +}
  3. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources