secrets_scope
Restrict secret usage to specific tools by defining allowed tool patterns, such as limiting an API key to http.post calls.
Instructions
Restrict which tools can use a secret. E.g., scope an API key to only http.post calls. Requires secrets.write.
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>",
"allowedTools": "<allowedTools>"
},
"name": "secrets_scope"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Secret name | |
| allowedTools | Yes | Tool patterns that can use this secret (e.g., ['http.post', 'http.get']) |