cURL
curl --request POST \ --url http://localhost:8080/v1/mcp/tool/execute \ --header 'Content-Type: application/json' \ --data '{ "type": "function", "id": "<string>", "function": { "name": "<string>", "arguments": "<string>" } }'
{ "role": "user", "content": "Hello, how are you?", "tool_call_id": "<string>", "tool_calls": [ { "id": "tool_123", "type": "function", "function": { "name": "get_weather", "arguments": "{\"location\": \"San Francisco, CA\"}" } } ], "refusal": "<string>", "annotations": [ { "type": "<string>", "url_citation": { "start_index": 123, "end_index": 123, "title": "<string>", "url": "<string>", "sources": "<any>", "type": "<string>" } } ], "thought": "<string>" }
Executes a tool call from the Model Context Protocol (MCP) and returns the result.
Show child attributes
user
assistant
system
tool
Was this page helpful?