Skip to main content
Glama
SAS MCP Server

SAS MCP Server

Official
by sassoftware

Delete Compute Session

delete_compute_session
DestructiveIdempotent

Delete a SAS compute session to end its running work and discard its WORK tables and macro variables; the next code execution starts a fresh session.

Instructions

Request deletion of a SAS compute session.

Ending a session ends whatever runs in it, including a batch job. Deleting the session that execute_sas_code reuses discards its WORK tables and macro variables, like reset_compute_session; the next call starts a new one. Find session ids with list_compute_sessions.

Only your own sessions are deleted. A session that belongs to another user is refused unless all_users is true.

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": {
      "session_id": "<session_id>"
    },
    "name": "delete_compute_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
all_usersNoAllow ending another user's session. Only an administrator can do that, and it ends that person's work: pass it only when the person explicitly asks for it.
session_idYesId of the compute session to delete.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.23.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag destructive=true/idempotent=true, yet the description adds substantive behavior: it ends running work including batch jobs, discards WORK tables and macro variables, and the next call starts a fresh session. It also discloses the authorization boundary (own sessions only, all_users requires admin), which annotations cannot express.

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?

Sentences are front-loaded with the primary action, followed by consequences, then the sibling pointer, then the permission caveat. Every sentence carries information; the reset_compute_session comparison is slightly compressed but not wasteful.

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 two-parameter destructive tool with full schema coverage, an output schema, and rich annotations, the description covers consequence, alternatives, and authorization limits. Nothing an agent needs before calling it destructively is absent.

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?

Schema coverage is 100%, so both parameters are documented in structured form; the description still adds semantic weight by explaining the ownership/refusal rule that makes all_users meaningful. It stops short of restating the parameter's admin-only restriction beyond a cross-reference, but the added meaning is real.

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?

Opens with a specific verb and resource: "Request deletion of a SAS compute session." It distinguishes itself from siblings by name, noting that delete discards WORK tables like reset_compute_session and that ids come from list_compute_sessions, so an agent can separate the three without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit usage context: it names the effect of ending a batch job, the consequence of deleting the session execute_sas_code reuses, the equivalent alternative reset_compute_session, and where to find session ids. It also states the exclusion condition — another user's session is refused unless all_users is true.

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