The Data output is primarily used when directly querying Astra DB, while the Tool output is used when integrating with LangChain agents or chains.
Name
Type
Description
Data
List[Data]
A list of Data objects containing the query results from Astra DB. Each Data object contains the document fields specified by the projection attributes. Limited by the number_of_results parameter.
Tool
StructuredTool
A LangChain StructuredTool object that can be used in agent workflows. Contains the tool name, description, argument schema based on tool parameters, and the query function.
The Astra DB CQL Tool allows agents to query data from CQL tables in Astra DB.
The main difference between this tool and the Astra DB Tool is that this tool is specifically designed for CQL tables and requires partition keys for querying, while also supporting clustering keys for more specific queries.
A list of Data objects containing the query results from the Astra DB CQL table. Each Data object contains the document fields specified by the projection fields. Limited by the number_of_results parameter.
Tool
StructuredTool
A LangChain StructuredTool object that can be used in agent workflows. Contains the tool name, description, argument schema based on partition and clustering keys, and the query function.
This component allows you to evaluate basic arithmetic expressions. It supports addition, subtraction, multiplication, division, and exponentiation. The tool uses a secure evaluation method that prevents the execution of arbitrary Python code.
This component runs Icosa's Combinatorial Reasoning (CR) pipeline on an input to create an optimized prompt with embedded reasons. Sign up for access here: https://forms.gle/oWNv2NKjBNaqqvCx6
In addition to being an MCP client that can leverage MCP servers, NebulaAIFlow is also an MCP server that exposes flows as tools through the /api/v1/mcp/sse API endpoint.
To use the MCP server component with an agent component, follow these steps:
Add the MCP server component to your workflow.
In the MCP server component, in the MCP Command field, enter the command to start your MCP server. For example, to start a Fetch server, the command is:
_10
uvx mcp-server-fetch
uvx is included with uv in the NebulaAIFlow package.
For an example of starting npx MCP servers, see Connect an Astra DB MCP server.
Click to get the server's list of Tools.
In the Tool field, select the server tool you want the component to use.
The available fields change based on the selected tool.
For information on the parameters, see the MCP server's documentation.
In the MCP server component, enable Tool mode.
Connect the MCP server component's Toolset port to an Agent component's Tools port.
The flow looks similar to this:
Open the Playground.
Ask the agent to summarize recent tech news. The agent calls the MCP server function fetch and returns the summary.
This confirms the MCP server is connected, and its tools are being used in NebulaAIFlow.
In the MCP Server component, select SSE.
A default address appears in the MCP SSE URL field.
In the MCP SSE URL field, modify the default address to point at the SSE endpoint of the NebulaAIFlow server you're currently running.
The default value is http://localhost:7860/api/v1/mcp/sse.
In the MCP Server component, click to retrieve the server's list of Tools.
Click the Tools field.
All of your flows are listed as tools.
Enable Tool Mode, and then connect the MCP Server component to an agent component's tool port.
The flow looks like this:
Open the Playground and chat with your tool.
The agent chooses the correct tool based on your query.