Skip to main content
Glama
Community wflow MCP Server

Community wflow MCP Server

wf_document_approval_set

DestructiveIdempotent

Assign an approval template to a document so it follows the correct review workflow. Use it to establish who must approve before the document is finalized.

Instructions

Set approval template on a document

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": {
      "documentId": "<documentId>",
      "templateId": "<templateId>"
    },
    "name": "wf_document_approval_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentIdYesDocument ID
templateIdYesApproval template ID to apply
organizationNoOrganization workspace name (uses default if omitted)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

The annotations declare destructiveHint=true and idempotentHint=true, but the description never explains what is destroyed, does setting a template replace an existing approval workflow or existing approvers, or what happens to in-flight approvals. For a mutation tool that is explicitly flagged destructive, this is the most important missing context, and the description adds nothing beyond the annotations. It does not contradict them, but it leaves the key risk undocumented.

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 short clause with the verb and resource front-loaded. There is no wasted wording, but the brevity comes at the cost of the behavioral context a destructive mutation tool needs.

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?

This is a destructive, idempotent mutation on a document with no output schema and no statement of effects, permissions, or reversibility. An agent knows what identifiers to pass but not what will happen to the document's existing approval state, which is essential for safely invoking it.

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%, and all three parameters carry inline descriptions, including the note that organization falls back to a default when omitted. The description itself adds no parameter detail, so the baseline of 3 is appropriate.

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?

States a specific verb and resource: 'Set approval template on a document.' An agent can distinguish this from wf_document_approval_clear by name and from wf_approval_template_save by the fact that the object acted on is a document, not a template. It stops short of explicitly differentiating itself from siblings, so it is clear but not maximally so.

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 description gives no when-to-use guidance and never mentions the complementary wf_document_approval_clear or the template-listing tools. An agent must infer from the name alone when this operation is appropriate and what preconditions exist, such as whether the document must be in a particular state.

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

Deploy Server

Other Tools