Skip to content

solidworks_mcp.agents.schemas

solidworks_mcp.agents.schemas

Typed output schemas for agent prompt validation.

Classes

Assumption

Bases: BaseModel

A single explicit assumption in an agent response.

Attributes:

Name Type Description
statement str

The statement value.

DocsPlan

Bases: BaseModel

Validation shape for docs-engineering responses.

Attributes:

Name Type Description
audience str

The audience value.

decisions list[ToolRoutingDecision]

The decisions value.

demo_steps list[str]

The demo steps value.

objective str

The objective value.

sections list[str]

The sections value.

FeatureStep

Bases: BaseModel

One step in a part reconstruction plan.

Attributes:

Name Type Description
description str

The description value.

mcp_call str

The mcp call value.

step_number int

The step number value.

tool_name str

The tool name value.

ManufacturabilityReview

Bases: BaseModel

Validation shape for printability-focused agent responses.

Attributes:

Name Type Description
assumptions list[Assumption]

The assumptions value.

build_volume_check str

The build volume check value.

orientation_guidance str

The orientation guidance value.

recommendations list[Recommendation]

The recommendations value.

summary str

The summary value.

tolerance_clearance_notes list[str]

The tolerance clearance notes value.

Recommendation

Bases: BaseModel

A prioritized recommendation with rationale and risk.

Attributes:

Name Type Description
rationale str

The rationale value.

risk Literal['low', 'medium', 'high']

The risk value.

title str

The title value.

ReconstructionPlan

Bases: BaseModel

Structured plan for recreating a SolidWorks part from scratch using MCP tools.

Attributes:

Name Type Description
analysis_summary str

The analysis summary value.

assembly_mates list[str]

The assembly mates value.

complexity_tier Literal[1, 2, 3, 4]

The complexity tier value.

feature_sequence list[FeatureStep]

The feature sequence value.

part_name str

The part name value.

validation_strategy str

The validation strategy value.

vba_required bool

The vba required value.

RecoverableFailure

Bases: BaseModel

Typed failure output used when agent needs user-guided retry.

Attributes:

Name Type Description
explanation str

The explanation value.

remediation_steps list[str]

The remediation steps value.

retry_focus str | None

The retry focus value.

should_retry bool

The should retry value.

ToolRoutingDecision

Bases: BaseModel

Validation shape for tool-selection/skills documentation prompts.

Attributes:

Name Type Description
fallback_strategy list[str]

The fallback strategy value.

intent str

The intent value.

selected_tool_group str

The selected tool group value.

why str

The why value.