Skip to main content
Glama
sassoftware

SAS MCP Server

Official
by sassoftware

Lock Business Ruleset Revision

lock_business_ruleset_revision

Locks a rule set’s current state as an immutable revision so decision flows can reference a fixed versionId that later edits cannot change.

Instructions

Lock the current state of a rule set as an immutable revision.

Decision steps reference a specific rule set revision (versionId), not the live working copy, so a revision must exist before wiring a rule set into a decision flow — call again after editing rules if a decision needs to pick up the changes.

Viya locks the revision that was current and opens the next one: the result describes that new working revision, as before, and locked_revision the frozen one — use its id as the versionId for a reference that later edits cannot change.

The revision-creation request replaces the rule set's full content from the body sent, so this fetches the rule set with its rules included (application/vnd.sas.business.rule.set.integral+json) and resends them — omitting them would wipe the live rule set's rules, not just the new revision.

Input Schema

NameRequiredDescriptionDefault
ruleset_idYesThe rule set UUID (not its name — list_business_rulesets returns both).
revision_typeNo"minor" for iterative changes, "major" for a significant/approved milestone (default "minor").minor

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.7.0
    • changedInput schema / properties / ruleset_id / description
      Previous value: -"The rule set UUID."New value: +"The rule set UUID (not its name — list_business_rulesets returns both)."
  2. Addedv1.5.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: explains the fetch-and-resend mechanism, warns that omitting integral content would wipe the live rule set's rules, and clarifies that the result describes the new working revision while locked_revision is the frozen one. This is the kind of side-effect disclosure that destructiveHint: false alone would not convey.

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 core action and precondition are front-loaded, and each paragraph carries distinct information. It is somewhat long at four paragraphs, but the length is justified by the non-obvious fetch-and-resend warning; minor tightening is possible.

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?

Covers the required precondition, the destructive-if-mishandled implementation detail, and how to consume the result (locked_revision.id as versionId). With an output schema present and 100% param coverage, there is nothing material an agent needs that is missing.

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 coverage is 100%, so both parameters already carry descriptions of ruleset_id and revision_type. The description adds conceptual value by framing the locked_revision id as the versionId to use downstream, but it adds no new detail on the parameters themselves; baseline 3 applies.

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?

States a specific verb+resource: lock the current state of a rule set as an immutable revision. The resource ('rule set') distinguishes it from sibling siblings lock_decision_flow_revision and lock_decisioning_asset_revision without ambiguity.

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?

Explicitly states the precondition (a revision must exist before wiring a rule set into a decision flow) and the repeat condition (call again after editing rules if the decision must pick up changes). That is concrete when-to-use guidance rather than a vague context note.

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