Netskope MCP Server — Technical User Guide
execution_id shown under each result so we can find the exact run. See Feedback & support.Every connection URL contains a 6-character access code tied to your tenant. The access code and API token you use with mcp-preview.goskope.com work here too. Don't have one? Ask in #netskope-hosted-mcp-server-interest-group on Slack. A wrong code is refused with HTTP 403.
The server's catalog of Netskope REST API v2 endpoints is a snapshot of the published OpenAPI specs as of October 23, 2026. It may include endpoints your tenant is not licensed for or your token cannot use — those calls fail with HTTP 403. Endpoints published after that date are not available until the next catalog update.
Each run is logged for audit and debugging: the recipe or code, every API call it made (method, path, status), credits, and the token's SCIM id. Only the first lines of the output are kept, with emails and user identities masked. Your API token is never written to disk or logs.
Overview
The POC server connects AI assistants (Claude, Cursor, VS Code, Gemini CLI and other MCP clients) to a Netskope tenant using the Model Context Protocol.
Instead of one tool per API, it exposes three static tools. The assistant discovers what it can do with query, then runs a curated recipe (a reviewed, server-authored workflow) — or, for tokens granted code access, its own TypeScript in an isolated sandbox that can only call the Netskope APIs your token allows.
events:search recipe (filters, fields, grouping — no code). Code access is for recipe authors; see access modes.How a request flows
AI client
- Claude Code / Desktop
- Cursor, VS Code
- Gemini CLI
MCP server (this POC)
- Identity: SCIM
Meon your tenant - Access policy + read / change split
- Sandbox (isolated V8) + broker
- Credits metered per call
Your tenant
- REST API v2 (your token)
- Tenant RBAC applies
- From egress IP
3.17.22.131
The sandbox has no network, filesystem, process or token access. Every API call goes through a broker on the server, which checks the access policy, adds your token, meters credits and records the call.
What you can do
| Area | Examples |
|---|---|
| Internet Access policy | List, create, update, delete and deploy rules; validate a rule against the tenant's live schema before creating it |
| Policy objects | Network, destination, service and DNS profiles; custom categories; staged changes and ordered deploys |
| Investigations | DLP incidents, alerts, application and user activity, insider risk, digital experience (ADEM) |
| Any other resource | Every changeable API resource has a generic <domain>:manage recipe — 352 resources across 52 domains |
| Event search | Search and aggregate alerts, app activity, DLP incidents, web, network, client status and endpoint DLP events with events:search — filters, fields, grouping, time window; no code |
| Analysis in code recipe authors | Free-form TypeScript that queries, joins and aggregates in the sandbox — for tokens granted code access |
Getting started
You need
- Your tenant hostname, e.g.
mytenant.goskope.com. - A REST API v2 token for that tenant (Settings → Tools → REST API v2), with the scopes you want the assistant to use. A read-only token is the safest start.
- An access code for your tenant — the same one you use with
mcp-preview.goskope.com. If you don't have one, ask in #netskope-hosted-mcp-server-interest-group. - An MCP client that supports remote (Streamable HTTP) servers, or
npx mcp-remoteas a bridge.
Your server URL
https://mcp-poc.netskope.tech/{tenant}/{access_code}/mcp
{tenant} is your hostname with .goskope.com removed and every remaining dot replaced by an underscore. Hostnames outside goskope.com keep their full domain.
| Tenant hostname | {tenant} in the URL |
|---|---|
| mytenant.goskope.com | mytenant |
| eurocorp.eu.goskope.com | eurocorp_eu |
| aitest01-qa01.qa.boomskope.com | aitest01-qa01_qa_boomskope_com |
https://mcp-poc.netskope.tech/agents.md — Markdown instructions for adding this server to its client and using it well (discovery, reads vs changes, previews, deploy order, debugging). Paste the link or the file into your agent and ask it to connect you.Authorization: Bearer header, ideally from an environment variable. The access code is not a secret on its own — the token is.Client setup
- Set your token in the shell:
export NETSKOPE_API_TOKEN="YOUR_API_TOKEN"
- Add the server:
claude mcp add --transport http --scope user netskope \ https://mcp-poc.netskope.tech/{tenant}/{access_code}/mcp \ --header "Authorization: Bearer ${NETSKOPE_API_TOKEN}" - Check it is connected:
claude mcp list
- Start a session and ask, for example: "What can I do on my Netskope tenant?"
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows). Needs Node.js for npx.
{
"mcpServers": {
"netskope": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp-poc.netskope.tech/{tenant}/{access_code}/mcp",
"--header",
"Authorization: Bearer ${NETSKOPE_API_TOKEN}"
],
"env": { "NETSKOPE_API_TOKEN": "YOUR_API_TOKEN" }
}
}
}Restart Claude Desktop after saving. On Windows, use the short path to npx if it contains spaces, e.g. C:/PROGRA~1/nodejs/npx.cmd.
Settings → MCP → Add custom MCP, or edit ~/.cursor/mcp.json:
{
"mcpServers": {
"netskope": {
"url": "https://mcp-poc.netskope.tech/{tenant}/{access_code}/mcp",
"headers": { "Authorization": "Bearer ${env:NETSKOPE_API_TOKEN}" }
}
}
}Tools appear in Agent mode. If your Cursor version does not support remote URLs, use the Claude Desktop npx mcp-remote form.
Create .vscode/mcp.json in your workspace (or run MCP: Add Server). VS Code prompts for the token and stores it securely.
{
"inputs": [
{ "type": "promptString", "id": "netskope-token", "description": "Netskope REST API v2 token", "password": true }
],
"servers": {
"netskope": {
"type": "http",
"url": "https://mcp-poc.netskope.tech/{tenant}/{access_code}/mcp",
"headers": { "Authorization": "Bearer ${input:netskope-token}" }
}
}
}Edit ~/.gemini/settings.json and keep your existing settings:
{
"mcpServers": {
"netskope": {
"httpUrl": "https://mcp-poc.netskope.tech/{tenant}/{access_code}/mcp",
"headers": { "Authorization": "Bearer YOUR_API_TOKEN" }
}
}
}netskope-prod, netskope-qa).Egress IP & allowlisting
The server calls your tenant's REST API v2 on your behalf, from AWS — not from your workstation. If your token or tenant restricts REST API v2 source IPs, allowlist this address or every call fails with HTTP 403.
| Address | Location | Purpose |
|---|---|---|
| 3.17.22.131/32 | AWS us-east-2 (Ohio) | All outbound API traffic from mcp-poc.netskope.tech to tenants |
- In the Netskope admin console, go to Settings → Tools → REST API v2 and edit the token you use with the server.
- Add
3.17.22.131/32to the token's IP allowlist. - If your tenant enforces global IP allowlisting (Settings → Administration → IP Allowlisting), add the same address as a REST API v2 source IP.
- Run any read (e.g. "list my Internet Access policy groups") to confirm calls succeed.
Tools
You don't call these yourself — the assistant does, based on what you ask. The tool list never changes, so every MCP client works the same way. Reads and changes are separate tools so your client can auto-approve reads and still ask before anything changes.
| Tool | What it does | Client hint |
|---|---|---|
| query | Discovery. query() lists curated workflows (intents); intent expands one; search finds intents and recipes by keyword; prompts lists recipes; capabilities shows the raw API building blocks and typed signatures per domain; schema shows fields and operators for event searches; debug explains one of your runs ("last" or an execution_id). | read-only |
| execute_read | Runs a recipe (prompt + args) — or free-form TypeScript (code) if your token has code access — that only reads. Any call that would change the tenant is refused before it is sent, whatever the recipe or policy. dry_run: true estimates credits. | read-only idempotent |
| execute_change | The only way to change tenant state. Runs a change recipe (marked change in discovery). Needs a one-line summary that appears in your approval prompt and the audit log. preview: true shows the exact first request without sending it. Free-form code may change state only under an admin-granted codemode_full policy, with confirm: true. | destructive |
query({ search: "network" })
execute_read({ prompt: "profiles:list", args: { type: "network", q: "branch" } })
execute_change({ summary: "Delete custom category 'Test_01'",
prompt: "profiles:delete", args: { type: "custom_category", name: "Test_01" },
preview: true })API reference
The API reference at /apidocs/ documents the Netskope REST API v2 operations of this server's catalog. Without connecting you see the public reference. Connect tenant with the same tenant, access code and API token you use for the MCP to see what this tenant and token can use and to try operations. Try-it calls go through this server (from the same egress IP as the MCP) with your own token, to your own tenant only; the skope CLI uses the same route.
Changes: previewed, confirmed, recorded
- Preview first. In the API reference a change (create, update, delete, action) is always previewed first: you see the exact request — method, path, body — and nothing is sent to your tenant.
skope call … --dry-runanddry_run: truein the API do the same. - Confirm to send. Only after you confirm the preview is the change sent. Add a one-line summary of what it does; without one, the audit records the method and path.
- Recorded before it is sent. Every sent change is written to the change audit (
started) before the request leaves the server, then markedcompletedorfailed. If the audit row cannot be written, the change is not sent (HTTP 503audit_unavailable). Quote theinvocation_idwhen you report a problem. - Idempotency-Key required. A change that is sent needs an
Idempotency-Keyheader (8–128 visible ASCII characters). The portal andskopeadd it for you. The same key twice is refused (HTTP 409duplicate_request) and nothing is sent again: a retry of a sent change can never apply it twice. - Your token's RBAC still decides. Operations your role cannot call are refused before anything is sent; the tenant enforces RBAC as well.
CHANGE_TOOL_ENABLED=false. It switches off both the MCP change tool (execute_change is no longer offered) and changes in the API reference and skope (every change, preview included, is refused with HTTP 403 changes_disabled). Reads keep working.Changes on this POC are on since 2026-11-18. Feedback and problems → #netskope-hosted-mcp-server-interest-group.
Command line (skope)
Written to ISO 24495-1:2023 (plain language).
skope, its repository and its releases are for Netskope employees testing the POC. Do not share them with customers or partners, and do not use them on customer tenants.
In short
skopeis a single-file command-line tool for this server. You use the same tenant, access code and API token as for the MCP.- You use it for single API calls, which your token's RBAC governs just as in the API reference, and to run the curated recipes. The MCP stays recipes-only by default;
skopedoes not change that. - You install it from the internal GitHub repo with one command, then sign in with
skope auth login. - For now, you get new versions by running the install script again.
skope updaterefuses in 0.1.0.
Install skope
You need the GitHub CLI (gh), signed in with access to the netSkope GitHub org, because the CLI repository is internal. The install script fetches the latest release, checks its sha256 and installs under your home folder. You don't need sudo. The macOS binaries are signed with Netskope's Developer ID and notarized by Apple. The Windows binary is not signed yet.
gh api -H "Accept: application/vnd.github.raw" repos/netSkope/netskope-cli/contents/install.sh | bash
To install a set version, end the command with | bash -s -- --version v0.1.0. If ~/.local/bin is not on your PATH, the script tells you; add it to your shell profile.
skope.exe the first time you start it. Choose More info → Run anyway only for a skope.exe you installed from the netSkope release.gh api -H "Accept: application/vnd.github.raw" repos/netSkope/netskope-cli/contents/install.ps1 > "$env:TEMP\skope-install.ps1"; powershell -NoProfile -ExecutionPolicy Bypass -File "$env:TEMP\skope-install.ps1"
If the install folder is not on your PATH, the script tells you.
To install by hand instead, open the v0.1.0 release page (you need to be signed in to GitHub). Download skope-0.1.0-<target>.zip for your platform and its .sha256. Check the zip with shasum -a 256 -c skope-0.1.0-<target>.zip.sha256 on macOS or Get-FileHash -Algorithm SHA256 on Windows, unzip it, and put skope on your PATH. The full steps are in install.md, and every command is in usage.md.
Sign in
skope auth login
skope asks for your tenant hostname, access code and API token. It doesn't show the token as you type. It checks all three, then keeps the token in your OS keychain (macOS Keychain or Windows Credential Manager). It never writes the token to a file, and there is no --token flag. You can also set NETSKOPE_API_TOKEN in your environment. To see your tenant, your role and whether changes are on, run skope auth status.
Use skope
skope ops "url list"
--dry-run (for a single call) or --preview (for a recipe). Without a preview flag, skope shows the preview and asks you to type yes. A script or agent without a terminal must pass --yes; otherwise nothing is sent (exit 7).skope call profiles.customcategories.create --body '{"name":"uap-poc-example"}' --dry-runskope run profiles:list --arg type=network
A recipe that changes data also needs --summary. Every command takes --json when you want machine-readable output.
skope agents This prints the instructions for an agent: discover, preview, act; the exit codes; and why an agent must never ask for or print your token. Give its output to Claude Code or another shell agent.Update skope
For now, you get new versions from GitHub Releases. Run the install script again to update to the latest release; it never downgrades unless you pass --version with an older release. You can also download the new version by hand. To see which version you have, run skope version.
skope update refuses in 0.1.0 It stops with exit 5 before it contacts anything (update_test_key on macOS, update_unsupported_platform on Windows). Self-update arrives with a later release that carries the real signing key, once releases are hosted on mcp-poc.netskope.tech. Until then, run the install script again.Already settled
- Why do you need
gh? The CLI repository is internal, so every download needs a GitHub sign-in with netSkope org access. The signed-inghprovides it. The netSkope docshare CLI installs the same way. - Why is the Windows binary not signed? It is an owner decision for v0.1.0. Signing comes with hosting on
mcp-poc.netskope.tech. - Why not
skope updateyet? Version 0.1.0 carries a test-only update key, so it refuses to update itself. Self-update needs both the real signing key and a signed manifest hosted onmcp-poc.netskope.tech; both come in the next step. Until then, run the install script again.
Recipes by function
A recipe is a reviewed, server-authored workflow. You don't need to know their names: describe what you want and the assistant finds the right recipe and fills in its arguments. The groups below show what you can ask for in each area, the workflows and recipes behind it, and which resources the generic base recipes cover there. Recipes marked change run with execute_change (your client asks first); the rest only read.
Internet Access policy
Web (SWG) rules and policy groups: list, create, change, delete, validate against the tenant's live schema, and deploy.
- "List the rules in Default Policies."
- "Block Gambling for the Branch IPs network at the bottom of Default Policies — check it before creating anything."
- "Disable the rule 'Test rule 1'."
- "Move policy group 'Test Group 3' above Default Policies."
Workflows
| Workflow | What it covers | Recipes |
|---|---|---|
| Manage Internet Access Policy manage.internet.access.policy | View, create, update, deploy, and reorder Internet Access policy rules and groups. Includes app/domain/tag lookups via CCI for rule criteria, user and group lookups for targeting, and user-attribute schemas for criteria selection. Covers the full authoring lifecycle: pending changes, version history, deploy, and revert. | 16 |
Recipes
| Recipe | What it does | Tool |
|---|---|---|
| iap:list_org_units q, limit | List organizational units (OUs) for a rule's org_units, read from the OU each user sits in. Returns org_unit (the string org_units takes) with users_seen (a lower bound: reading stops once every OU is found), and the tenant's own OU total; complete says whether every OU was found (an OU with no users cannot be). | read |
| iap:list_categories urls | Classify example URLs to get predefined category ids + names for rule criteria (category_ids). Tenant URL-lookup quota applies. | read |
| iap:list_users emails, q, limit | Find individual users to target a rule or an exception (the "who"). Pass emails to check exact addresses (returns found + missing), or q to search user names. Returns email, name, active, groups. | read |
| iap:get_rule id, ids, name | Read rules in full (criteria, exceptions, actions, schedule, status, modify time) by id, ids (max 10) or exact name. Use after iap:list_rules, which returns compact rows. | read |
| iap:list_rules enabled_only, group_id, q, limit | List SWG policy rules with name, status (incl. pending), action, and group. Filters run on the tenant; only the pages needed are fetched. | read |
| iap:list_policy_groups q, include_system | List Internet Access policy groups a rule can go in. Excludes system groups by default. | read |
| iap:list_user_groups q, limit | List user groups to target a rule (the "who"). Returns id + name. With q, searches every group by name (up to 5,000), not only the first page. Organizational units are listed here too; use iap:list_org_units to find them. | read |
| iap:rule_schema destination, goal | What this tenant supports for a rule of a given destination type — criteria, exceptions, actions, schedule. Read-only; use before authoring. | read |
| iap:create_policy_group name, position, anchor_group, enabled | Create a new Internet Access policy group to hold rules. It applies directly; the group API has no pending (interactive) mode for a new group. The `enabled` argument is sent, but the tenant may ignore it (the group API documents no enabled field). | change |
| iap:create_rule name, allow_duplicate_name, group_id, description, enabled, goal, destination, action, category_ids, custom_category_ids, cloud_app_ids, app_suite_ids, firewall_app_ids, app_instance_ids, users, user_group_ids, org_units, user_authentication, network_ids, egress_network_ids, browser_names, os_family_names, access_method_names, user_confidence, http_header_ids, destination_profile_ids, service_object_ids, file_profile_ids, activities, source_country_names, destination_country_names, cci_app_tags, ccl, schedule, exceptions, notification_template, suppress_alerts, position, position_rule_id, validate_only, interactive, stage | Create an SWG rule validated against this tenant's LIVE rule schema — only supported attributes are accepted. validate_only:true is the dry run (returns violations, supported attributes, and the exact request; creates nothing). Applies directly by default; interactive:true stages it as pending (then iap:deploy). Refused up front: the same user, group or OU in criteria and in an exception, and a rule name that already exists (unless allow_duplicate_name:true). | change |
| iap:delete_policy_group id, name | Delete a custom policy group by id or exact name (an ambiguous name is refused). Applies immediately. Refused up front for any group that is not a custom group (header, footer, default, section, or no type) and for a group that still holds rules or whose rules cannot be counted. | change |
| iap:delete_rule id, name, interactive, stage | Delete a rule by id or exact name. Applies directly unless interactive:true. | change |
| iap:deploy group_ids, change_note | Deploy PENDING changes made with interactive:true. Optional group_ids and change_note. | change |
| iap:update_policy_group id, name, set, position, anchor_group | Rename or describe a policy group, and/or move it before or after another group — by id or exact name (an ambiguous name is refused). Rename and move are for custom groups only (a header, footer, default or section group is refused). The tenant API cannot enable or disable a group (set.enabled is refused). Applies directly; each changed field is read back and a field the tenant did not take is reported (ok:false), never listed as changed. | change |
| iap:update_rule id, name, set, interactive, stage | Change a rule by id or exact name — same shortcuts as iap:create_rule, merged into the current rule and verified by reading it back. Applies directly unless interactive:true. | change |
Also covered by base recipes
| Recipe | Resource | Operations |
|---|---|---|
| policy:manage | internetaccess/defaultaction | replace |
| policy:manage | internetaccess/groups | create, update, delete, move, pin |
| policy:manage | internetaccess/rules | create, deploy, update, delete, move, revert |
Policy objects
Network, destination, service and DNS profiles and custom categories that rules reference — including staged changes and ordered deploys.
- "Create a destination profile with *.example.com and example.org."
- "List our custom categories with 'test' in the name."
- "Stage these objects without applying them, then deploy just mine."
Workflows
| Workflow | What it covers | Recipes |
|---|---|---|
| Manage Policy Objects manage.policy.objects | Create, look up, and delete the dependency objects that policy rules reference — Network Profiles (source IPs), Destination Profiles, Service Profiles (ports/protocols), Custom URL Categories, URL lists, HTTP Header Profiles, and DNS Security Profiles. Build these first, then reference their ids in Internet Access rules. | 11 |
Recipes
| Recipe | What it does | Tool |
|---|---|---|
| profiles:find_apps names, kinds | Look up cloud apps (CCI catalog), firewall apps and app suites (predefined application list) by name, and give the ids a rule needs. Per kind, exact (any case) matches win; otherwise partial matches, marked. At most 20 names per run. Put the ids in iap:create_rule as cloud_app_ids, firewall_app_ids or app_suite_ids. A source this token cannot call is listed under unavailable; the other kinds still run. | read |
| profiles:get type, id, name, values_limit | Read one policy object by type and id or exact name, with its values, status and modify time. Long lists (values) are cut at values_limit and the full length reported. Use after profiles:list. http_header falls back to the legacy list if the tenant answers 403. | read |
| profiles:list type, q, limit | List objects of one type with compact {id, name} rows — use to find ids for rule criteria. url_list on a tenant without the URL Lists licence answers ok:false with a hint; http_header falls back to the legacy list if the new endpoint answers 403. | read |
| profiles:create_custom_category name, description, included_predefined_categories, included_url_lists, excluded_url_lists, included_destination_profiles, excluded_destination_profiles, interactive, stage | Category composed of predefined categories, URL lists, and/or destination profiles. Applies directly unless interactive:true. | change |
| profiles:create_destination_profile name, values, type, description, label_ids, interactive, stage, skip_invalid | URL/domain match object (destination IP groups / URL lists in other products). Applies directly unless interactive:true. | change |
| profiles:create_dns_profile name, description, log_traffic, block_security_categories, security_action, block_business_categories, business_action, allow_domains, block_domains, allow_destination_profiles, block_destination_profiles, sinkhole_ip, block_all_except_allow_list, block_dns_tunnels, tunnel_allow_list, tunnel_allow_destination_profiles, custom_dns_servers, bypass_original_dns, fallback_to_netskope_dns, inheritance_groups, domain_config, tunnel_config, custom_config, interactive, stage | DNS profile — security/business category blocking, allow/block lists, tunnel detection, custom resolvers, inheritance groups. Applies directly unless interactive:true. | change |
| profiles:create_network_profile name, values, description, deploy, interactive, stage | Network location object of IPv4/IPv6 addresses or CIDRs (source IP groups in other products). Applies directly; if the tenant leaves it pending, deploys just this profile. interactive:true leaves it pending instead. | change |
| profiles:create_service_profile name, description, tcp, udp, tcp_udp, icmp, interactive, stage | Network service object (network services in other products). Ports as "443" or "8000-8100"; ["any"] (tcp: ["any"]) means any port; a bare [] is refused. Applies directly unless interactive:true. | change |
| profiles:create_url_list name, type, values, description | Generic list object (urlexact | urlregex | domain | network). Prefer Destination Profiles for new policy work. A tenant without the URL Lists licence gets ok:false with a hint, not an error. | change |
| profiles:create_http_header_profile name, request_headers, response_headers | Match on request/response headers for rule criteria (http_header_ids). If the list endpoint answers 403, the duplicate-name check uses the legacy header list. | change |
| profiles:delete type, id, name, interactive, stage | Delete one object of a type by id or exact name. Applies directly unless interactive:true (not available for url_list / http_header). The tenant refuses objects still referenced by a rule. An http_header name is looked up in the legacy list if the tenant answers 403 on the new one. | change |
| profiles:deploy type, ids, names, change_note | Apply pending (interactive:true) profile changes — by default every pending object of every type, in dependency order, then reports pending rules (deploy those with iap:deploy, after the profiles). | change |
Also covered by base recipes
| Recipe | Resource | Operations |
|---|---|---|
| profiles:manage | customcategories | create, deploy, update, delete, revert |
| profiles:manage | destinations | create, deploy, update, delete, revert, patch_values, migrate, patch_migrate, getevaluation |
| profiles:manage | dns | create, update, delete, deploy |
| profiles:manage | dns/inheritancegroups | create, update, delete, deploy |
| profiles:manage | httpheaders | create, delete, update |
| profiles:manage | networks | create, deploy, update, delete, revert, patch_values |
| profiles:manage | serviceobjects | create, update, delete, deploy, revert |
Private Access (NPA)
Private apps, publishers, and NPA policy groups and rules. npa:list_publishers lists publishers (and the apps behind one); changes and the rest go through the base recipes.
- "List private apps that use publisher 'pub-east'."
- "Create a private app for jira.internal.example on TCP 443."
- "Show the NPA rules in policy group 'Engineering'."
Recipes
| Recipe | What it does | Tool |
|---|---|---|
| npa:list_publishers q, publisher_id | List Private Access publishers with status and version; q filters by name. With publisher_id it also lists the private apps behind that publisher. Read only. | read |
Also covered by base recipes
| Recipe | Resource | Operations |
|---|---|---|
| policy:manage | npa/policygroups | create, update, delete |
| policy:manage | npa/rules | create, update, delete |
| steering:manage | apps/private | create, delete_all, replace, update, delete, put_publishers, patch_publishers, delete_publishers |
| steering:manage | apps/private/discoverysettings | create |
| steering:manage | apps/private/tags | create, replace, update, delete_all, replace_all, delete |
| infrastructure:manage | publishers | create, put_bulk, replace, update, delete, registration_token, collectremotelogs |
| infrastructure:manage | publishers/alertsconfiguration | replace |
| infrastructure:manage | publisherupgradeprofiles | create, put_bulk, replace, delete |
DLP & incidents
Investigate DLP incidents and their workflow, and manage DLP profiles, rules, dictionaries and fingerprints.
- "What were our top DLP violations this week?"
- "Show open high-severity incidents older than seven days."
- "Who are the top users behind incidents in Microsoft 365?"
Workflows
| Workflow | What it covers | Recipes |
|---|---|---|
| Analyze DLP Incidents intent.incident.analysis | Full DLP incident investigation workflow. Search and triage incidents, retrieve forensics and file content, add or review notes, update incident status, and correlate with alert events. Supports executive reporting, investigation plans, and operational analysis modes. | 1 |
| Analyze Incident Status & Workflow intent.incident.status.analysis | Analyze the distribution and lifecycle of open DLP incidents. Review status breakdowns (new, in-progress, closed), identify backlog, and assess incident workflow health across the organization. | guided |
Recipes
| Recipe | What it does | Tool |
|---|---|---|
| dlp:top_10_violations days, limit | Rank DLP incidents by DLP rule (or policy or profile) over a recent window, from at most 1,000 incidents read in one search. | read |
Also covered by base recipes
| Recipe | Resource | Operations |
|---|---|---|
| incidents:manage | dlpincidents/{id}/notes | create, delete |
| incidents:manage | incidents | patch_update |
| incidents:manage | watchlists | create, replace, update, delete, getwatchlistsbyuser |
| services:manage | dlp/entities/dataidentifiers | create, replace, delete, validate |
| services:manage | dlp/entities/dictionaries | create, delete, replace |
| services:manage | dlp/fileprofiles | create, replace, delete |
| services:manage | dlp/fingerprints | create, replace, delete, hashes, profiles |
| services:manage | dlp/profiles | create, delete, replace, deploy |
| services:manage | dlp/rules/columnclassification | create, delete, replace |
| services:manage | dlp/rules/content | create, delete, replace |
Investigations & reporting
Search and aggregate events (alerts, apps, DLP incidents, web, network, client status, endpoint DLP) with the events:search recipe — no code — and guided workflows for insider risk, user and app activity, client versions, security posture and digital experience (ADEM metrics still need code access).
- "Which apps were used most today?"
- "Show jane@example.com's alerts from the last 30 days."
- "Which users have the highest insider-risk scores this month?"
- "Generate a security posture report for the last 30 days."
Workflows
| Workflow | What it covers | Recipes |
|---|---|---|
| Analyze Insider Risk intent.insider.risk.analysis | Prioritize users by insider risk across multiple alert types — UBA anomalies, DLP violations, compromised credentials, malsite, malware, and proceed-action alerts. Identify high-risk users and summarize their threat indicators. | 1 |
| Generate Security Posture Report intent.security.posture.report | Produce a comprehensive security posture report covering alerts, DLP incidents, application usage, web activity, network traffic, and endpoint client status. Outputs an executive-ready summary with visualizations across all event domains. | 1 |
| Search & Analyze Events analyze.events | Search and aggregate alerts, application activity, DLP incidents, web pages, network, client status and endpoint DLP events with arguments only — filter (JQL), fields, grouping and time window — through the events:search recipe. The data source for investigations and reports. | 1 |
| Troubleshoot User Digital Experience intent.adem.troubleshooting | Investigate a specific user's digital experience using ADEM telemetry. Given a username and time range, retrieve device info, app experience scores, RCA, network metrics, traceroutes, and NPA path analysis to diagnose poor connectivity or application performance reported in a support ticket. | guided |
| Analyze Application Activity intent.application.activity.analysis | Interactive analysis of cloud application activity across the organization. Query application events using JQL, explore usage patterns, identify risky apps, and drill into specific application behaviors. | guided |
| Analyze Client Versions intent.client.version.analysis | Report on Netskope client versions deployed across endpoints. Identify outdated clients, compare against the current golden release, and surface devices that need updates. | guided |
| Generate User Activity Report intent.user.activity.report | Generate a risk-focused activity report for a specific user. Retrieve their alerts and security incidents, web application activity, and cloud app usage to assess risk posture and produce a comprehensive per-user report. | guided |
Recipes
| Recipe | What it does | Tool |
|---|---|---|
| events:rank_insider_risk days, limit, patterns | Rank users by insider risk over a window from UBA, DLP, compromised-credential, malsite and malware alerts and warnings they proceeded past. Breadth of signals outranks volume. Returns per-user counts by signal, the score formula, and the top alert name/type pairs with their share of all alerts. 4 alert searches (about 210 credits). | read |
| events:search type, query, fields, groupbys, orderbys, hours, days, starttime, endtime, limit | Search alerts, application, incident, page, network, client-status or endpoint-DLP events with a JQL query, chosen fields, grouping and a time window — no code needed. Learn fields with query(schema:"<type>"). | read |
| events:summarize_posture days, top, sections | Security posture summary for a window, aggregated on the tenant (no raw events). Alerts by type plus top alerts and users; DLP incidents by status and severity plus top apps and users; top cloud apps, web categories and domains, network destinations; devices by client version. A section that fails is reported with its error. Up to 19 searches (about 990 credits); pass sections for a cheaper run. | read |
Users, groups & admin roles
SCIM users and groups, admin roles and labels.
- "Create a SCIM group 'MCP testers'."
- "Which admin roles exist, and who has them?"
- "Add jane@example.com to the 'MCP testers' group."
Covered by base recipes
| Recipe | Resource | Operations |
|---|---|---|
| scim:manage | Groups | create, replace, update, delete |
| scim:manage | Users | create, replace, update, delete |
| rbac:manage | labels | create, update, delete |
| rbac:manage | roles | create, replace, update, delete |
Steering & connectivity
IPsec and GRE tunnels, device tags and client enrollment settings.
- "List our IPsec tunnels and their status."
- "Create a device tag 'kiosk'."
- "Which enrollment token sets exist?"
Covered by base recipes
| Recipe | Resource | Operations |
|---|---|---|
| steering:manage | gre/tunnels | create, update, delete |
| steering:manage | ipsec/tunnels | create, update, delete |
| devices:manage | device/tags | create, update, delete, bulkadd, bulkremove, bulkreplace |
| enrollment:manage | secure-config | replace |
| enrollment:manage | secure-enrollment | replace |
| enrollment:manage | tokenset | create, update, delete |
| enrollment:manage | tokenset/{id} | delete |
All base recipes
For anything without a dedicated workflow, the assistant uses a base recipe: every changeable API resource (352 resources, 872 operations) is reachable through its domain's <domain>:manage recipe. They find objects by exact name across all pages, refuse duplicate names, and return API errors as errors.
execute_read({ prompt: "policy:manage", args: { op: "resources", q: "groups" } })
execute_change({ summary: "Rename policy group 'Old' to 'New'", prompt: "policy:manage",
args: { resource: "internetaccess/groups", op: "update", name: "Old", body: { name: "New" } } })| Recipe | Resources |
|---|---|
| adem:manage | users/device |
| aibom:manage | aibom, scans |
| aig:manage | aiproviders, aiproviders/{id}/apikeys, appliances, mcpservers, ratelimits, tokengroups, tokens, upgradeprofiles |
| aiguardrails:manage | aiguardrails, detection/falsepositives, events/settings, llm/settings |
| airt:manage | promptsets, promptsets/{id}/prompts, rounds, rounds/{id}/rerun, rounds/{id}/summary, rounds/estimate, targets |
| analysis:manage | analysis, npa, npa/feedback, npa/generation, npa/job/{id}/generation/apps, npa/job/{id}/generation/policies, npa/notification/config, npa/scope |
| appaccess:manage | drm/apps, drm/instances, tssincidents/instances |
| atp:manage | scans, tpaas/submission, tpaas/urlscan/submission |
| auth:manage | tokens |
| balkan:manage | notifications |
| casbapi:manage | accessreviews, accessreviews/{id}/justifications, apps/{app}/instances/{instance}/files, apps/{app}/instances/{instance}/files/batch, apps/{app}/instances/{instance}/retroscans, entities, incidents/legalhold, incidents/quarantine, ongoing, ongoing/policies, remediation |
| clientconfiguration:manage | client/config/swgglobalattributes |
| datalineage:manage | admin/stance |
| deepfakedetection:manage | deepfakedetection |
| dem:manage | alert/receivers, alert/rules, appprobes, apps, globalsettings, globalsettings/monitoredapps, networkprobes, networkprobes/default, query |
| deviceclassification:manage | client/onpremdetection, onpremdetection/steering, rules, tags |
| devices:manage | device/tags, devices, support |
| drm:manage | config/{vendor} |
| dspm:manage | administration/sidecarpools/appliance, classificationmanagement/columns, classificationmanagement/datatagcategories, classificationmanagement/datatags, classificationmanagement/sensitivedatatypecategories, classificationmanagement/sensitivedatatypes, datastores/connected, deidentification, deidentification/lookups, deidentification/rules |
| echo:manage | audit, auditlog/withflag, auditlog/withoutflag, auto-appy-2-dir-test, echo, ratelimit, ratelimit-at-route, without-authn, without-authn-audit |
| enrollment:manage | secure-config, secure-enrollment, tenantnotifications, tokenset, tokenset/{id} |
| epdlp:manage | constraints, datalineage/exclusions |
| events:manage | clickhouse/webui, dataexport/iterator, logstreaming/stream, ueba/alerts |
| forwardproxy:manage | auth/globalsettings, idpaccounts, oidc/idpaccounts, saml/idpaccounts, saml/samlgroups |
| foundation:manage | job |
| incidents:manage | anomalies, dlpincidents/{id}/notes, incidents, uci/threshold, user, users, users/exclusionlist, users/uci, watchlists |
| infrastructure:manage | lbrokers, lbrokers/brokerconfig, npa/resource/validation, publishers, publishers/alertsconfiguration, publisherupgradeprofiles |
| ips:manage | alertonlymode, allowlist, ips, notificationtemplate, signatureoverrides, status, threathuntingconfig |
| marketplace:manage | agent-entitlements/agent-access, agent-entitlements/agent-access/agreements, agent-entitlements/agent-access/grants, agent-entitlements/catalog/agents, agent-entitlements/catalog/categories, agent-entitlements/limits, agent-entitlements/limits/planned, agent-entitlements/utilization/agents, agent-entitlements/utilization/beta-lab/agents |
| notifications:manage | customimages, user/deliverysettings, user/templates |
| nsbrowser:manage | browserconfigs, configpolicies, configurationpolicies, downloads, emailtemplates, emailtemplates/custom, emailtemplates/customizeimage, extensionpolicies, extensions, extensions/policies, extensions/selfhosted, fallbackactions, homepages, invitedgroups, licenses, nsbrowser, policies, proxysettings, tenantvisibility |
| nsiq:manage | url/recategorizations |
| partner:manage | networks |
| platform:manage | adminaccessdomains, administration/scim/Me, administration/scim/Users, administration/supportadmin/settings, administration/users, administration/users/generalsettings, advancedfilescanconfig, auth/settings/global, customroles, dnsresolver/tenant/ip/list, oauth2, oauth2/token, ssoconfig/idpaccounts |
| policy:manage | aig/access/groups, aig/access/rules, aig/access/rules/criteria, aig/aiguardrails/groups, aig/aiguardrails/rules, aig/aiguardrails/rules/criteria, aig/custommeta, aig/dlp/groups, aig/dlp/rules, aig/dlp/rules/criteria, aig/featureconfigs, domainfrontings, epais/configurations, epais/groups, epais/rules, fallback/groups, fallback/rules, fastpath/groups, fastpath/rules, internetaccess/defaultaction, internetaccess/groups, internetaccess/rules, npa/policygroups, npa/rules, realtime/rules, ssldecryption/defaults, urllist, urllist/{id} |
| profiles:manage | accessproxies, aiagentguardrails, aiguardrails, aiguardrails/customtopic, aiguardrails/customtopics, applications, customcategories, destinations, deviceintelligence, dns, dns/inheritancegroups, domains, forensic/aws/instances, forensic/azure/instances, forensic/box/instances, forensic/gdrive/instances, forensic/googlecloud/instances, httpheaders, lists, malware/azure/instances, malwareretention/profiles, networks, remoteproxies, serviceobjects, web/categories |
| proxyagentapi:manage | chat/{id}/history, invoke, proxyagentapi |
| rbac:manage | labels, roles |
| rbi:manage | cdr, cloudstorage, templates |
| reporting:manage | aa/reports/{reportid}/widgets, aa/widgets, er/reports/{reportid}/widgets, er/widgets |
| scim:manage | Groups, Schemas, Users |
| services:manage | authentication/mtls, bandwidthcontrol/deploy, bandwidthcontrol/links, bandwidthcontrol/policies, bandwidthcontrol/trafficclasses, bandwidthcontrol/trafficclassrules, casbinline, casbinline/constraints, casbinline/constraints/storage, casbinline/constraints/users, casbinline/skopeit, cci/app, cci/app/customization, cci/app/submitrequest, cci/app/tagging, cci/appfw, cci/apps, cci/gpt/app, cci/tags, certs, certs/mtls, cloudtap, dlp/appliance, dlp/appliance/upgrades, dlp/class/custom, dlp/class/custom/upload, dlp/classifiers/custom, dlp/classifiers/custom/{id}/files, dlp/classifiers/custom/{id}/modeleval, dlp/classifiers/predefined, dlp/edm/file/apply, dlp/edm/file/staging, dlp/edm/files, dlp/edm/files/{id}/columngroups, dlp/entities/dataidentifiers, dlp/entities/dictionaries, dlp/fileprofiles, dlp/fingerprints, dlp/fingerprints/{id}/files, dlp/profiles, dlp/rules/columnclassification, dlp/rules/content, marketplace, pki/signingca |
| skopilot:manage | chattopics, chattopics/{id}/questions/{qid}/answers |
| smtpproxy:manage | ipallowlist |
| spm:manage | {app}/privilegedpermissions, contentdef/customapps/{app_name}/accountsettings, customapps, ingestor/customapps/{appname}/instances, ingestor/customapps/{appname}/instances/{instancename}/accountsettings, ingestor/customapps/{appname}/instances/{instancename}/groups, ingestor/customapps/{appname}/instances/{instancename}/roles, ingestor/customapps/{appname}/instances/{instancename}/thirdpartyapps, ingestor/customapps/{appname}/instances/{instancename}/users, inventory, inventory/filters, inventory/thirdpartyapps, inventory/thirdpartyapps/filters, policies, policies/apply, policies/filters, preferences/customfilters, report/schedules, results, results/export, results/filters, results/getposturescores, results/resources, results/rules, rules, rules/filters, rules/ngl, stats |
| steering:manage | apps/private, apps/private/discoverysettings, apps/private/tags, cloudexplicitproxy/https, expressconnect/sites, gre/tunnels, ipsec/tunnels |
| streamingclient:manage | clients, destinations, formats |
| ubadatasvc:manage | pdv, ubadatasvc, user |
| uebabreach:manage | breachinfo, breachinfo/corpdomain, breachinfo/domains, breachinfo/ondemand, breachinfo/users |
| ui:manage | casbapi, casbapi/dashboard/export, casbapi/dashboard/export/schedule, casbapi/policies, casbapi/userentitlement/retroscan/export/schedule, notifications, settings/scim, settings/scim/v1 |
| vpe:manage | groups, nodes, platformtemplates, servicetemplates, tokens |
| vpemanager:manage | groups, nodes, platformtemplates, servicetemplates, tokens |
Access & safety
Access modes — what each one supports
Your API token is the gate. What the assistant can read or change is decided by the token's RBAC role on your tenant — give it a read-only service account and nothing can be changed. The MCP adds only one control of its own: whether the token may run code the server didn't write (recipe authoring). Every token gets recipes_only unless the POC team grants code access for recipe development.
| recipes_only everyone | codemode_read | codemode_full | |
|---|---|---|---|
| Meant for | Everyone | Recipe authors, while developing | Recipe authors, dev/test tenants only |
Discovery — workflows, recipes, event schema, API signatures, debug | ✓ | ✓ | ✓ |
Read recipes, incl. events:search (search & aggregate events) | ✓ | ✓ | ✓ |
Change recipes (execute_change, every resource via <domain>:manage) — if the token's role allows the change | ✓ | ✓ | ✓ |
| Free-form code that reads | — | ✓ | ✓ |
| Free-form code that changes | — | — | ✓ with confirm: true |
Limit to chosen workflows (allowed_intents) | optional | optional | optional |
- Why no code by default: code the server didn't write is the main risk code-mode adds, and curated workflows are what the NSA guidance on MCP calls for. Recipes cover reads (including event search and aggregation) and every change.
- Refused code isn't lost: when a token without code access sends code, nothing runs, but the attempt (redacted) and the APIs it tried to call are logged as recipe demand — the POC team's backlog for new recipes.
- Need a mode changed? Ask in #netskope-hosted-mcp-server-interest-group.
Changes
- Apply immediately by default. Pass
interactive: trueto stage a change as pending instead. Pending changes are not enforced until deployed. - Deploy staged work in order:
profiles:deployfirst (policy objects), theniap:deploy(rules), because rules reference the objects. - Preview before risky changes.
preview: trueruns the reads and shows the exact request of the first change without sending it. - Changing a pending object needs
interactive: true, or deploy it first.
Sandbox limits (per run)
| Limit | Value |
|---|---|
| Wall-clock time | 30 seconds |
| API calls | 50 |
| Data returned from APIs | 5 MB |
| Output returned to the assistant | 100 KB |
| Credits | 10,000 |
Credits are metered per API call and per KB returned, and shown with every result. Daily quotas are not enforced on this POC.
Examples
Scenario: replace another vendor's URL-filtering rule that blocks adult content for branch offices.
- "Create a network profile called Branch IPs with 10.1.0.0/16 and 10.2.0.0/16."
- "Block Adult Content and Gambling for those IPs, at the bottom of Default Policies. Check it before you create anything."
- "Looks good — create it."
- Checks that no profile called "Branch IPs" exists, then creates it (your client asks you to approve the change).
- Looks up the category ids and the policy group, then validates the rule against your tenant's live rule schema and reports anything unsupported — without creating it.
- On your go-ahead, creates the rule and reports its id, group and criteria.
Scenario: a weekly review of data-loss incidents.
- "What were our top DLP violations this week?"
- "Which users and apps drive the top one?"
- "Summarize the riskiest user's recent activity."
- Runs the DLP workflow for the ranked list.
- Runs an event search grouped by user and app (
events:search) — the thousands of raw events stay on the server; only the counts come back. - Reads only, so your client can run it without approval prompts.
Scenario: prepare several objects for review before they take effect.
- "Stage destination profiles for these three domain lists, and a custom category that uses them — don't apply anything yet."
- "What's pending on the tenant?"
- "Show me exactly what deploying just mine would send."
- "Deploy them."
- Creates each object as pending — not enforced yet.
- Lists everything pending, including other admins' staged work.
- Previews the deploy request without sending it.
- Deploys only your objects, policy objects before any rules that use them.
Scenario: tidy up test objects and reorder policy groups.
- "Delete the custom category Test_01."
- "Move the policy group Test Group 3 above Default Policies."
- Finds each object by its exact name and shows you what will be sent before deleting or moving it.
- If a rule still uses the category, the tenant refuses the delete and the assistant tells you why.
- "What can I do on my Netskope tenant?"
- "Can you change web policy for me?"
- Lists the curated workflows and what each covers, and explains what your token is allowed to do.
Best practices
- Use a least-privilege token; start read-only.
- Keep it in an environment variable or your client's secret store.
- Rotate it regularly and never commit it.
- Auto-approve
queryandexecute_readif you like. - Keep approval on for
execute_change. - Ask for a preview before deletes and bulk changes.
- Filter by name (
q) instead of listing everything. - Lists fetch only the pages they need; raise
limitto see more. - With code access, aggregate in code rather than pulling raw events.
profiles:deploywithout names deploys everyone's pending objects — pass the names you staged.- Use
iap:deploywithgroup_idsto scope rule deploys.
Platform limits to know
| Item | What to do |
|---|---|
| Recurring schedules (time of week) | The API takes one absolute window (start_time / end_time). Recurring schedules are planned as Policy Schedule (NPLAN-6266). |
| Isolate (Remote Browser Isolation) | A separate rule type, goal: "rbi", that needs the RBI license. Check with iap:rule_schema and goal: "rbi". |
| URL lists | Use destination profiles, which replace URL lists (including inside custom categories). |
| Licensed features & access | The catalog lists every published endpoint as of October 23, 2026, including ones your tenant is not licensed for or your token's role cannot use. Those return HTTP 403 ("licensed feature" or "forbidden") — a tenant license or role limit, not a server problem. |
Troubleshooting
Ask the assistant to "debug my last request" — it reports what was expected versus what happened and what to check. If that doesn't explain it, post in #netskope-hosted-mcp-server-interest-group with the execution_id — see Feedback & support.
| Message | Meaning and fix |
|---|---|
| 403 on connect / "tenant hash validation failed" | The access code doesn't match the tenant in the URL. Check the {tenant} mapping and the code (your mcp-preview code for the same tenant), or ask in #netskope-hosted-mcp-server-interest-group. |
| "… rejected this token (HTTP 401/403)" | The token is invalid, expired, or belongs to a different tenant. Use a REST API v2 token for the tenant in the URL. |
| "identity service … temporarily unavailable" | The tenant's SCIM service didn't answer. Nothing ran; retry in a minute. |
| "API rate limit exceeded (HTTP 429)" | The tenant's API gateway limited the endpoint. The server already retried; wait briefly, and filter by name to make fewer calls. |
| "non-interactive operation on pending … (HTTP 409)" | The object has staged changes. Re-run with interactive: true, or deploy it first. |
| "Not sent — needs execute_change" | A read run tried to change something. Re-run with execute_change and a summary. |
| "Not permitted (…)" | The access policy refused the request (e.g. free-form changes, or a read-only token). The message names the policy and the route to use. |
| "licensed feature" / "forbidden" (HTTP 403) on one capability | The endpoint is in the catalog but your tenant isn't licensed for it, or your token's role can't use it. Ask your admin to enable the feature or extend the token's scope. |
| Requests fail with 403 after connecting | Your token or tenant restricts source IPs — see Egress IP. |
Feedback & support
Raise feedback, bugs and questions in the #netskope-hosted-mcp-server-interest-group Slack channel — that thread is where the POC team triages issues and announces changes.
Say "debug my last request" (or give it an execution_id). The server answers with a short report — what was expected, which API calls ran and their status, where it stopped, what changed, and what to check. The full trace stays on the server, so if you still need help, the execution_id is all we need.
- What you asked, and what you expected.
- The
execution_idunder the result (for exampleexecution_id: 3e61bb8f-…) — it lets us find the exact run, its API calls and errors. - Your tenant (e.g.
mytenant.goskope.com) and client (Claude Code, Cursor, …). - The error message, if any. Never paste your API token.