Grammarly interview questions
Big tech · 1 question reported
- junior 0
- mid 1
- senior 0
These are 1 technical questions candidates reported being asked in Grammarly interviews for AI engineer, ML engineer and applied AI engineer roles, each with a model answer you can say out loud in a minute or two. They cover tools & constraints: 0 junior, 1 mid-level and 0 senior questions. Every question comes from a public interview write-up that names Grammarly.Updated
Grammarly tool calls and constrained sampling questions
Model answer
Give the model a few typed tools, like sum a range or delete rows, plus a compact view of the sheet: headers, size, a few rows.
Scroll sideways to see the whole diagram
The context holds the tool definitions and the user's question.
Text version
- The context holds the tool definitions and the user's question.
- The model emits a structured call: a tool name and JSON arguments. With Anthropic's API the reply stops with stop_reason "tool_use".
- The call is text the model generated. Your code checks it before anything runs.
- Your code executes the function. The model has no hands: it only asked.
- The output goes back into the context (a tool_result block) and the model runs again, until it answers instead of calling.
After AI Engineering, Ch. 6 "Function calling", and Anthropic, "Tool use with Claude" (fetched 2026-10-21). Illustrative call.
It emits a tool call; your code validates it against the schema and the live sheet, checking column K exists and row 5 is in range, then executes. Destructive actions show a preview and need confirmation, and everything is undoable. Evaluate on commands with expected calls.
Each question comes from a public interview write-up or video that names Grammarly; the answers are ours. Not affiliated with Grammarly.