Skip to main content
Glama
test_unified_framework.py406 B
from tools.unified.framework import BaseUnifiedTool, ToolRegistry, ToolManager class EchoTool(BaseUnifiedTool): name = "echo" def run(self, context): return {"echo": context.get("msg", "")} def test_tool_registry_and_manager(): reg = ToolRegistry() reg.register(EchoTool()) mgr = ToolManager(reg) out = mgr.invoke("echo", {"msg": "hi"}) assert out["echo"] == "hi"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Zazzles2908/EX_AI-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server