Skip to main content

Logic Block Tools

Overview

Logic Blocks are the atomic units of business logic in Flowon. The MCP Server supports the full lifecycle of Logic Blocks: listing, reading, creating, updating, and inspecting their dependencies.

The MCP Server supports all five Logic Block types:

TypeToolPurpose
Formulacreate_formula_logic_blockCalculations and value derivations
Decision Tablecreate_decision_table_logic_blockGrid-based rule evaluation
Decision Treecreate_decision_tree_logic_blockHierarchical branching conditions
Validationcreate_validation_logic_blockSingle business rule enforcement
Validation Setcreate_validation_set_logic_blockGrouped validation rules

list_all_logic_blocks

Lists all Flowon logic blocks.

ParameterTypeRequiredDescription
pageNumberintThe page number for pagination. If not provided, defaults to the first page.
pagingCookiestringThe paging cookie for pagination. This should be provided if pageNumber is provided and there are more records to retrieve.

Returns: A paginated list of Logic Blocks including name, title, description, and project.

See Pagination for details on iterating through large result sets.


list_logic_blocks_by_project_name

Lists Flowon logic blocks by project name.

ParameterTypeRequiredDescription
projectNamestringThe name of the project to filter logic blocks by.

Returns: A list of Logic Blocks within the specified project.


list_logic_blocks_by_project_id

Lists Flowon logic blocks by project ID.

ParameterTypeRequiredDescription
projectIdGUIDThe ID of the project to filter logic blocks by.

Returns: A list of Logic Blocks within the specified project.


get_logic_block_details_by_name

Gets the details for a Flowon logic block by logic block name.

ParameterTypeRequiredDescription
logicBlockNamestringThe name of the logic block.
projectNamestringThe name of the project the logic block belongs to.

Returns: Full Logic Block details including type, metadata (the FoL definition), and all configuration.

Use when: You need to read the current definition of a Logic Block before deciding whether to update it.


get_logic_block_details_by_id

Gets the details for a Flowon logic block by logic block id.

ParameterTypeRequiredDescription
logicBlockIdGUIDThe ID of the logic block.

Returns: Full Logic Block details including type, metadata (the FoL definition), and all configuration.


create_formula_logic_block

Creates a new Flowon formula logic block and returns the logic block id.

ParameterTypeRequiredDescription
logicBlockNamestringThe name of the logic block to create.
projectNamestringThe name of the project to create the logic block in.
metadatastringThe metadata for the logic block in JSON format.
isActionboolIndicates whether the logic block is an action. Defaults to false.
titlestringThe title for the logic block. Optional.
descriptionstringThe description for the logic block. Optional.

Returns: The GUID of the newly created Logic Block and its URL.

Restriction: Cannot be called on projects associated with a managed solution. See Managed Solution Protection.


get_formula_logic_block_preview_url

Get Preview Url for Flowon Formula Logic Block.

ParameterTypeRequiredDescription
logicBlockNamestringThe name of the logic block.
projectNamestringThe name of the project for the block flow.
metadatastringThe metadata for the logic block in JSON format.
isActionboolIndicates whether the logic block is an action. Defaults to false.
titlestringThe title for the logic block. Optional.
descriptionstringThe description for the logic block. Optional.

Returns: A preview URL for the formula logic block.


create_decision_table_logic_block

Creates a new Flowon decision table logic block and returns the logic block id.

ParameterTypeRequiredDescription
logicBlockNamestringThe name of the logic block to create.
projectNamestringThe name of the project to create the logic block in.
metadatastringThe metadata for the logic block in JSON format.
isActionboolIndicates whether the logic block is an action. Defaults to false.
titlestringThe title for the logic block. Optional.
descriptionstringThe description for the logic block. Optional.

Returns: The GUID of the newly created Logic Block and its URL.

Restriction: Cannot be called on projects associated with a managed solution.


get_decision_table_logic_block_preview_url

Get preview url for Flowon decision table logic block.

ParameterTypeRequiredDescription
logicBlockNamestringThe name of the logic block.
projectNamestringThe name of the project for the block flow.
metadatastringThe metadata for the logic block in JSON format.
isActionboolIndicates whether the logic block is an action. Defaults to false.
titlestringThe title for the logic block. Optional.
descriptionstringThe description for the logic block. Optional.

Returns: A preview URL for the decision table logic block.


create_decision_tree_logic_block

