MCP Tools
get_request
Reads a request or draft as written, with its secrets hidden.
Overview
get_request returns a request's method, URL, headers, query parameters, body, auth and settings, leaving {{variable}} tokens in place. Secret values appear as [redacted] or [secret]. auth.effective names the auth that applies after inheritance.
With includeLastResponse, the result also holds the last response Relay has for the request, or null. Nothing is sent.
{
"requestId": "5B2C8E41-9D3A-4F67-B0E8-1A4C7D2F6E95",
"includeLastResponse": true
}Parameters
Prop
Type
Return Value
{
"id": "5B2C8E41-9D3A-4F67-B0E8-1A4C7D2F6E95",
"name": "Get Orders",
"kind": "http",
"method": "GET",
"url": "{{baseUrl}}/v1/orders",
"headers": [
{ "key": "Authorization", "value": "Bearer {{apiToken}}" }
],
"queryParams": [],
"body": { "type": "none" },
"auth": { "mode": "inherit", "effective": "None" },
"isDraft": false,
"hasScripts": false,
"workspaceId": "A1F3D5B7-0C2E-4A6B-8D9F-1E3C5A7B9D02",
"lastResponse": null
}See Also
- update_request: Changes a request or draft.
- send_request: Sends a request and returns its response.