Skip to main content
Glama

Octolane

restore_deal

DestructiveIdempotent

Restore a previously deleted deal/opportunity by its ID. The deal must have been soft-deleted (via bulk_delete_deals) to be restorable. Use when the user asks to restore, undelete, recover, or bring back a deleted deal. Requires the opportunity_id of the deleted deal.

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": {
      "opportunity_id": "<opportunity_id>"
    },
    "name": "restore_deal"
  }
}

Input Schema

NameRequiredDescriptionDefault
session_idNoThe ID of the task this call belongs to. Leave it out on your first call. On every later call for the same task, send the ID an earlier result gave you, and pass it to any subagent working on that task.
opportunity_idYesThe opportunity/deal ID to restore

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, openWorldHint=false, so the safety profile is covered. The description adds genuinely useful non-annotated context: restoration only works for soft-deleted records created via bulk_delete_deals, which tells the agent a pre-condition that annotations do not express. It omits failure behavior (what happens if the ID is not soft-deleted) and any permission requirements.

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

Conciseness5/5

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

Three short sentences, front-loaded with what the tool does, followed by the precondition and trigger phrases. No redundant or filler wording.

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 two-parameter mutation with full schema coverage and no output schema, the description covers purpose, prerequisite, and invocation intent adequately. Only the error/edge-case behavior for non-restorable IDs is left implicit.

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

Parameters3/5

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

Schema description coverage is 100%, so both parameters are already documented in the schema. The description only restates that opportunity_id refers to the deleted deal, adding marginal semantics beyond 'The opportunity/deal ID to restore'; baseline 3 applies.

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 ('Restore') and resource ('previously deleted deal/opportunity') plus the scoping constraint that it must be soft-deleted. An agent can immediately distinguish this from bulk_delete_deals and the other deal-mutation siblings.

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?

Gives explicit trigger phrasing ('restore, undelete, recover, or bring back a deleted deal') and a clear prerequisite (must have been soft-deleted via bulk_delete_deals). It stops short of an explicit when-not or naming an alternative route if the deal was hard-deleted, so it is clear but not exhaustive.

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