Call API endpoint
call_endpointSend HTTP requests to Danske Bank Premium APIs via the MCP proxy, which adds OAuth/mTLS authentication and validates endpoint URLs for sandbox and live calls.
Instructions
Execute a request against a Danske Bank API. Only Premium APIs are supported (client_credentials grant, no PSD2 consent flows). Tiers: mock = mock-api.danskebank.com (sample data, no auth). Default tier: mock. HOW TO BUILD url: in the API's OpenAPI spec, pick the servers entry of the tier you call: the entry whose host is that tier's host above, whatever its position in the list (mock is often first). Append the operation path to the path of that entry. Example: entry https://api.danskebank.com/corporate/api + operation /v1/accounts/list → url /corporate/api/v1/accounts/list. The operation path alone returns 404. A full URL also works if it is https:// on the tier's host, without port or credentials. The proxy adds the client certificate and bearer token for sandbox and live. Results include the resolved tier, status, headers and body as structuredContent and matching JSON text. Only HTTP 2xx is API success; a redirect is not success. HTTP 400 and above sets isError with error.category, error.retryable and error.nextStep. Check the expected response body before reporting business success.
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": {
"method": "<method>",
"url": "<url>"
},
"name": "call_endpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Request path: the path of the OpenAPI `servers` entry for the target tier, followed by the operation path. Pick the entry whose host is the tier's host in the tool description, whatever its position in the list. Example: entry `https://api.danskebank.com/corporate/api` and operation `/v1/accounts/list` give `/corporate/api/v1/accounts/list`. The operation path alone returns 404. A full URL is accepted only as https:// on the tier's host, without port or credentials. | |
| body | No | Request body for POST/PUT/PATCH | |
| tier | No | Target tier: live (real data), sandbox (test data) or mock (sample data). Omit it to use the default tier named in the tool description. Choose mock or sandbox only when the user asks to test. | |
| method | Yes | HTTP method | |
| headers | No | Optional extra headers. Authorization and Content-Type are added automatically — do NOT include them here. | |
| queryParams | No | Query string parameters |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||