Skip to main content
Glama

Taokeh MCP server

Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as mcp. If you published it, claim ownership there.

Withdraw a pending draft

withdraw_draft
Destructive

Takes back a pending draft this connection's person filed, when it should not have been filed at all (a duplicate, the wrong document, the user changed their mind). It takes the draft's kind (as its create or update tool filed it, the same kinds revise_draft takes, plus bank_clearing, logo_update and date_shift), its draftId and a short reason. The draft is closed as rejected with the reason "Withdrawn by the AI that filed it", so it leaves the approval queue and a second filing of the same document is no longer refused as a duplicate of it. Only a draft still waiting can be withdrawn, and only one filed through the connector by the same person; a draft filed by someone else, already approved or already rejected is refused, naming who filed it or when it was decided. A draft that only needs a correction is revised with revise_draft instead of withdrawn. Nothing is posted or deleted. Returns the kind, the draftId and when it was withdrawn.

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": {
      "kind": "<kind>",
      "draftId": "<draftId>"
    },
    "name": "withdraw_draft"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesThe draft kind the filing tool returned, e.g. 'invoice', 'quote', 'delivery_order', 'supplier_debit_note', 'bank_clearing', 'asset_register'.
reasonNoWhy it is withdrawn, in the reviewer's language; it is shown after the fixed lead.
draftIdYesThe draftId the filing tool returned (or my_work lists).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the destructiveHint=true annotation by describing exactly what the mutation does: the draft is closed as rejected with a fixed reason, leaves the approval queue, and no longer blocks a duplicate filing. It also clarifies the non-effects ("nothing is posted or deleted") and the failure behavior (refusals naming who filed it or when it was decided).

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-loads the action and the decision criteria, then layers preconditions and effects in a logical order with no filler sentences. Sentences are long and parenthetical-heavy, which slightly hurts scanability, but every clause carries information.

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

Completeness5/5

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

Although there is no output schema, the description states the return fields (kind, draftId, when withdrawn). Combined with the covered permissions, refusal conditions, and side effects, an agent has everything needed to call it correctly.

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?

Schema coverage is 100% so parameter basics are already documented, but the description adds real meaning: kind is tied to the filing tool's return value and to the same kinds revise_draft accepts (plus bank_clearing, logo_update, date_shift), and reason is explained as reviewer-facing text shown after a fixed lead.

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?

Uses a specific verb+resource ("takes back a pending draft") and scopes it to drafts filed by this connection's person, with concrete examples of when withdrawal applies. It also names the sibling it is not (revise_draft), so an agent can distinguish it without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Explicitly states when to use it (duplicate, wrong document, changed mind) and when not to ("a draft that only needs a correction is revised with revise_draft instead"). It also enumerates the preconditions — draft still pending, filed through this connector by the same person — and the refusal cases (someone else's, already approved/rejected).

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