call_service
Securely call APIs with server-side credential injection, keeping API keys out of conversation. Prevents secret exposure and prompt-injection exfiltration.
Instructions
RECOMMENDED: Make an API call with server-side credential injection. The credential is fetched from the Clavis vault and injected into the upstream request server-side — the raw API key never enters this conversation. Prefer this over get_credentials: it eliminates prompt-injection exfiltration as an attack vector, because there is no secret in context to exfiltrate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL to call. Must be on the service connector's allowed domain — cross-domain URLs are rejected server-side (SSRF protection). | |
| data | No | Form-encoded or raw body (mutually exclusive with json) | |
| json | No | JSON request body (mutually exclusive with data) | |
| method | Yes | HTTP method for the upstream request | |
| params | No | URL query parameters | |
| headers | No | Additional request headers. Auth headers are injected server-side and cannot be overridden. | |
| service_name | Yes | Name of the Clavis service whose credentials to inject (e.g. 'my-openai') |