Create gateway
create_gatewayPut a metering gateway in front of your MCP server or HTTP API. Returns the public endpoint.
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": {
"name": "<name>",
"upstream_url": "<upstream_url>"
},
"name": "create_gateway"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name | |
| type | No | mcp | |
| tool_weights | No | Units per successful call of a tool (default 1) | |
| upstream_url | Yes | https URL of your MCP server or API | |
| rest_count_paths | No | ||
| upstream_headers | No | Headers sent to the upstream (e.g. Authorization). Stored encrypted, never returned. |