Server Status
server_statusReports the connected SAS Viya endpoint, profile, user, and token status, and flags host mismatches that make write or code-run tools refuse while reads continue.
Instructions
Report which SAS Viya deployment this server is connected to, and as whom.
Call it before the first write or job of a task, and whenever results look as if they came from another environment. It returns no secrets.
Returns:
viya_endpoint and host: where every tool call goes.
profile: the environment profile that started the server
(MCP_PROFILE), or null when the launcher did not say.
expected_host and host_matches: the MCP_EXPECT_HOST
check, null when it is not set. writes_refused is true when the
check fails: tools that write or run code then refuse, and read
tools keep working.
user: the SAS Viya user id the calls run as, null when it could
not be looked up.
token: expires_at and seconds_left of the access token,
and renewal_available (whether this server can renew it
itself), or error when no token could be obtained.
server_version.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "server_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||