check_url
Checks whether a URL is allowed under a network policy before executing a request. Returns allowed status and reason to gate tool calls.
Instructions
Check whether a URL is allowed under a network policy. Returns { allowed, reason } without making any actual request. Use this to gate tool calls before they execute.
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": {
"url": "<url>",
"policy": "<policy>"
},
"name": "check_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to check. | |
| method | No | HTTP method (default GET). | |
| policy | Yes | A simplified network policy. Use { allow: ["api.openai.com", "*.example.com"] }. Optional: deny: string[], methods: string[]. |