Creates a new Flowon decision tree logic block and returns the logic block id.

ParameterTypeRequiredDescription
logicBlockNamestringThe name of the logic block to create.
projectNamestringThe name of the project to create the logic block in.
metadatastringThe metadata for the logic block in JSON format.
isActionboolIndicates whether the logic block is an action. Defaults to false.
titlestringThe title for the logic block. Optional.
descriptionstringThe description for the logic block. Optional.

Returns: The GUID of the newly created Logic Block and its URL.

Restriction: Cannot be called on projects associated with a managed solution.


get_decision_tree_logic_block_preview_url

Get preview url for Flowon decision tree logic block.

ParameterTypeRequiredDescription
logicBlockNamestringThe name of the logic block.
projectNamestringThe name of the project for the block flow.
metadatastringThe metadata for the logic block in JSON format.
isActionboolIndicates whether the logic block is an action. Defaults to false.
titlestringThe title for the logic block. Optional.
descriptionstringThe description for the logic block. Optional.

Returns: A preview URL for the decision tree logic block.


create_validation_logic_block

Creates a new Flowon validation logic block and returns the logic block id.

ParameterTypeRequiredDescription
logicBlockNamestringThe name of the logic block to create.
projectNamestringThe name of the project to create the logic block in.
metadatastringThe metadata for the logic block in JSON format.
isActionboolIndicates whether the logic block is an action. Defaults to false.
titlestringThe title for the logic block. Optional.
descriptionstringThe description for the logic block. Optional.

Returns: The GUID of the newly created Logic Block and its URL.

Restriction: Cannot be called on projects associated with a managed solution.


get_validation_logic_block_preview_url

Get preview url for Flowon validation logic block.

ParameterTypeRequiredDescription
logicBlockNamestringThe name of the logic block.
projectNamestringThe name of the project for the block flow.
metadatastringThe metadata for the logic block in JSON format.
isActionboolIndicates whether the logic block is an action. Defaults to false.
titlestringThe title for the logic block. Optional.
descriptionstringThe description for the logic block. Optional.

Returns: A preview URL for the validation logic block.


create_validation_set_logic_block

Creates a new Flowon validation set logic block and returns the logic block id.

ParameterTypeRequiredDescription
logicBlockNamestringThe name of the logic block to create.
projectNamestringThe name of the project to create the logic block in.
metadatastringThe metadata for the logic block in JSON format.
isActionboolIndicates whether the logic block is an action. Defaults to false.
titlestringThe title for the logic block. Optional.
descriptionstringThe description for the logic block. Optional.

Returns: The GUID of the newly created Logic Block and its URL.

Restriction: Cannot be called on projects associated with a managed solution.


get_validation_set_logic_block_preview_url

Get preview url for Flowon validation set logic block.

ParameterTypeRequiredDescription
logicBlockNamestringThe name of the logic block.
projectNamestringThe name of the project for the block flow.
metadatastringThe metadata for the logic block in JSON format.
isActionboolIndicates whether the logic block is an action. Defaults to false.
titlestringThe title for the logic block. Optional.
descriptionstringThe description for the logic block. Optional.

Returns: A preview URL for the validation set logic block.


update_logic_block_metadata

Updates an existing Flowon logic block.

ParameterTypeRequiredDescription
logicBlockIdGUIDThe ID of the logic block to update.
metadatastringThe updated metadata for the logic block in JSON format.

Returns: Confirmation that the update succeeded.

Restriction: Cannot be called on Logic Blocks in projects associated with a managed solution. See Managed Solution Protection.

Best practice: Always call get_logic_block_details_by_name or get_logic_block_details_by_id first to read the current metadata before updating, to avoid unintentionally overwriting parts of the definition you did not intend to change.


list_logic_block_dependencies

Lists the dependencies between for a specific Flowon logic block.

ParameterTypeRequiredDescription
logicBlockIdGUIDThe ID of the logic block.

Returns: A comprehensive dependency report:

Dependency TypeDescription
Logic Block DependenciesOther Logic Blocks this block references
Logic Flow DependenciesLogic Flows that use this block
Logic Recipe DependenciesLogic Recipes that invoke this block
Business Process Version DependenciesProcess Orchestrator versions that reference this block
Configuration DependenciesConfiguration records this block reads
Localized Resource DependenciesLocalized strings this block uses

Use when: Before modifying a Logic Block, call this tool to understand the full impact of the change across all dependent artifacts and projects.