execute_api_request
Send one API request from a YAML definition, resolving variables, handling auth and retries, then capture and assert responses for API testing.
Instructions
Send one request from a YAML definition. Variables resolve YAML < .env.mcp.local < session (after set_environment, {ENV}_KEY wins over KEY); an unresolved placeholder is sent as the literal {{KEY}}. Runs auth_dependency first when needed, retries once on 401, applies capture and assert. The body comes back once: bodyJson for JSON that fits the cap, bodyPreview for text; JSON over the cap gives a truncated bodyPreview plus bodyJson.topLevelKeys — narrow it with jsonPathSelect. responseDetail: minimal = status only; summary = body (8k chars) and the headers that matter; full = every header, 50k chars.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| requestId | Yes | ||
| timeoutMs | No | ||
| maxBodyChars | No | Character cap for the returned body (after jsonPathSelect, when used). | |
| workspaceRoot | No | Optional when MCP_WORKSPACE_ROOT is set. | |
| jsonPathSelect | No | JSONPath to project the response body before returning it. | |
| responseDetail | No | summary | |
| definitionRelativePath | Yes | e.g. .mcp/api/default.yaml |