tooluniverse.remote_tool module

Remote Tool Implementation

This module provides a RemoteTool class that represents external MCP/SMCP tools that are available for listing but cannot be executed locally. These tools are stored as configuration records only.

class tooluniverse.remote_tool.RemoteTool[source]

Bases: BaseTool

A placeholder tool class for external MCP/SMCP tools.

RemoteTool represents tools that are hosted on external MCP/SMCP servers and are only available for discovery and listing purposes. These tools cannot be executed locally through ToolUniverse but their configurations are preserved for reference.

tool_config

The tool configuration dictionary

Type:

dict

remote_info

Information about the remote server and tool

Type:

dict

__init__(tool_config=None)[source]

Initialize the RemoteTool.

Parameters:

tool_config (dict, optional) – Tool configuration dictionary

run(arguments=None)[source]

Placeholder run method for remote tools.

Remote tools cannot be executed locally. This method always returns an error message indicating that the tool is not available for local execution.

Parameters:

arguments (dict, optional) – Tool arguments (ignored)

Returns:

Error message indicating the tool is not available locally

Return type:

dict

get_remote_info()[source]

Get information about the remote server hosting this tool.

Returns:

Remote server information including server type, URL, and original tool type

Return type:

dict

is_available_locally()[source]

Check if this tool is available for local execution.

Returns:

Always False for RemoteTool instances

Return type:

bool

get_server_info()[source]

Get server connection information for this remote tool.

Returns:

Server connection details

Return type:

dict