Call an allowlisted Apollo endpoint
Immutable Catalog Entry
This descriptor comes from the active versioned Portal catalog.
- Contract tier:
legacy - Risk:
destructive - Catalog version:
1.0.2 - Descriptor hash:
8da34c26ae88a8d786fc432cbe8d717245fac29428f50c912b27c8c2dcea1181
Use this advanced legacy fallback only when no canonical Apollo tool covers an allowlisted API or OAuth endpoint. It contacts Apollo; non-read methods require confirm=true and may change or overwrite data. The URL host/path and body/response sizes are enforced by server allowlists.
Request Body
{
"jsonrpc": "2.0",
"id": "apollo-apollo-raw-request-example",
"method": "tools/call",
"params": {
"name": "apollo.apollo_raw_request",
"arguments": {
"method": "GET",
"url": "https://example.com/resource",
"body": "",
"params": "",
"compact": "",
"confirm": false,
"max_items": "",
"include_raw": false
}
}
}
Arguments Schema
{
"type": "object",
"required": [
"method",
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "Allowlisted Apollo HTTPS URL."
},
"body": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
}
],
"description": "Apollo JSON request body."
},
{
"type": "null"
}
],
"default": null,
"description": "Apollo JSON request body."
},
"method": {
"enum": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE",
"HEAD",
"OPTIONS"
],
"type": "string",
"description": "HTTP method for the allowlisted Apollo request."
},
"params": {
"anyOf": [
{
"type": "object",
"description": "Apollo endpoint parameters.",
"additionalProperties": true
},
{
"type": "null"
}
],
"default": null,
"description": "Apollo endpoint parameters."
},
"compact": {
"anyOf": [
{
"type": "boolean",
"description": "Override the server default for token-efficient list truncation."
},
{
"type": "null"
}
],
"default": null,
"description": "Override the server default for token-efficient list truncation."
},
"confirm": {
"type": "boolean",
"default": false,
"description": "Must be true for methods other than GET, HEAD, and OPTIONS."
},
"max_items": {
"anyOf": [
{
"type": "integer",
"minimum": 1,
"description": "Maximum result items returned when compact mode is enabled."
},
{
"type": "null"
}
],
"default": null,
"description": "Maximum result items returned when compact mode is enabled."
},
"include_raw": {
"type": "boolean",
"default": false,
"description": "Include the unnormalized Apollo response."
}
},
"additionalProperties": false
}
Output Schema
{
"type": "object",
"required": [
"ok",
"data",
"error",
"meta"
],
"properties": {
"ok": {
"type": "boolean",
"description": "Whether the requested operation completed successfully."
},
"data": {
"anyOf": [
{
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "array",
"items": {}
},
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
}
],
"description": "Normalized provider or navigation result."
},
{
"type": "null"
}
],
"default": null,
"description": "Normalized provider or navigation result."
},
"meta": {
"type": "object",
"description": "Safe request, pagination, and truncation metadata.",
"additionalProperties": true
},
"error": {
"anyOf": [
{
"type": "object",
"description": "Safe error details when ok is false.",
"additionalProperties": true
},
{
"type": "null"
}
],
"default": null,
"description": "Safe error details when ok is false."
}
},
"description": "Apollo MCP normalized response envelope.",
"additionalProperties": false
}
Code Examples
- cURL
- Node.js
- Python
curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "apollo-apollo-raw-request-example",
"method": "tools/call",
"params": {
"name": "apollo.apollo_raw_request",
"arguments": {
"method": "GET",
"url": "https://example.com/resource",
"body": "",
"params": "",
"compact": "",
"confirm": false,
"max_items": "",
"include_raw": false
}
}
}'
const response = await fetch('https://portal.madpanda3d.com/api/mcp', {
method: 'POST',
headers: {
Authorization: 'Bearer mad_live_***',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"jsonrpc": "2.0",
"id": "apollo-apollo-raw-request-example",
"method": "tools/call",
"params": {
"name": "apollo.apollo_raw_request",
"arguments": {
"method": "GET",
"url": "https://example.com/resource",
"body": "",
"params": "",
"compact": "",
"confirm": false,
"max_items": "",
"include_raw": false
}
}
}),
});
const data = await response.json();
console.log(data);
import requests
url = 'https://portal.madpanda3d.com/api/mcp'
headers = {
'Authorization': 'Bearer mad_live_***',
'Content-Type': 'application/json',
}
payload = {
"jsonrpc": "2.0",
"id": "apollo-apollo-raw-request-example",
"method": "tools/call",
"params": {
"name": "apollo.apollo_raw_request",
"arguments": {
"method": "GET",
"url": "https://example.com/resource",
"body": "",
"params": "",
"compact": "",
"confirm": false,
"max_items": "",
"include_raw": false
}
}
}
response = requests.post(url, headers=headers, json=payload, timeout=60)
print(response.json())
Example Responses
- 200 Success
- 502 Upstream Error
{
"ok": true,
"message": "Tool apollo.apollo_raw_request executed successfully.",
"note": "Response shape varies by MCP tool. Inspect live responses for exact fields."
}
{
"ok": false,
"classification": "upstream_http_error",
"message": "Upstream MCP returned a non-success status."
}