MCPcopy Create free account
hub / github.com/InternScience/InternAgent / get_registered_tools

Method get_registered_tools

mcp_demo.py:126–130  ·  view source on GitHub ↗

Get all tool definitions in OpenAI format (with permission filtering applied)

(self)

Source from the content-addressed store, hash-verified

124 raise
125
126 async def get_registered_tools(self) -> list:
127 """Get all tool definitions in OpenAI format (with permission filtering applied)"""
128 return await self.tool_registry.get_all_definitions(
129 allowed_tools=self.allowed_tools
130 )
131
132 async def execute(self, context: Dict[str, Any], params: Dict[str, Any]) -> Dict[str, Any]:
133 """Execute agent task"""

Callers 2

executeMethod · 0.95
mainFunction · 0.95

Calls 1

get_all_definitionsMethod · 0.80

Tested by

no test coverage detected