Tool-scan configurations¶
The configurations of the Agent security enforcement points, tool call and tool response. Every call needs a Configuration management (admin) key, see the
Configuration API. The body is a ToolScanConfig.
The examples set the address and the key once:
export MATVIS_URL="https://<your-matvis-host>"
export MATVIS_API_KEY="<your-admin-api-key>"
export CONFIG_UUID="<configuration-uuid>"
List¶
GET /api/v1/config/tool-scan
Returns every tool-scan configuration under data. Narrow the list with the query parameters:
| Parameter | Description |
|---|---|
name |
Only the configuration with this name. |
type |
Only this enforcement point: tool_call or tool_response. |
Create¶
POST /api/v1/config/tool-scan
Creates a tool-scan configuration and returns it under data, with its uuid. Send the complete configuration;
fields you leave out take their defaults.
curl -X POST "$MATVIS_URL/api/v1/config/tool-scan" \
-H "Authorization: $MATVIS_API_KEY" \
-H "Content-Type: application/json" \
-d @- <<EOF
{
"name": "prod-tool-calls",
"type": "tool_call",
"tools": [
{
"name": "get_weather",
"active": true,
"tool_usage": "allowed",
"pattern_rules": []
}
],
"non_blocking": false
}
EOF
Get¶
GET /api/v1/config/tool-scan/{uuid}
Returns one tool-scan configuration under data. GET a configuration to see its full shape.
Replace¶
PUT /api/v1/config/tool-scan/{uuid}
Replaces the tool-scan configuration with the body you send, the same shape as on create. Fields you leave out take their defaults, so send the complete configuration: GET it, change it, PUT it back. The change takes effect on the next request.
Delete¶
DELETE /api/v1/config/tool-scan/{uuid}
Deletes the tool-scan configuration. A configuration a model configuration uses cannot be deleted.
curl -X DELETE "$MATVIS_URL/api/v1/config/tool-scan/$CONFIG_UUID" -H "Authorization: $MATVIS_API_KEY"
Responses¶
See the status codes every Configuration API call shares.