Hn Get User
hn_get_userGet an HN user profile with karma, about, and optionally their most recent submissions resolved into full items.
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": "hn_get_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| username | Yes | HN username. Case-sensitive. Trimmed, and one leading @ is dropped, so @pg looks up pg. Blank input is rejected, as is a name with whitespace inside it — a display name such as "Paul Graham", not an account name. | |
| submissionCount | No | Page size — how many submissions to resolve per call, at most 50 per call. A larger value is served at 50, and the notice names the submissionOffset for the next page. Only used when includeSubmissions is true. | |
| submissionOffset | No | How many submissions to skip before resolving, counting back from the most recent. Use with submissionCount to page through a long history: request offset 0, then advance by the page size served, and so on. The enrichment block echoes submissionOffset and, when more remain, the offset to send next. Only used when includeSubmissions is true. | |
| includeSubmissions | No | Resolve the user's most recent submissions into full items. Without this, only the submission count is available. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cap | No | The submissionCount value served: as passed, or 50 when submissionCount was above that cap. | |
| user | No | User profile. | |
| error | No | Present when the call failed. Absent on success. | |
| shown | No | Number of submissions returned. | |
| notice | No | Pagination context — which window of the history this page covers and the submissionOffset to send next, how many submissions in the window were omitted as deleted, dead, or missing, by kind, on every page that drops any, the submission IDs that failed to load and how to retry them, or a warning that the offset is past the end — noting when submissionCount was served at its per-call cap or the call's 50-second time budget cut the failed fetches. Absent when the page reaches the end of the history with every submission in its window live and loaded, or when no submissions were resolved. | |
| failedIds | No | Submission IDs in this window whose fetch failed after retries or ran past the call's 50-second time budget. They are not deleted or missing and may load on a later call: retry with the same submissionOffset, or pass an ID to hn_get_thread to fetch that item alone. Absent when every submission in the window loaded. | |
| truncated | No | True when submissions remain beyond this page. | |
| submissions | No | One page of submissions, most recent first, starting at submissionOffset. Absent when includeSubmissions is false or the user has never submitted. Empty when the page holds no live items — either the offset is past the end, or every item in the window was deleted, dead, missing, or failed to load (the notice counts the omitted ones by kind; failedIds lists the failures). | |
| submissionOffset | No | The offset this page started at. Absent when includeSubmissions is false or the user has never submitted. |