Description
|
async def list_tools(self, cursor: str | None = None) -> types.ListToolsResult: |
|
"""Send a tools/list request.""" |
|
result = await self.send_request( |
|
types.ClientRequest( |
|
types.ListToolsRequest( |
|
method="tools/list", |
|
params=types.PaginatedRequestParams(cursor=cursor) if cursor is not None else None, |
|
) |
|
), |
|
types.ListToolsResult, |
|
) |
Why can't we expose the params parameter of tools/list to the client, so that the server can use this params to enhance the tools/list functionality — for example, enabling context-aware tool filtering?
Description
python-sdk/src/mcp/client/session.py
Lines 384 to 394 in 6566c08
Why can't we expose the
paramsparameter oftools/listto the client, so that the server can use thisparamsto enhance thetools/listfunctionality — for example, enabling context-aware tool filtering?