Skip to main content
Glama
sassoftware

SAS MCP Server

Official
by sassoftware

publish_decision_flow

Publish a locked decision revision to a Micro Analytic Score (MAS) destination, then return the generated module ID for use in scoring.

Instructions

Publish a locked decision revision to a Micro Analytic Score (MAS) destination.

Required before score_data can execute the decision — MAS runs published modules, not decision flows directly. Requires the DS2 code generation service to be healthy for this decision's rule sets; an error mentioning rule set code generation is an environment-level issue, not a bad payload.

Publishing is asynchronous and the resulting MAS module ID is server-generated — it is NOT publish_name. This polls the publish job (properties.masModules[0].jobUri) until it reaches a terminal state and returns the real moduleId alongside the publish record, so the result is directly usable with get_mas_module_step_signature/score_data without a separate lookup via list_mas_modules.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
decision_idYesThe decision flow UUID (not its name — list_decision_flows returns both).
revision_idYesThe locked revision UUID (see ``lock_decision_flow_revision``).
poll_timeoutNoMax seconds to wait for the publish job to reach a terminal state before giving up (default 60.0).
publish_nameYesThe published name shown in Model Publish (not the MAS module ID — see above).
destination_nameNoThe configured MAS publishing destination (default "maslocal").maslocal

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations present, the description fully discloses the async behavior, polling mechanism, server-generated module ID, error interpretation (rule set code generation is environment-level), and the fact that the result is directly usable downstream. This is far beyond a basic description and gives the agent critical runtime expectations.

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

Conciseness5/5

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

The description is front-loaded with the core purpose, then prerequisites, then async details. Every sentence adds distinct value—no padding or repetition. The structure flows logically from what → when → how, making it easy to parse quickly.

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?

Given the tool's complexity (async job, upstream dependency, downstream consumers), the description covers prerequisites, error interpretation, polling behavior, and result usability. The output schema exists, so not explaining return values is appropriate. This description is fully self-contained for an agent to select and invoke the tool correctly.

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 baseline is 3. The description adds valuable semantic clarifications beyond the schema for publish_name (not the MAS module ID) and decision_id (not the name). While poll_timeout and destination_name are adequately covered by the schema, the additional context for the key parameters justifies a score above baseline.

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 description opens with a specific verb ('Publish') and identifies the exact resource ('locked decision revision') and destination ('Micro Analytic Score (MAS) destination'). It clearly distinguishes from sibling tools like publish_ml_champion_model and list_mas_modules by stating the publish action's unique role in the decision flow lifecycle.

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 when this tool is required ('Required before score_data can execute the decision'), gives a key prerequisite (DS2 code generation service health), and notes that no separate lookup via list_mas_modules is needed. This provides clear usage context and direct alternative avoidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sassoftware/sas-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server