Skip to main content
Glama
SAS MCP Server

SAS MCP Server

Official
by sassoftware

Server Status

server_status
Read-onlyIdempotent

Reports 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

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.23.0

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the readOnly/idempotent/non-destructive annotations, the description discloses operational consequences an agent could not otherwise infer: a failed host check makes write and code-running tools refuse while read tools keep working, tokens may or may not be renewable, and no secrets are returned. These are exactly the behavioral facts that affect planning, and they go well past what the annotations provide.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The leading guidance sentences are well front-loaded and earn their place, but the field-by-field Returns block (viya_endpoint, host, profile, expected_host, user, token subfields, server_version) largely restates a return value structure the tool already exposes via an output schema. On a zero-parameter status tool, that enumeration is padding, though the writes_refused note inside it is genuinely useful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-argument status tool with rich annotations and an output schema, the definition covers the remaining gaps: when to call it, what the host-mismatch state means for subsequent writes, and what it will not leak. Nothing needed to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters, so the baseline of 4 applies and no parameter explanation is needed. The description correctly avoids inventing inputs and instead spends its space on output semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence names a specific verb and resource: report which SAS Viya deployment the server is connected to and which user it runs as. That is a distinct, self-contained purpose that no sibling in the list (job, catalog, report, or glossary tools) shares, so an agent can identify it immediately.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete trigger conditions: call before the first write or job of a task, and whenever results look like they came from another environment. That is strong when-to-use guidance. It stops short of naming alternatives or exclusion cases, but no sibling performs this function, so the gap is minor.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools