Skip to main content
Glama

cortex_manage_draft

Approve, promote, merge, or discard quarantined drafts created by Memory Firewall so pending project changes are reviewed and resolved safely.

Instructions

Approve, promote, merge, or discard quarantined draft projects created by the Memory Firewall.

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>",
      "action": "<action>"
    },
    "name": "cortex_manage_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesAction to perform on the draft.
draft_idYesQuarantined draft project identifier.
target_project_idNoOptional target project ID when merging.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden, yet it says nothing about what each action does to the draft or the target project, whether discard is irreversible, whether approve mutates or only moves the draft, or what permissions are required. Only the scope ('created by the Memory Firewall') is disclosed, which is useful but far short of what a four-action mutation tool 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?

A single front-loaded sentence with no filler, and the verbs come first, which is the right structure. The only wasted word is 'promote', which costs accuracy rather than length.

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 a mutation tool with a three-way action enum, an optional target parameter, no annotations and no output schema, the definition is too thin. It omits what each action results in, the merge precondition on target_project_id, and reversibility, so an agent cannot predict call outcomes.

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 coverage is 100%, so baseline is 3, but the description actively misleads: it advertises a 'promote' action that does not appear in the action enum, and it adds no meaning about target_project_id beyond what the schema already states. The mismatch forces the agent to reconcile the prose against the schema before calling.

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?

Names a specific set of verbs (approve, promote, merge, discard) acting on a specific resource (quarantined draft projects from the Memory Firewall), which is far better than a tautology. It does not distinguish itself from siblings like cortex_create_project or cortex_consolidate_project, and 'promote' is not an action the schema actually accepts, which slightly muddies what the tool does.

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?

There is no explicit when-to-use or when-not-to-use guidance, no mention of prerequisites (e.g. that the draft must currently be quarantined), and no routing to alternatives such as cortex_create_project for non-quarantined creation. The phrase 'quarantined draft projects' implies the context, but the agent must infer everything else.

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