DomainToolSpec#
- class ansys.fluent.mcp.common.domain_tools.DomainToolSpec#
Metadata describing a domain tool to a MCP leaf.
The
parametersfield is optional. When omitted, the framework derives the JSON schema from the handler’s typed signature. (Seeschema_from_signature()). Setting an explicit JSON schema is only useful when the handler accepts a union/variant payload that can’t be expressed cleanly with Python type hints.Note (architecture boundary): This package never builds an agent-side spec object. That would require importing the optional higher-level agent layer, which is forbidden. (Dependency direction is agent → this package, never the reverse). The agent layer, when installed, constructs its own spec from this descriptor plus
schema_from_signature().
Overview#
Import detail#
from ansys.fluent.mcp.common.domain_tools import DomainToolSpec