Title: Add "meta" to call_tool method · Issue #621 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: Add "meta" to call_tool method · Issue #621 · modelcontextprotocol/python-sdk
X Title: Add "meta" to call_tool method · Issue #621 · modelcontextprotocol/python-sdk
Description: Is your feature request related to a problem? Please describe. I would like to be able to pass metadata via the "tools/call" invocation in the call_tool method. This would afford the Caller to use both the pre-defined client_id value ant...
Open Graph Description: Is your feature request related to a problem? Please describe. I would like to be able to pass metadata via the "tools/call" invocation in the call_tool method. This would afford the Caller to use ...
X Description: Is your feature request related to a problem? Please describe. I would like to be able to pass metadata via the "tools/call" invocation in the call_tool method. This would afford the Call...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/621
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add \"meta\" to call_tool method","articleBody":"**Is your feature request related to a problem? Please describe.**\n\nI would like to be able to pass metadata via the \"tools/call\" invocation in the `call_tool` method. This would afford the Caller to use both the pre-defined `client_id` value anticipated by the Context.client_id attribute, as well as any other Caller specific values.\n\n**Describe the solution you'd like**\n\nHere is how I have modified my local copy to allow this feature functionality\n\n```python\n async def call_tool(\n self, name: str, arguments: dict[str, Any] | None = None, **meta\n ) -\u003e types.CallToolResult:\n \"\"\"Send a tools/call request.\"\"\"\n return await self.send_request(\n types.ClientRequest(\n types.CallToolRequest(\n method=\"tools/call\",\n params=types.CallToolRequestParams(name=name, arguments=arguments, _meta=meta)\n )\n ),\n types.CallToolResult,\n )\n```\n\nCould you please consider adding this feature as shown, or an equivalent implementation that would allow for the desired behavior?\n\nThank you!\n","author":{"url":"https://github.com/jeremyschulman","@type":"Person","name":"jeremyschulman"},"datePublished":"2025-05-03T15:23:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/621/python-sdk/issues/621"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:60ace6a0-83e2-b7f9-cd7c-dc9a5c99c2c6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CD16:1BF7AA:734406:9FC7A1:6A5878DC |
| html-safe-nonce | 4c116bb1e2633abd08d38d49a677fd4fb1b475088ab226d7264b536d722fd74a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRDE2OjFCRjdBQTo3MzQ0MDY6OUZDN0ExOjZBNTg3OERDIiwidmlzaXRvcl9pZCI6IjI1OTk0ODAxNDUzODQ4NjM5NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 60932d199c7c49e419342d7cc9b01878c447a524d536ade68bbfad3b97e59b9c |
| hovercard-subject-tag | issue:3037464900 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/python-sdk/621/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aec35338f5553588e7ec7ada696ea6e8e3a529076e0130291f60bda476ff4f6d/modelcontextprotocol/python-sdk/issues/621 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aec35338f5553588e7ec7ada696ea6e8e3a529076e0130291f60bda476ff4f6d/modelcontextprotocol/python-sdk/issues/621 |
| og:image:alt | Is your feature request related to a problem? Please describe. I would like to be able to pass metadata via the "tools/call" invocation in the call_tool method. This would afford the Caller to use ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jeremyschulman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width