GitHub Contributions
github_contributionsRetrieve a GitHub user's contribution graph, including sorted daily activity, current streak, and longest streak, with optional 24-hour caching to reduce credit use.
Instructions
GitHub contribution graph — sorted days[], currentStreak (today grace), longestStreak (2 credits). Costs 2 credits. Empty results and failures are never charged. Pass cache=true for a free 24h cache hit (default always fresh).
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": {
"username": "<username>"
},
"name": "github_contributions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cache | No | Set true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh. | |
| username | Yes | GitHub username or profile URL, e.g. getify or https://github.com/getify. |