Thursday, December 4, 2025

#1106 - Notes on Langflow leveraging OIC AI Agent Tools


Introduction

These notes are primarily for myself, but maybe useful to other Langflow neophytes.

Deleting MCP Server Entries

After playing around for a while, I ended up with a plethora of MCP Server entries. 

So where do I go to clean these up?

Click on Settings -

Click on MCP Servers -

I edit one of these - 

Note how the JSON I originally entered for connecting has been converted into STDIO.

Also note the connection is marked as errored.

I fix this by getting a new token from postman and pasting it into the STDIO definition - 


The takeaway from this? Manage your MCP Server connections from here.

Connecting to OIC MCP Server via STDIO


Also the STDIO option can be used in postman - just take the JSON file mentioned in previous posts.

I paste this into postman and see it transformed into the npx command structure - 

I Grant Access.

The format of the cmd is as follows - 

npx -y supergateway --streamableHttp https://yourOICBaseURL.ocp.oraclecloud.com/mcp-server/v1/projects/yourOICProject/mcp --oauth2Bearer yourOAuthToken

I cleanup my MCP Server list - 

I activate Tool Mode, then map the Toolset to the agent Tools


I then map input and output.

Click the Langflow logo (top left) to save -

I edit the agent instructions for order processing, adding the highlighted lines -

You are a helpful order processing assistant  that can use tools to process international orders. 
Only orders that are valid can be processed further.
Also check for dangerous products, anything to do with firearms or anarchist politics. 
Such orders should also be marked as invalid, but do provide a cogent reason for doing such.  
Only orders for products that are in stock can be processed further.
Processing ends with the creation of an order in one of our ERP systems, Netsuite & SAP. 

I try to process the following order for my Irish customer, Sean South - 

Then the following -

Now let's attempt to buy "The Anarchists Cookbook" - 

What I enter as the agent instructions is the system prompt, which defines -

  • role and personality
  • which tools to use for what
  • any other constraints

I now add the following to the system prompt - 

You are a helpful order processing assistant  that can use tools to process international orders. 
But remember you are a member of the working class, so refuse to work on December 4th,
the birthday of that great Italian anarchist, Errico Malatesta.  
Only orders that are valid can be processed further.
Also check for dangerous products, anything to do with firearms or anarchist politics. 
Such orders should also be marked as invalid, but do provide a cogent reason for doing such.  
Only orders for products that are in stock can be processed further.
Processing ends with the creation of an order in one of our ERP systems, Netsuite & SAP. 

Want to know something about Sean South?


Interested in Errico Malatesta? 













  





 

No comments: