use_credential
Make an API request with a user's stored key without exposing it: Commons executes the call and returns the response. Provide a justification, then surface approve_url for risky writes and poll approval_status.
Instructions
Call a service with one of the user's keys without seeing it: Commons makes the request and returns the response. justification = what you need it for; the decision agent allows sound reads, writes need the user's request, risky ones wait for the user: show them approve_url (a 'yes' in your chat can't approve), then approval_status(question_id, wait=120) returns the result once they approve. verdict running = approved and being run now: wait on approval_status, don't resend.
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": {
"credential": "<credential>",
"url": "<url>",
"justification": "<justification>"
},
"name": "use_credential"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| body | No | ||
| agent | No | ||
| method | No | GET | |
| api_key | No | ||
| credential | Yes | ||
| content_type | No | ||
| justification | Yes |