Class SchemaCatalog
java.lang.Object
neqsim.mcp.catalog.SchemaCatalog
Catalog of JSON schemas for MCP tool input and output declarations.
Provides JSON Schema strings describing the input/output format of each MCP tool. These schemas
are designed to be served as MCP Resources via URIs like neqsim://schema/run_flash/input,
enabling language models to understand the expected data format without trial and error.
Schemas follow JSON Schema Draft 2020-12 format and can also be used as
inputSchema/outputSchema declarations in MCP tool definitions.
- Version:
- 1.0
- Author:
- Even Solbraa
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePrivate constructor — all methods are static. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the JSON Schema for batch calculation input.static StringReturns the JSON Schema for batch calculation output.static StringReturns the JSON Schema for bioprocess simulation input.static StringReturns the JSON Schema for capabilities output.static StringReturns the JSON Schema for process comparison input.static StringReturns the JSON Schema for component search output.static StringReturns the JSON Schema for dynamic simulation input.Creates an enum string property schema.static StringReturns the JSON Schema for equipment sizing input.static StringReturns the JSON Schema for equipment sizing output.static StringReturns the JSON Schema for field economics input.static StringReturns the JSON Schema for flash calculation input.static StringReturns the JSON Schema for flash calculation output.static StringReturns the JSON Schema for flow assurance analysis input.static StringReturns a full catalog listing of all available schemas as JSON.static StringReturns a schema by tool name and schema type (input/output).Returns the list of tools with available schemas.Creates a simple integer property schema.numberProp(String description) Creates a simple number property schema.static StringReturns the JSON Schema for phase envelope input.static StringReturns the JSON Schema for phase envelope output.static StringReturns the JSON Schema for pipeline simulation input.static StringReturns the JSON Schema for process simulation input.static StringReturns the JSON Schema for process simulation output.static StringReturns the JSON Schema for property table input.static StringReturns the JSON Schema for property table output.static StringReturns the JSON Schema for PVT experiment input.static StringReturns the JSON Schema for PVT experiment output.static StringReturns the JSON Schema for reservoir simulation input.static StringReturns the JSON Schema for session management input.static StringReturns the JSON Schema for standards calculation input.stringProp(String description) Creates a simple string property schema.static StringReturns the JSON Schema for validation input (same as flash or process inputs).static StringReturns the JSON Schema for validation output.valueWithUnitSchema(String description, String unitDescription, List<String> allowedUnits, String defaultUnit) Creates a ValueWithUnit JSON Schema fragment (oneOf: number or object).static StringReturns the JSON Schema for visualization input.
-
Field Details
-
GSON
private static final com.google.gson.Gson GSON
-
-
Constructor Details
-
SchemaCatalog
private SchemaCatalog()Private constructor — all methods are static.
-
-
Method Details
-
flashInputSchema
Returns the JSON Schema for flash calculation input.- Returns:
- JSON Schema string
-
flashOutputSchema
Returns the JSON Schema for flash calculation output.- Returns:
- JSON Schema string
-
processInputSchema
Returns the JSON Schema for process simulation input.- Returns:
- JSON Schema string
-
processOutputSchema
Returns the JSON Schema for process simulation output.- Returns:
- JSON Schema string
-
validateInputSchema
Returns the JSON Schema for validation input (same as flash or process inputs).- Returns:
- JSON Schema string
-
validateOutputSchema
Returns the JSON Schema for validation output.- Returns:
- JSON Schema string
-
componentSearchOutputSchema
Returns the JSON Schema for component search output.- Returns:
- JSON Schema string
-
batchInputSchema
Returns the JSON Schema for batch calculation input.- Returns:
- JSON Schema string
-
batchOutputSchema
Returns the JSON Schema for batch calculation output.- Returns:
- JSON Schema string
-
propertyTableInputSchema
Returns the JSON Schema for property table input.- Returns:
- JSON Schema string
-
propertyTableOutputSchema
Returns the JSON Schema for property table output.- Returns:
- JSON Schema string
-
phaseEnvelopeInputSchema
Returns the JSON Schema for phase envelope input.- Returns:
- JSON Schema string
-
phaseEnvelopeOutputSchema
Returns the JSON Schema for phase envelope output.- Returns:
- JSON Schema string
-
capabilitiesOutputSchema
Returns the JSON Schema for capabilities output.- Returns:
- JSON Schema string
-
pvtInputSchema
Returns the JSON Schema for PVT experiment input.- Returns:
- JSON Schema string
-
pvtOutputSchema
Returns the JSON Schema for PVT experiment output.- Returns:
- JSON Schema string
-
flowAssuranceInputSchema
Returns the JSON Schema for flow assurance analysis input.- Returns:
- JSON Schema string
-
standardsInputSchema
Returns the JSON Schema for standards calculation input.- Returns:
- JSON Schema string
-
pipelineInputSchema
Returns the JSON Schema for pipeline simulation input.- Returns:
- JSON Schema string
-
reservoirInputSchema
Returns the JSON Schema for reservoir simulation input.- Returns:
- JSON Schema string
-
fieldEconomicsInputSchema
Returns the JSON Schema for field economics input.- Returns:
- JSON Schema string
-
dynamicInputSchema
Returns the JSON Schema for dynamic simulation input.- Returns:
- JSON Schema string
-
bioprocessInputSchema
Returns the JSON Schema for bioprocess simulation input.- Returns:
- JSON Schema string
-
equipmentSizingInputSchema
Returns the JSON Schema for equipment sizing input.- Returns:
- JSON Schema string
-
equipmentSizingOutputSchema
Returns the JSON Schema for equipment sizing output.- Returns:
- JSON Schema string
-
comparisonInputSchema
Returns the JSON Schema for process comparison input.- Returns:
- JSON Schema string
-
sessionInputSchema
Returns the JSON Schema for session management input.- Returns:
- JSON Schema string
-
visualizationInputSchema
Returns the JSON Schema for visualization input.- Returns:
- JSON Schema string
-
getToolNames
-
getSchema
-
getCatalogJson
Returns a full catalog listing of all available schemas as JSON.- Returns:
- JSON string listing all schemas
-
valueWithUnitSchema
private static Map<String,Object> valueWithUnitSchema(String description, String unitDescription, List<String> allowedUnits, String defaultUnit) Creates a ValueWithUnit JSON Schema fragment (oneOf: number or object).- Parameters:
description- the field descriptionunitDescription- the unit field descriptionallowedUnits- the allowed unit valuesdefaultUnit- the default unit- Returns:
- the schema map
-
stringProp
-
intProp
-
numberProp
-
enumProp
-