endorse_comment
Mark a comment as endorsed by staff to highlight valuable contributions in Ed Discussion forums.
Instructions
Endorse a comment (staff)
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); } } );