MCPcopy Create free account
hub / github.com/1Panel-dev/MaxKB / list_tools

Method list_tools

apps/chat/mcp/tools.py:33–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

31 }
32
33 def list_tools(self):
34 return {
35 "tools": [
36 {
37 "name": f'agent_{str(self.application.id)[:8]}',
38 "description": f'{self.application.name} {self.application.desc}',
39 "inputSchema": {
40 "type": "object",
41 "properties": {
42 "message": {"type": "string", "description": "The message to send to the AI."},
43 },
44 "required": ["message"]
45 }
46 }
47 ]
48 }
49
50 def _get_chat_id(self):
51 from application.models import ChatUserType

Callers 1

mcp_viewFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected