zia_url_lookup
Which category does a URL belong to? Use THIS for that question — default.
Instructions
Which category does a URL belong to? Use THIS for that question — default.
Answers "what category is twilio.com?" directly: pass the URLs and get back
Zscaler's classification for each, e.g.
{"url": "notpurple.com", "urlClassifications": ["SPECIALIZED_SHOPPING"]}.
The response is small and scales with the number of URLs you ask about, not
with the size of the tenant's category inventory.
This returns Zscaler's PREDEFINED classification ONLY. It does not report
the tenant's custom categories: a URL an admin placed in a custom category
still shows its predefined category here. When the user explicitly asks
about CUSTOM categories ("which custom category contains app.box.com?"),
make ONE call to
zia_list_url_categories(custom_only=True, contains_url="app.box.com") —
the server does the matching and returns only the categories that contain
the URL. Do not answer the custom question from this tool's output, and do
not list all categories and scan them yourself.
Unless the user says "custom", this tool alone answers the question — stop
after it. Up to 100 URLs per request; a URL in no predefined category comes
back as MISCELLANEOUS_OR_UNKNOWN.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | Yes | ||
| query | No | Optional JMESPath expression applied to the results after the API call, for client-side filtering and projection. Examples: "[?enabled==`true`]", "[*].{name: name, id: id}", "length(@)". Omit to get the full records. IMPORTANT: field names are the keys of the returned records, which are usually snake_case (`custom_category`) even where the Zscaler API documents camelCase (`customCategory`) — guessing the spelling yields an empty list that looks like a real answer. If you have not already seen a record from this tool, call it once without `query` and read the keys off the response. |