analyze_portal
Analyze a ServiceNow portal to retrieve its pages, widgets, usage counts, and theme details. Use this to understand existing portal components before development.
Instructions
Analyze a complete Service Portal — pages, widgets, theme, widget usage counts.
Provide the portal's URL suffix (e.g. "sp" for the default portal) or its sys_id.
Returns:
Portal metadata (title, theme, homepage)
All pages (title, ID, public/private, roles)
Widgets available on the instance
Widget usage counts across pages
Theme details (CSS variables)
Summary statistics
Use this before starting portal development to understand what already exists.
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": {
"portal_id": "<portal_id>"
},
"name": "analyze_portal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| portal_id | Yes | Portal URL suffix (e.g. "sp") or sys_id |