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:
| Type | Tool | Purpose |
|---|---|---|
| Formula | create_formula_logic_block | Calculations and value derivations |
| Decision Table | create_decision_table_logic_block | Grid-based rule evaluation |
| Decision Tree | create_decision_tree_logic_block | Hierarchical branching conditions |
| Validation | create_validation_logic_block | Single business rule enforcement |
| Validation Set | create_validation_set_logic_block | Grouped validation rules |
list_all_logic_blocks
Lists all Flowon logic blocks.
| Parameter | Type | Required | Description |
|---|---|---|---|
pageNumber | int | The page number for pagination. If not provided, defaults to the first page. | |
pagingCookie | string | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectName | string | ✓ | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | GUID | ✓ | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
logicBlockName | string | ✓ | The name of the logic block. |
projectName | string | ✓ | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
logicBlockId | GUID | ✓ | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
logicBlockName | string | ✓ | The name of the logic block to create. |
projectName | string | ✓ | The name of the project to create the logic block in. |
metadata | string | ✓ | The metadata for the logic block in JSON format. |
isAction | bool | Indicates whether the logic block is an action. Defaults to false. | |
title | string | The title for the logic block. Optional. | |
description | string | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
logicBlockName | string | ✓ | The name of the logic block. |
projectName | string | ✓ | The name of the project for the block flow. |
metadata | string | ✓ | The metadata for the logic block in JSON format. |
isAction | bool | Indicates whether the logic block is an action. Defaults to false. | |
title | string | The title for the logic block. Optional. | |
description | string | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
logicBlockName | string | ✓ | The name of the logic block to create. |
projectName | string | ✓ | The name of the project to create the logic block in. |
metadata | string | ✓ | The metadata for the logic block in JSON format. |
isAction | bool | Indicates whether the logic block is an action. Defaults to false. | |
title | string | The title for the logic block. Optional. | |
description | string | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
logicBlockName | string | ✓ | The name of the logic block. |
projectName | string | ✓ | The name of the project for the block flow. |
metadata | string | ✓ | The metadata for the logic block in JSON format. |
isAction | bool | Indicates whether the logic block is an action. Defaults to false. | |
title | string | The title for the logic block. Optional. | |
description | string | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
logicBlockName | string | ✓ | The name of the logic block to create. |
projectName | string | ✓ | The name of the project to create the logic block in. |
metadata | string | ✓ | The metadata for the logic block in JSON format. |
isAction | bool | Indicates whether the logic block is an action. Defaults to false. | |
title | string | The title for the logic block. Optional. | |
description | string | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
logicBlockName | string | ✓ | The name of the logic block. |
projectName | string | ✓ | The name of the project for the block flow. |
metadata | string | ✓ | The metadata for the logic block in JSON format. |
isAction | bool | Indicates whether the logic block is an action. Defaults to false. | |
title | string | The title for the logic block. Optional. | |
description | string | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
logicBlockName | string | ✓ | The name of the logic block to create. |
projectName | string | ✓ | The name of the project to create the logic block in. |
metadata | string | ✓ | The metadata for the logic block in JSON format. |
isAction | bool | Indicates whether the logic block is an action. Defaults to false. | |
title | string | The title for the logic block. Optional. | |
description | string | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
logicBlockName | string | ✓ | The name of the logic block. |
projectName | string | ✓ | The name of the project for the block flow. |
metadata | string | ✓ | The metadata for the logic block in JSON format. |
isAction | bool | Indicates whether the logic block is an action. Defaults to false. | |
title | string | The title for the logic block. Optional. | |
description | string | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
logicBlockName | string | ✓ | The name of the logic block to create. |
projectName | string | ✓ | The name of the project to create the logic block in. |
metadata | string | ✓ | The metadata for the logic block in JSON format. |
isAction | bool | Indicates whether the logic block is an action. Defaults to false. | |
title | string | The title for the logic block. Optional. | |
description | string | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
logicBlockName | string | ✓ | The name of the logic block. |
projectName | string | ✓ | The name of the project for the block flow. |
metadata | string | ✓ | The metadata for the logic block in JSON format. |
isAction | bool | Indicates whether the logic block is an action. Defaults to false. | |
title | string | The title for the logic block. Optional. | |
description | string | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
logicBlockId | GUID | ✓ | The ID of the logic block to update. |
metadata | string | ✓ | The 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
logicBlockId | GUID | ✓ | The ID of the logic block. |
Returns: A comprehensive dependency report:
| Dependency Type | Description |
|---|---|
| Logic Block Dependencies | Other Logic Blocks this block references |
| Logic Flow Dependencies | Logic Flows that use this block |
| Logic Recipe Dependencies | Logic Recipes that invoke this block |
| Business Process Version Dependencies | Process Orchestrator versions that reference this block |
| Configuration Dependencies | Configuration records this block reads |
| Localized Resource Dependencies | Localized 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.