Skip to main content
Glama
sassoftware

SAS MCP Server

Official
by sassoftware

Catalog Get Adhoc Analysis

catalog_get_adhoc_analysis
Read-onlyIdempotent

Check an ad-hoc analysis job's status and verify its profile is fully ready, preventing empty downloads by waiting for profile readiness before retrieving data.

Instructions

Get the status of an ad-hoc analysis job, and whether its profile is ready.

The job reaching a terminal status is not sufficient: the profile attributes are written onto the asset a little later, so a download fired the instant the job completes can come back empty. To close that gap, when the job carries a resource this also resolves the target catalog instance and reports profile_ready (the asset's analysisTimeStamp is populated — the same gate catalog_download_table_profile uses) and information_privacy (non-empty once the NLP semantic enrichment has landed). Poll until profile_ready is true, then download.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYesThe analysis job id returned by catalog_run_adhoc_analysis.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.2.1

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint/idempotentHint/destructiveHint annotations, the description discloses the delayed profile-attribute write, defines profile_ready via analysisTimeStamp, relates it to the gate catalog_download_table_profile uses, and adds the information_privacy/NLP enrichment behavior. This is substantial behavioral context, not schema repetition, and it does not contradict the annotations.

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 summary sentence is front-loaded and the second paragraph earns its length: it explains the race condition, defines the readiness flags, references the download gate, and ends with the exact polling action. No filler sentences are present.

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?

With only one parameter, an output schema, and safety annotations already supplied, the description covers the subtle timing gap, the meaning of profile_ready and information_privacy, and the correct invocation sequence. Nothing needed to call and act on this tool 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 description coverage is 100% and the sole job_id parameter is already documented as 'The analysis job id returned by catalog_run_adhoc_analysis.' The tool description adds only an indirect note about 'when the job carries a resource,' so the schema carries the parameter-semantics burden; baseline 3 is appropriate.

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-resource pair: 'Get the status of an ad-hoc analysis job, and whether its profile is ready.' It then sharpens the distinction from generic job-status tools by explaining that terminal status is not sufficient, so an agent can tell this apart from get_job_status and knows it is the readiness gate before catalog_download_table_profile.

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?

The description gives clear context and a direct usage pattern: 'Poll until profile_ready is true, then download.' It also explains the race condition that motivates the tool. It does not explicitly name a when-not-to-use alternative such as get_job_status, but the polling instruction and download caveat make the intended usage unmistakable.

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