Start a scan
sentrint_scan_repoStart a Sentrint security scan of a GitHub repository's pushed code. Give the repository URL, and optionally a branch (default: the repository's default branch) and a full 40-character commit SHA on that branch. Returns a submission_id at once; poll sentrint_scan_status with it. Each new commit uses one scan from the account's allowance; sentrint_get_allowance shows what is left. The same commit again is free while Sentrint's rules are unchanged; after they change, the old report stays free and a rescan needs force=true and costs one scan.
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": {
"repo_url": "<repo_url>"
},
"name": "sentrint_scan_repo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Set true only after the user agrees to spend one scan: it runs the commit again under Sentrint's current rules, even when an older report exists. Leave it out otherwise. | |
| branch | No | A branch to scan. Omit it to scan the repository's default branch. | |
| repo_url | Yes | The GitHub repository URL, such as https://github.com/owner/repo. Sentrint scans the code pushed to GitHub, not local files. | |
| commit_sha | No | A full 40-character commit SHA on that branch, to scan one exact commit. Omit it to scan the branch's latest commit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | Yes | The submission's state, usually accepted. | |
| next_step | Yes | What to do next, in a sentence written for the agent. | |
| submission_id | Yes | Pass this to sentrint_scan_status to follow the scan. |