relay_run
Execute a single AI model call to test prompts before building full workflows. Returns output, token usage, estimated provider cost, and trace URL.
Instructions
Execute a single AI model call. Useful for testing prompts before building full workflows. Returns output, token usage, estimated provider cost, and trace URL. Note: Cost tracks your provider bill (OpenAI/Anthropic), not RelayPlane fees - we're BYOK.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>",
"prompt": "<prompt>"
},
"name": "relay_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model in provider:model format (e.g., 'openai:gpt-4o', 'anthropic:claude-3-5-sonnet-20241022') | |
| prompt | Yes | The user prompt to send | |
| systemPrompt | No | Optional system prompt | |
| schema | No | Optional JSON schema for structured output |