Smart Sequencing: Chains guide agents through logical API call sequences based on business context.

Setup

Adding a Chain to Your MCP Server

1

Navigate to MCP Server Configuration

Go to your MCP server configuration where you have already added APIs and Workflows.MCP server configuration with APIs and workflows
2

Add New Chain

Click “Add Chain” to create a new business process sequence.Add new chain to MCP server
3

Configure Chain Details

Define your chain configuration with business goals and execution logic.Configure chain details and business logic

Chain Configuration Fields

Chain vs Individual APIs

Business Process Sequences
  • Predefined logical API sequences
  • Include conditional logic and context
  • Guide agents through complex workflows
  • Share context across all API calls
  • Handle business rule validation
Best for: Complex business processes requiring multiple steps

Agent Decision Process

1

Chain Search

Agent analyzes user request:
  • Searches available chains first
  • Matches intent with chain capabilities
  • Evaluates chain context requirements
2

Execution Choice

Agent selects execution method:
  • Chain found: Execute predefined sequence
  • No chain match: Use individual APIs
  • Partial match: Execute relevant chain portions
3

Dynamic Execution

Agent follows chain guidance:
  • Uses shared context for decisions
  • Follows conditional logic paths
  • Handles errors with retry mechanisms
Result: Chains act as dynamic prompts that guide agents through complex business processes while maintaining flexibility for simple operations.