Skip to main content
Glama
SAS MCP Server

SAS MCP Server

Official
by sassoftware

List Compute Sessions

list_compute_sessions
Read-onlyIdempotent

List SAS compute sessions to verify which job owns a session before requesting deletion, including sessions used for code execution and batch jobs.

Instructions

List your SAS compute sessions.

Includes the session execute_sas_code reuses and the sessions Job Execution started for your batch jobs. Verify which job owns a session before requesting deletion.

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": "list_compute_sessions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum sessions to return (default 50).
startNoOffset of the first session, for paging.
all_usersNoList every session SAS Viya lets you see, not only your own. Only an administrator sees other users' sessions. Pass it only when the person explicitly asks for all sessions.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.23.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds genuine value by explaining which sessions appear in the result set and by warning that ownership should be checked before deletion, but it says nothing about result volume, ordering, or paging behavior beyond what the schema and output schema supply.

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

Conciseness4/5

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

The scope statement is front-loaded and the total length is small with no filler. The mid-sentence line break and the slightly convoluted "the sessions Job Execution started for your batch jobs" phrasing cost it a point on polish.

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

Completeness4/5

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

With an output schema, complete parameter documentation, and full annotations, the description only needs to add scope and routing context, which it does. The one remaining gap is that it never explicitly routes the agent to delete_compute_session or reset_compute_session as follow-on actions.

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

Parameters3/5

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

Schema description coverage is 100%, so limit, start, and all_users are already fully documented, including the administrator-only caveat on all_users. The description adds no parameter-level detail, so the baseline of 3 applies.

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

Purpose4/5

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

The description names a specific verb and resource ("List your SAS compute sessions") and sharpens the scope by naming the two populations returned: the session reused by execute_sas_code and sessions spawned by Job Execution. It stops short of distinguishing itself from the other list_* siblings, but the resource is unambiguous.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the line "Verify which job owns a session before requesting deletion" hints at a workflow with delete_compute_session, but there is no explicit when-to-use versus alternatives or when-not-to-use guidance. The all_users constraint is documented in the schema rather than the description.

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