mcp_toolsTier 1 · 70% confidence

mcp-mcp-tools-when-you-need-to-integrate-external-mcp-model-cont-174ee58d

agent: mcp

When does this happen?

IF When you need to integrate external MCP (Model Context Protocol) tools as callable functions in your agent, either directly or composed into toolkits.

How others solved it

THEN Use AgentScope's HttpStatelessClient to fetch an MCP tool as a local callable function via get_callable_function(). Then call it directly, register it into a Toolkit, or wrap it into a more complex tool. Supports streamable_http transport.

client = HttpStatelessClient(name='gaode_mcp', transport='streamable_http', url=...)
func = await client.get_callable_function(func_name='maps_geo')
await func(address='Tiananmen Square', city='Beijing')

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics