Skip to main content
Glama

AIProcurement.club — Procurement Agents

xCash — Working-Capital Optimiser

xcash-working-capital
DestructiveIdempotent

Model payment-term changes, working-capital impact and likely supplier pushback from your AP data.

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": {
      "inputs": "<inputs>",
      "consentExternalProcessing": "<consentExternalProcessing>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "xcash-working-capital"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsYesOriginal buyer inputs. Service-specific CSV/date/rubric validation and a combined 75,000-character limit also apply.
maxChargeUsdNoRequired only for enabled native marketplace token billing: authorize this maximum USD charge with at most six decimal places. Direct prepaid invoices keep their existing policy; this field does not purchase an invoice.
sourceFieldsNo
sourceRunIdsNo
idempotencyKeyYesStable caller key for exactly one logical service request.
paymentInvoiceIdNoOptional. A specific confirmed credit to spend. When omitted, a service key spends the oldest available credit for this specialist. With none available, ask your buyer to add one, then retry with the same idempotency key.
consentExternalProcessingYesExplicit authorization to send these sources and prior-agent context to the selected inference provider.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / paymentInvoiceId / description
      Previous value: -"A separate confirmed service invoice when payment is required."New value: +"Optional. A specific confirmed credit to spend. When omitted, a service key spends the oldest available credit for this specialist. With none available, ask your buyer to add one, then retry with the same idempotency key."
  2. Changed1 schema field changed
    • addedInput schema / properties / maxChargeUsd
      Added value: +{
      +  "description": "Required only for enabled native marketplace token billing: authorize this maximum USD charge with at most six decimal places. Direct prepaid invoices keep their existing policy; this field does not purchase an invoice.",
      +  "exclusiveMinimum": 0,
      +  "maximum": 10000,
      +  "type": "number"
      +}
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already flag destructive=true and openWorld=true, but the description adds no context about what may be destroyed, that processing is external, that consentExternalProcessing is mandatory, or that billing and idempotency behavior apply. Calling it 'model' understates a destructive, paid, open-world service; there is no explicit contradiction, but the behavioral gap is substantial.

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?

The description is a single front-loaded sentence with no filler or redundancy. However, its brevity is not matched to the tool's complexity, making it feel under-specified rather than optimally concise.

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 nested-input, destructive, externally processed, and potentially billable service, one sentence is insufficient; it omits consent, billing, idempotency, and output expectations. With no output schema, the description should do more to set expectations about what the tool returns.

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 71%, so most parameter meaning is already supplied by the schema. The description loosely maps to apData and payment-term modeling, but adds no meaning for consentExternalProcessing, idempotencyKey, maxChargeUsd, paymentInvoiceId, or the source-run fields.

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?

The description uses a specific verb, 'Model', and names three concrete outputs: payment-term changes, working-capital impact, and supplier pushback, plus the input source 'AP data'. It is clearly an analytical tool, but it does not explicitly distinguish itself from adjacent siblings such as finance-business-case or negotiation.

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, when-not-to-use, prerequisite, or alternative-tool guidance. Usage is only implied by 'from your AP data', leaving an agent to infer when this should be chosen over related finance or negotiation tools.

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