- OpenAPI actions — Upload an OpenAPI spec to let agents call the REST endpoints defined in it.
- MCP actions — Connect an external MCP server so agents can use its tools.
Actions must be explicitly enabled on each Agent that should use them. Adding an action in Admin makes it available, but you still need to assign it to the Agent in Admin → Agents (or App → Agents → Edit).
OpenAPI actions
OpenAPI actions let you give agents access to any REST API by uploading its OpenAPI specification. Hadiq.io parses the spec and exposes each endpoint as a tool the agent can call.- Adding an OpenAPI action
- Authentication options
- Example: GitHub API
1
Open the OpenAPI actions page
Go to Admin → Actions → OpenAPI. Click Add Action.
2
Paste your OpenAPI schema
In the OpenAPI Schema Definition field, paste the full JSON (or JSON with trailing commas) of your OpenAPI spec.Hadiq.io validates the schema in real time and shows a preview of the endpoints it will expose as tools. The action name and description are derived from the spec’s
info.title and info.description fields.3
Review the extracted tools
After pasting a valid schema, Hadiq.io displays the list of endpoints (tools) it detected, including the HTTP method, path, and summary for each. Confirm the list looks correct.
4
Save the action
Click Add Action. The action is saved and appears in your OpenAPI actions list.
5
Configure authentication
Most external APIs require authentication. After saving, click the action to open it and then click Edit Configs to set up authentication.See Authentication options below for the available methods.
6
Assign to an Agent
Go to Admin → Agents (or open an Agent in the app), edit the Agent, and enable the action you just created. The Agent can now call the action’s endpoints during a conversation.
MCP actions
MCP actions connect Hadiq.io agents to external MCP servers. Any MCP server your organization runs or subscribes to can be added here, giving agents access to all of that server’s tools.- Adding an MCP action
- Authentication options
1
Open the MCP actions page
Go to Admin → Actions → MCP. This is the default view when you navigate to Admin → Actions.
2
Add a new MCP server
Click Add MCP Server and fill in:
- Server Name — a label for this connection (e.g. “Jira MCP”, “Salesforce MCP”)
- Description — optional, helps distinguish servers with similar names
- MCP Server URL — the HTTP endpoint of the external MCP server (e.g.
https://your-mcp-server.com/mcp)
3
Authenticate the connection
After saving, Hadiq.io prompts you to authenticate the connection. Select an authentication method and fill in the required credentials.See Authentication options below for the available methods.Click Connect to complete the setup.
4
Verify tools are loaded
After authenticating, Hadiq.io fetches the available tools from the MCP server. The server card expands to show the list of tools it exposes. If no tools appear, check that the server URL is correct and the authentication is valid.
5
Assign to an Agent
Go to Admin → Agents (or open an Agent in the app), edit the Agent, and enable the MCP server. The Agent can now call any of the server’s tools during a conversation.
Assigning actions to agents
Adding an action in Admin makes it available to all agents, but it is not active until you assign it to a specific agent. To assign an action:- Go to Admin → Agents or open App → Agents.
- Select the agent you want to edit.
- In the agent’s configuration, find the Actions section.
- Enable the OpenAPI actions or MCP servers you want this agent to use.
- Save the agent.