Get Tools From Agent icon

Get Tools From Agent

Get the tools that can be used by the agents.

Overview

This node, named "Get Tools From Agent," is designed to retrieve the list of tools available for a specific agent. It sends a POST request to an external API endpoint with the agent's identifier and authentication credentials. This functionality is useful when you want to dynamically fetch and use the capabilities or tools assigned to an agent within your workflow.

Practical examples:

  • Automatically fetching the set of tools an AI agent can use before executing tasks.
  • Integrating with an external system to update or verify the tools available to an agent in real-time.
  • Building workflows that adapt based on the tools accessible to different agents.

Properties

Name Meaning
Agent ID The unique identifier of the agent whose tools you want to retrieve. This is a required string input.

Output

The node outputs JSON data containing the response from the external API call. This JSON will include details about the tools that the specified agent can use. The exact structure depends on the API response but typically includes tool names, descriptions, and possibly other metadata related to each tool.

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential and a user identifier credential to authenticate with the external service.
  • Makes a POST HTTP request to https://api.mona-ai.cloud/database/getToolsFromAgent.
  • The node expects these credentials and the agent ID to be provided for successful execution.

Troubleshooting

  • Missing or invalid Agent ID: The node requires a valid agent ID; ensure it is correctly entered.
  • Authentication errors: If the API key or user ID credentials are missing or incorrect, the request will fail. Verify that the credentials are properly configured.
  • Network issues: Connectivity problems may prevent reaching the external API endpoint.
  • API errors: The external service might return errors if the agent ID does not exist or if there are server-side issues. Check the error message returned for more details.

Links and References

  • Mona AI API Documentation (Assumed, as the API URL is from mona-ai.cloud)
  • n8n HTTP Request Node documentation for understanding how POST requests work within n8n workflows.

Discussion