fenic.core.mcp
MCP Tool Generation/FastMCP Server Management.
Classes:
-
BoundToolParam
–A bound tool parameter.
-
ParameterizedToolDefinition
–A tool that has been bound to a specific Parameterized View.
-
ToolParam
–A parameter for a parameterized view tool.
BoundToolParam
A bound tool parameter.
A bound tool parameter is a parameter that has been bound to a specific, typed,
tool_param
usage within a Dataframe.
ParameterizedToolDefinition
A tool that has been bound to a specific Parameterized View.
ToolParam
Bases: BaseModel
A parameter for a parameterized view tool.
A parameter is a named value that can be passed to a tool. These are matched to the
parameter names of the tool_param
UnresolvedLiteralExpr expressions captured in the Logical Plan.
Attributes:
-
name
(str
) –The name of the parameter.
-
description
(str
) –The description of the parameter.
-
allowed_values
(Optional[List[ToolParameterType]]
) –The allowed values for the parameter.
-
has_default
(bool
) –Whether the parameter has a default value.
-
default_value
(Optional[ToolParameterType]
) –The default value for the parameter.
required
property
required: bool
Whether the parameter is required.
Returns:
-
bool
–True if the parameter is required, False otherwise.