DomainToolSpec#

class ansys.cfx.mcp.common.domain_tools.DomainToolSpec#

Metadata describing a domain tool to a MCP leaf.

The parameters field is optional: when omitted the framework derives the JSON schema from the handler’s typed signature (see schema_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.cfx.mcp.common.domain_tools import DomainToolSpec

Attribute detail#

DomainToolSpec.name: str#
DomainToolSpec.description: str#
DomainToolSpec.parameters: dict[str, Any] | None = None#