Skip to main content
Glama
Community wflow MCP Server

Community wflow MCP Server

wf_document_payments

DestructiveIdempotent

Update a document's payment records by replacing the current payment list with JSON entries containing date, info, and amount; optionally specify an organization workspace.

Instructions

Update payment information 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>",
      "payments": "<payments>"
    },
    "name": "wf_document_payments"
  }
}

Input Schema

NameRequiredDescriptionDefault
paymentsYesPayments as a JSON array of {"date": "YYYY-MM-DD", "info": string, "amount": number}. Replaces the document's current payment list.
documentIdYesDocument ID
organizationNoOrganization workspace name (uses default if omitted)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.5/5.0
Behavior2/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the safety profile is covered. The description adds nothing beyond that: it does not warn that the entire payment list is replaced rather than appended to — that critical destructive detail lives only in the schema's parameter text — and says nothing about permission or lock requirements.

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

Conciseness3/5

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

A single six-word sentence with zero waste, but it is under-specified rather than efficient — there is no front-loaded detail about the replacement behavior or the payments structure, so brevity costs the agent information it 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?

For a destructive mutation with three parameters and no output schema, the definition should at minimum state that the existing payment list is overwritten and what the update requires. Neither is present in the description; the agent only learns this from the schema parameter text.

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%, including the JSON-array format for payments and the replace-not-merge semantics, so the schema carries the load. The description adds no meaning beyond it, which is the baseline-3 case.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Update payment information on a document" gives a verb and a resource, but "payment information" is vague about what a payment record is (invoice installments, partial payments, amounts/dates). It never distinguishes this from the broader wf_document or wf_document_metadata siblings, so the agent must infer scope from the schema alone.

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?

No when-to-use guidance, no prerequisites (e.g. document lock state or rights required), and no indication of when an agent should use wf_document_metadata or wf_document instead. The reader is left to infer everything from the name.

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