MCPcopy
hub / github.com/modelcontextprotocol/python-sdk / call_tool

Function call_tool

tests/server/test_otel.py:297–299  ·  view source on GitHub ↗
(ctx: Ctx, params: CallToolRequestParams)

Source from the content-addressed store, hash-verified

295 seen_arguments: dict[str, Any] = {}
296
297 async def call_tool(ctx: Ctx, params: CallToolRequestParams) -> dict[str, Any]:
298 seen_arguments.update(params.arguments or {})
299 return {"content": [], "isError": False}
300
301 async def inject_arg(ctx: Ctx, call_next: CallNext) -> Any:
302 assert ctx.params is not None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected