Skip to main content
Glama

AIProcurement.club — Procurement Agents

Classify spend → purchasing exceptions

procurement_workflow__spend_to_compliance
DestructiveIdempotent

Classify a spend extract, verify that the generated CSV preserves every source row, then compare it with supplied approved suppliers, contracts and POs. Fixed sequence: classification (xspend-taxonomy, $15) → exceptions (xmaverick-detector, $15). Separate invoices per stage; completed stages remain consumed if a later stage fails. No atomic bundle charge or automatic transfer.

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": {
      "stageInputs": "<stageInputs>",
      "consentExternalProcessing": "<consentExternalProcessing>",
      "maxChargeUsd": "<maxChargeUsd>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "procurement_workflow__spend_to_compliance"
  }
}

Input Schema

NameRequiredDescriptionDefault
stageInputsYes
maxChargeUsdYesMaximum charge authorized across the recipe. Direct prepaid stages need their own supplied invoices; enabled native marketplace billing requires verified platform authorization.
approvalGatesNoPause before these paid stages until the buyer approves with procurement_workflow_execution__approve. Implies runInBackground.
idempotencyKeyYesStable caller key for exactly one logical workflow request.
runInBackgroundNoReturn an executionId at once and run the stages on the server; poll procurement_workflow_execution__get. Use for any chain that may outlast your tool-call timeout.
paymentInvoiceIdsNo
consentExternalProcessingYesRequired: authorize external processing for this workflow.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / approvalGates
      Added value: +{
      +  "description": "Pause before these paid stages until the buyer approves with procurement_workflow_execution__approve. Implies runInBackground.",
      +  "items": {
      +    "enum": [
      +      "exceptions"
      +    ],
      +    "type": "string"
      +  },
      +  "minItems": 1,
      +  "type": "array",
      +  "uniqueItems": true
      +}
    • addedInput schema / properties / runInBackground
      Added value: +{
      +  "description": "Return an executionId at once and run the stages on the server; poll procurement_workflow_execution__get. Use for any chain that may outlast your tool-call timeout.",
      +  "type": "boolean"
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / maxChargeUsd / description
      Previous value: -"Maximum charge authorized across the recipe; each paid stage still requires its own supplied invoice."New value: +"Maximum charge authorized across the recipe. Direct prepaid stages need their own supplied invoices; enabled native marketplace billing requires verified platform authorization."
  3. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true, openWorldHint=true), the description discloses that each stage is separately invoiced at $15, that completed stages stay consumed when a later stage fails, and that there is no atomic bundle charge or automatic transfer — precisely the failure and billing semantics an agent needs before committing spend. It does not address the required external-processing consent, background execution, or approval gating, which would push this to a 5.

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?

Three tight sentences front-load the action sequence, then the cost/wiring detail, with no filler. The dense semicolon-clause on invoicing and partial-failure consumption is information-dense rather than bloated, though it reads more like release notes than guidance.

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

Completeness4/5

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

For a multi-stage paid orchestrator with nested inputs and no output schema, the description covers sequencing, cost, and partial-failure behavior well. The main gap is what the caller actually receives back from each stage (classification output, exception report), which has no other place to live given there is no output schema.

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?

With 71% schema description coverage the baseline is already solid, and the description adds meaning by tying inputs to the two named stages (spend extract for classification; suppliers, contracts and POs for exceptions). However it never references approvalGates, idempotencyKey, runInBackground, or how maxChargeUsd maps to the $15-per-stage model, so several high-consequence parameters get no enrichment from the prose.

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?

The description names a specific compound verb sequence (classify a spend extract, verify the generated CSV preserves every source row, compare against approved suppliers/contracts/POs) and pins the two underlying stage tools (xspend-taxonomy, xmaverick-detector). An agent can distinguish this orchestrator from the individual stage siblings without opening any schema.

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

Usage Guidelines4/5

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

It states the fixed stage ordering and per-stage pricing, which is exactly the context needed to choose this bundled workflow over calling the stage tools directly. It stops short of an explicit 'use this instead of xspend-taxonomy when you need both stages, and there are no partial alternatives' rule, so the routing guidance is clear but not exhaustive.

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