Skip to main content
Glama
Portward

Portward

by hamzaelsiesy

discard_draft

Remove an unwanted context draft by draft_id so it no longer appears in the active workflow.

Instructions

Throw away a context draft the user doesn't want.

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": {
      "draft_id": "<draft_id>"
    },
    "name": "discard_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
draft_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden for what is plainly a destructive operation. It does not say whether the discard is permanent or reversible, whether it requires the draft to be in a particular state, or what the caller gets back on success or failure.

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?

A single front-loaded sentence with no filler or redundancy. It is efficient, but its brevity is partly a symptom of thin content rather than disciplined economy.

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

Completeness2/5

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

For an irreversible-sounding mutation with no annotations, no output schema, and an undocumented required identifier, the definition leaves too much unspecified. An agent cannot confirm delete semantics, error behavior, or ID provenance from this text.

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

Parameters2/5

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

Schema description coverage is 0% and the description says nothing about draft_id, including where an agent would obtain a valid identifier (e.g., from the context_drafts listing). The parameter name is largely self-explanatory, which prevents a 1, but the description adds no meaning.

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?

"Throw away a context draft" gives a specific verb plus resource, so an agent can tell this is a deletion of a draft rather than, say, a listing operation like context_drafts. It does not explicitly contrast itself with the draft_* siblings, which keeps it from 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 Guidelines2/5

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

The only usage signal is "the user doesn't want," which merely restates the purpose. There is no stated precondition, no mention of how to identify an unwanted draft, and no reference to alternatives such as keeping or inspecting the draft first.

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