ASAM ODS odsbox jaquel MCP Server

v1.8.3
io.github.totonga/odsbox-jaquel-mcp Checked 12 hours ago Published 2 months ago

MCP server for ASAM ODS with Jaquel query tools, connection management, and data access

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

query_validate

Validate a Jaquel query structure for syntax errors and best practices.

ParameterTypeDescription
query *objectJaquel query dict to validate. Top-level key is the entity name (e.g. 'AoTest'), value is a filter/attribute object. Example: {"AoTest": {"name": {"$like": "*"}}, "$attributes": {"id": 1, "name": 1},…

query_get_operator_docs

Get documentation and examples for a Jaquel operator.

ParameterTypeDescription
operator *stringJaquel operator name, e.g. '$like', '$gt', '$in', '$between'

query_get_pattern

Get a template for a common Jaquel query pattern.

ParameterTypeDescription
pattern *stringPattern name: get_all_instances, get_by_id, get_by_name, case_insensitive_search, time_range, inner_join, outer_join, aggregates

query_list_patterns

List all available Jaquel query patterns and templates.

query_generate_skeleton

Generate a query skeleton for a specific entity and operation.

ParameterTypeDescription
entity_name *stringODS entity name (e.g. 'AoTest', 'AoMeasurement', 'AoSubMatrix')
operationstringType of query: get_all, get_by_id, get_by_name, search_and_select

query_describe

Describe what a Jaquel query does.

ParameterTypeDescription
query *objectJaquel query dict to describe. Top-level key is entity name, value is filter/attribute object. Example: {"AoTest": {"name": {"$like": "*"}}, "$attributes": {"id": 1, "name": 1}}

schema_get_entity

Get available fields for an entity from ODS model.

ParameterTypeDescription
entity_name *stringEntity name (e.g., 'StructureLevel')

schema_field_exists

Check if a field exists in entity schema.

ParameterTypeDescription
entity_name *stringODS entity name (e.g. 'AoTest', 'AoMeasurement')
field_name *stringField/attribute name to check (e.g. 'name', 'id', 'version')

schema_list_entities

Return a list of existing entities from the ODS server ModelCache.

schema_test_to_measurement_hierarchy

Get hierarchical entity chain from AoTest to AoMeasurement via 'children' relation.

ods_connect

Establish connection to ASAM ODS server for live model inspection.

ParameterTypeDescription
password *string
url *stringODS API URL (e.g., http://localhost:8087/api)
username *stringODS username for authentication
verifybooleanVerify SSL certificates (default: true)

ods_connect_using_env

Establish connection to ASAM ODS server using environment variables. Default prefix is ODSBOX_MCP; set ODSBOX_MCP_ENV_PREFIX or pass env_prefix. Falls back to legacy ODS_ prefix variables. Supports three authentication modes via {prefix}_MODE or ODSBOX_MCP_{prefix}_MODE: - basic (default): Username/password. Vars: URL, USERNAME, PASSWORD, VERIFY. - m2m: OAuth2 client credentials. Vars: URL, M2M_TOKEN_ENDPOINT, M2M_CLIENT_ID, M2M_CLIENT_SECRET, M2M_SCOPE (optional, comma-separated), VERIFY. - oidc: OpenID Connect browser login. Vars: URL, OIDC_CLIENT_ID, OIDC_REDIRECT_URI, OIDC_CLIENT_SEC…

ParameterTypeDescription
env_prefixOptional: override the environment variable prefix (default: ODSBOX_MCP)

ods_disconnect

Close connection to ODS server.

ods_get_connection_info

Get current ODS connection information.

ods_connect_env_list

List all ODS servers configured via environment variables. Returns each server's prefix and URL so you can identify the right server and connect with ``ods_connect_using_env(env_prefix='PREFIX')``.

query_execute

Execute a Jaquel query directly on connected ODS server.

ParameterTypeDescription
query *objectJaquel query dict to execute. Top-level key is entity name, value is filter/attribute object. Example: {"AoTest": {"name": {"$like": "*"}}, "$attributes": {"id": 1, "name": 1}, "$options": {"$rowlimit…
max_cellsintegerAdaptive cell budget: effective_rows = min(max_rows, max_cells // col_count). Default 10 000 ≈ 6 000 LLM tokens for double data. Increase only if you need more data and understand the context cost.
max_rowsintegerMaximum number of rows to return (default: 100). Also capped adaptively by max_cells to protect LLM context size. Use a small value like 10-20 for wide results (many columns).
result_formatstringResult serialisation format: "split" (default) encodes column names once — {"columns": [...], "index": [...], "data": [...]}; "records" repeats all keys per row — [{"col": val, ...}, ...]. "split"…

data_get_quantities

Get available measurement quantities for a submatrix.

ParameterTypeDescription
submatrix_id *integerID of the submatrix

data_read_submatrix

Read timeseries data from a submatrix using bulk data access.

ParameterTypeDescription
submatrix_id *integerID of the submatrix to read
case_insensitivebooleanWhether pattern matching should be case insensitive
date_as_timestampbooleanConvert date columns to pandas timestamps
max_preview_sizeintegerMaximum number of rows in data preview (default: 100)
measurement_quantity_patternsList of measurement quantity name patterns to include
preview_sampling_methodstringMethod for resampling preview data: auto, uniform, time_aware, random, stratified, minmax
set_independent_as_indexbooleanSet the independent column as DataFrame index

data_generate_fetcher_script

Generate Python scripts for fetching submatrix data with error handling and data processing.

ParameterTypeDescription
script_type *stringType of script: basic, advanced, batch, analysis
submatrix_id *integerID of the submatrix to fetch data from
include_analysisbooleanInclude basic data analysis examples
include_visualizationbooleanInclude matplotlib visualization code
measurement_quantity_patternsList of measurement quantity patterns to include
output_formatstringDesired output format for the data

plot_comparison_notebook

Generate a Jupyter notebook for comparing measurements. Uses the active ODS connection (established via ods_connect or ods_connect_using_env). The generated notebook reads the password from the ODS_PASSWORD environment variable at runtime so no credentials are embedded in the notebook file.

ParameterTypeDescription
measurement_quantity_names *arrayNames of quantities to plot
measurement_query_conditions *objectFilter conditions for measurements (MeaResult attributes). Example: {"Name": {"$like": "Profile_*"}} or {"TestStep.Test.Name": {"$eq": "MyTest"}}
available_quantitiesList of all available quantities (for documentation)
output_pathOptional path to save notebook (.ipynb file)
plot_typestringType of plot ("scatter", "line", or "subplots")
titlestringNotebook title

plot_generate_code

Generate Python plotting code for measurement comparison.

ParameterTypeDescription
measurement_quantity_names *arrayList of quantity names to plot
plot_type *stringType of plot ("scatter", "line", or "subplots")
submatrices_count *integerNumber of submatrices to plot

help_bulk_api

Get help and guidance on using the Bulk API for loading timeseries data. Use this to understand the 3-step workflow and common patterns.

ParameterTypeDescription
topic *stringHelp topic
toolOptional: Get contextual help for a specific tool (e.g., data_read_submatrix, ods_connect)