Skip to main content
Glama

Grammarly MCP Server and API by Cotlet

Delete and restore document in Grammarly

grammarly_delete_and_restore_document
Read-onlyIdempotent

Delete and restore document 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_delete_and_restore_document"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and idempotentHint=true, so the safety profile is covered. The description adds genuinely useful context by stating the tool opens nothing and only returns instructions, which prevents an agent from assuming it performs the deletion. Beyond that it discloses no output format, no permanence/recoverability details for deletion versus restore, and pads with unrelated API background.

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

Conciseness4/5

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

The lead sentence pair is front-loaded and efficient: what it does, then the crucial clarification that it opens nothing. The final sentence about Grammarly's official API (Writing Score, AI Detection, Plagiarism, Contact Sales, OAuth) is off-topic for a delete/restore guide and dilutes focus, keeping this from a 5.

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

Completeness3/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, the description covers the essential behavior and the follow-up path. However, folding 'delete' and 'restore' into one tool without explaining whether both step sets are always returned, or how the agent should pick one, leaves an operational ambiguity, and it says nothing about whether deletion is recoverable.

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 per the baseline the schema carries no semantics to compensate for. The description makes clear that no arguments are needed because the tool only emits procedural guidance; there is nothing further it could meaningfully document.

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 description states a specific verb and resource ('Delete and restore document in the user's own Grammarly account') and immediately clarifies the actual behavior: it 'Returns how to do it in Grammarly step by step (screens, buttons, fields) and opens nothing by itself.' That resolves the tension with the mutation-flavored name. It doesn't distinguish itself from siblings like grammarly_set_document_goals or grammarly_list_documents, so it stops short of a 5.

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?

It gives a clear workflow: this tool returns the steps, then 'do it with the cotlet_browser_* tools in the user's Grammarly Cloud Browser' — naming the alternative tool family and the condition for using it. It lacks explicit when-not-to-use guidance (e.g., when a document is already in trash, or when the user wants the official API route).

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