Skip to main content
Glama

AIProcurement.club — Procurement Agents

xSpend — Spend Taxonomy Auto-Classifier

xspend-taxonomy
DestructiveIdempotent

Classify your GL or AP export into a four-level spend taxonomy with uncertain entries flagged.

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": "xspend-taxonomy"
  }
}

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.8/5.0
Behavior2/5

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

Annotations already declare openWorldHint=true and destructiveHint=true, so the description need not restate safety, but it adds no context on the things that matter most here: buyer data is sent to an external inference provider, invocation consumes paid credits or authorizes a charge up to maxChargeUsd, and the run is idempotent per key. The single clause about flagging uncertain entries is the only behavioral value added.

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?

The single sentence is front-loaded and free of filler, which is structurally sound. However, at this length for a tool with seven parameters, nested objects, external processing, and billing, the brevity amounts to under-specification rather than economy.

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?

Given nested inputs, a 75,000-character combined limit, a cons/charge authorization field, and no output schema, an agent needs more than one sentence: what the taxonomy levels are, what 'flagged' means in the result, and the cost/consent preconditions are all absent. The definition describes the transformation but not enough of the surrounding contract to invoke it confidently.

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 coverage is a middling 71%: nested inputs (spendCsv, currency, period, taxonomy, fxEvidence), maxChargeUsd, paymentInvoiceId, idempotencyKey, and consentExternalProcessing are all documented inline, so the schema carries most of the weight. The description adds no meaning to any parameter and says nothing about the undocumented sourceFields/sourceRunIds context arrays.

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 gives a specific verb ('Classify'), a specific input ('GL or AP export'), and a concrete output shape ('four-level spend taxonomy with uncertain entries flagged'), so an agent can tell what it produces. It does not differentiate itself from sibling classifiers such as 'indirect', 'it-software', or 'xesg-scoring', leaving the distinction to be inferred.

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 guidance on when to choose this over sibling taxonomy/scoring tools, and none of the operational preconditions are mentioned: a required consentExternalProcessing flag, an idempotencyKey, or how payment/credits gate the call. The agent must discover all preconditions from the schema rather than the prose.

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