prosuite-mcp

v0.2.3
prosuite-mcp Checked 1 day ago Published 3 months ago

MCP server for Dira ProSuite quality verification

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_conditions

List available ProSuite quality conditions. Returns condition names and their one-line description. Use search to filter by keyword (matched against name and description). Pass a result name to describe_condition to get full parameter details before building a run_verification call.

ParameterTypeDescription
searchstring

describe_condition

Describe the parameters of a ProSuite quality condition. Returns the full docstring and parameter list with types. Dataset parameters expect a dataset name string (must match a name in the datasets list you will pass to run_verification). Primitive parameters take their direct value (number, bool, string). Parameters marked optional may be left out of run_verification's params: ProSuite applies its own default. Everything else must be supplied.

ParameterTypeDescription
name *string

list_datasets

List the feature classes and tables in a geodatabase. Returns each dataset's name, geometry type, feature count and spatial reference, so conditions can be chosen from what the data actually is instead of from its name. Call describe_dataset for the field list. Reads the path on the machine running this MCP server, which is not necessarily the one the ProSuite service resolves paths on. Args: workspace_path: File geodatabase path, e.g. 'C:/data/mydb.gdb'. Returns 'status': 'ok' with 'datasets', or 'status': 'error'.

ParameterTypeDescription
workspace_path *string

describe_dataset

Describe one feature class or table in a geodatabase. Returns geometry type, feature count, extent, spatial reference and the full field list with types. Use the field names to build constraint expressions and filter_expression values that reference fields the data actually has. Reads the path on the machine running this MCP server. Args: workspace_path: File geodatabase path, e.g. 'C:/data/mydb.gdb'. name: Dataset name as returned by list_datasets. Returns 'status': 'ok' with the dataset detail, or 'status': 'error'.

ParameterTypeDescription
name *string
workspace_path *string

describe_spec

Describe the loaded QA spec file: available specifications, workspace definitions, and per-specification summary of conditions, workspace IDs, and dataset names. Call this before run_xml_verification to learn: - Which specification_name values exist in the spec (pass one to run_xml_verification) - Which workspace_id values need to be replaced with real paths - Which datasets each specification expects (useful for sanity-checking the workspace) Describes whichever spec is active: the one load_spec was last called with, otherwise PROSUITE_SPEC_PATH. Returns 'status': 'ok' or 'error'.

search_spec

Search the loaded QA spec for conditions matching a natural-language query. Returns up to max_results conditions whose name, description, or category contains the query string (case-insensitive, literal substring match, not semantic). Spec content may be in English, German, French, or Italian -- query in the same language as the spec to find matches. Each result includes: - name: the full condition name (human-readable rule statement) - category: domain grouping from the spec - allow_errors: False means a hard failure, True means tolerated - condition_request: ready to pass directly into ru…

ParameterTypeDescription
query *string
max_resultsinteger

load_spec

Load a .qa.xml spec file at runtime. Replaces any previously loaded spec, and takes precedence over PROSUITE_SPEC_PATH, so every subsequent spec tool (search_spec, describe_spec, add_condition_to_spec, run_xml_verification) uses the new file. Use this when the spec path is only known at conversation time (e.g. a file on OneDrive or a network share) instead of pre-configuring PROSUITE_SPEC_PATH. Args: path: Absolute path to the .qa.xml spec file on the local machine. Returns 'status': 'ok' with 'conditions_loaded', or 'status': 'error'.

ParameterTypeDescription
path *string

add_condition_to_spec

Preview adding a new QualityCondition to a spec, reusing an existing descriptor. Builds the condition through the same prosuite factory as run_verification, resolves a matching <TestDescriptor> (never synthesizes one), and returns the full updated spec XML with the condition appended and wired into target_specification_name. Preview only: never writes to a file. Call describe_spec first for valid specification/workspace/dataset names. Args: target_specification_name: QualitySpecification to wire the condition into. name: Human-readable condition name; must not already exist in the sp…

ParameterTypeDescription
condition_request *
datasets *array
name *string
target_specification_name *string
workspace_id *string
allow_errorsboolean
categorystring
descriptionstring
spec_xml

run_verification

Run a ProSuite quality verification. Build an ad-hoc condition-list specification and run it against the given workspace. The ProSuite service (prosuite-qa-microservice) must be reachable at the host/port configured via PROSUITE_HOST / PROSUITE_PORT environment variables (default: localhost:5151). Args: model_catalog_path: Workspace path on the server, e.g. 'C:/data/mydb.gdb' or a .sde connection file. model_name: Logical name for the data model (arbitrary, used in generated condition names). datasets: Feature classes or tables to make available for condi…

ParameterTypeDescription
conditions *array
datasets *array
model_catalog_path *string
model_name *string
envelope
output_dir

preview_condition_run

Run a single proposed condition ad-hoc and show what it actually flags. Tier-2 confirmation for spec authoring: add_condition_to_spec only confirms a condition builds and references an existing descriptor. This runs it for real against model_catalog_path and returns the same engine-confirmed summary as run_verification (engine_confirmed, total_errors, sample_features with the actual flagged issues), so a proposed condition can be judged by what it flags before it's merged into a spec. Scope envelope to a small extent to keep this a preview, not a full run. Args: model_catalog_path: Works…

ParameterTypeDescription
condition_request *
datasets *array
model_catalog_path *string
workspace_id *string
envelope
output_dir

run_xml_verification

Run a ProSuite quality verification directly from the loaded XML spec file. Unlike run_verification, this tool sends the XML spec to the ProSuite service as-is, without decomposing it into individual conditions and datasets. This preserves per-condition dataset filters, default scalar values, and all other spec details exactly as configured. Use search_spec (with empty query) to discover available specification_name values and workspace_id keys that need to be replaced. Args: specification_name: Name of the QualitySpecification element inside the XML file to run (e.g. 'Copy of…

ParameterTypeDescription
data_source_replacements *array
specification_name *string
envelope
output_dir