endorse_comment
Mark a comment as endorsed by staff to highlight valuable contributions in Ed Discussion forums.
Instructions
Endorse a comment (staff)
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": {
"comment_id": "<comment_id>"
},
"name": "endorse_comment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comment_id | Yes | Comment ID |
Implementation Reference
- src/api.ts:242-244 (handler)The actual implementation of the endorse_comment tool logic in the API class.
async endorseComment(commentId: number): Promise<void> { await this.request("POST", `comments/${commentId}/endorse`); } - src/index.ts:362-374 (registration)Registration of the endorse_comment MCP tool.
server.tool( "endorse_comment", "Endorse a comment (staff)", { comment_id: z.number().describe("Comment ID") }, async ({ comment_id }) => { try { await api.endorseComment(comment_id); return msg(`Comment ${comment_id} endorsed.`); } catch (err) { return fail(err); } } );