Skip to main content
Glama

Restore deleted drop

lnkdrp_restore_drop
Idempotent

A drop is one email template sent from the member's own Gmail to people picked for it and the people on its contact lists, each person with their own tracked link to each of the template's documents. What people often call an email campaign is a drop in LinkDrop. Brings back a drop (a campaign in the API) deleted with lnkdrp_delete_drop (or in the app), within 30 days of the delete, in the state it had: active, sent or archived. Its id is the campaignId in the delete's result, and a row of lnkdrp_list_deleted with kind campaign. Refusals: not_found when the id is unknown here (another person's private drop included) or the drop was permanently removed (past its 30 days); validation when it is not deleted (details.code not_deleted), when the workspace is at its cap on drops that are not archived (details.code campaigns_limit; a drop deleted while archived comes back archived and is not refused), or when its workspace is deleted (details.code conflict). A viewer cannot restore (forbidden).

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": {
      "campaignId": "<campaignId>"
    },
    "name": "lnkdrp_restore_drop"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaignIdYesThe drop's id (campaignId, 24 hex chars), from lnkdrp_list_drops.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations (idempotent=true, destructiveHint=false): it discloses the 30-day recovery window, that the drop returns in its prior state, that archived drops come back archived and bypass the cap check, the full refusal taxonomy with details.code values, and the viewer/forbidden permission rule. This is exactly the mutation-recovery context an agent needs.

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?

Front-loaded and dense, with no filler sentences; the opening definition of a drop earns its place because sibling tools use 'campaign' naming. It is long and the refusal list is packed into one sentence, but almost every clause carries operational information.

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?

Covers eligibility, id sourcing, permissions, and error codes thoroughly for a restore operation with no output schema. It stops short of saying what is returned (the restored drop object?) or whether the drop's links/people are also restored, which is the remaining ambiguity for a fairly complex recovery tool.

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?

With a single parameter at 100% schema coverage the baseline is 3; the description adds real meaning by explaining that the id is the campaignId in the delete result and the kind='campaign' row of lnkdrp_list_deleted. Minor friction: the schema says the id comes from lnkdrp_list_drops, while the description points at the delete result and list_deleted, which is the more accurate source for a deleted drop.

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

Purpose5/5

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

States a specific verb ('Brings back') and resource, and disambiguates the terminology by equating 'drop' with 'campaign in the API' and 'email campaign'. It also names the inverse operation (lnkdrp_delete_drop) and the state that is restored (active, sent or archived), so the agent can distinguish it from sibling delete/restore tools.

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?

Explicit preconditions are given: the drop must have been deleted within 30 days, the id comes from the delete's result or a row of lnkdrp_list_deleted with kind campaign. Refusal conditions are enumerated in detail. The one gap is that the sibling lnkdrp_restore_campaign is never named, leaving the agent to infer whether it is an alias of this tool or a different path.

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