Skip to main content
Glama

Grammarly MCP Server and API by Cotlet

Set document goals in Grammarly

grammarly_set_document_goals
Read-onlyIdempotent

Set document goals in the user's own Grammarly account from ChatGPT, Claude or any AI agent. Returns how to do it in Grammarly step by step (screens, buttons, fields) and opens nothing by itself; then do it with the cotlet_browser_* tools in the user's Grammarly Cloud Browser. Grammarly's official API: Grammarly has an official API only for organizations (checked 5 Nov 2026): Writing Score, AI Detection and Plagiarism Detection, plus Analytics and License Management, reached through Contact Sales and OAuth 2.0 credentials.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "grammarly_set_document_goals"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false; the description reinforces this with 'opens nothing by itself', which is the single most important behavioral fact for an agent to know. It also discloses the return shape at a high level (screens, buttons, fields) and explains why no official API path exists. The only gap is the lack of detail on whether the returned guide is deterministic or context-dependent.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose and the no-side-effect caveat are front-loaded, which is good. However, the final sentence about Grammarly's organizational API, including a checked date and OAuth 2.0 details, is longer than the decision it supports and reads like justification padding. 'From ChatGPT, Claude or any AI agent' is filler that adds no routing value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a zero-parameter, no-output-schema tool with annotations covering safety, the description supplies what an agent needs: what it returns, that it performs no browser action, and which tool family completes the job. It stops short of describing the granularity or format of the returned instructions, which would fully close the loop.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so the baseline of 4 applies. The description does not need to explain parameter meaning, and it correctly spends its text elsewhere.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first sentence names a specific verb and resource (set document goals) and the account it applies to, then immediately corrects the natural assumption by stating the tool 'returns how to do it in Grammarly step by step... and opens nothing by itself.' That correction is what makes the tool distinguishable, though the leading 'Set document goals' phrasing still reads as a write action until the second sentence arrives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives an explicit follow-up path: use cotlet_browser_* tools in the user's Grammarly Cloud Browser to actually perform the action. It also implicitly rules out the official API route by explaining API access is organization-only. It does not state when to prefer this over other grammarly_* siblings, but the sequencing guidance is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources