Skip to main content
Glama

UniVend: master vendor for AI agents

Withdraw a request

withdraw_request
DestructiveIdempotent

Withdraws a purchase request of the client before UniVend has accepted it (General Terms, clause 37). A request UniVend has already accepted or bought cannot be withdrawn here. Requires an agent authorised by a signed-in client. Consequential: may create a commitment for the client; send an idempotency_key.

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": {
      "order_id": "<order_id>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "withdraw_request"
  }
}

Input Schema

NameRequiredDescriptionDefault
langNoLanguage of the answer: bg (Bulgarian) or en (English).
reasonNo
order_idYes
idempotency_keyYesA unique key you choose for this action (8-128 chars: letters, digits, . _ : -). Send the same key when you retry the same action; a new action needs a new key.

Output Schema

NameRequiredDescriptionDefault
stateYes
messageYes
order_idYes
referenceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the description's best contributions are the auth prerequisite ("Requires an agent authorised by a signed-in client") and the consequence ("may create a commitment for the client"), neither of which is in structured data. The explicit instruction to send an idempotency_key largely restates the annotation and schema, and no rollback/irreversibility detail is given beyond "consequential".

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 with the core action and precondition front-loaded; every clause is functional. The trailing "send an idempotency_key" sentence is slightly redundant with the annotation and schema, costing a point.

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?

An output schema exists, so return values need no explanation, and the description covers the authorization requirement, the precondition, and the side effect. The remaining gap is the unannotated `reason` parameter and the request-vs-order_id naming mismatch.

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 50% schema description coverage, the description should compensate for the undocumented `reason` and `order_id` parameters, but it explains neither — notably it never clarifies why the tool operates on a "request" while the parameter is named `order_id`. Its only parameter reference (idempotency_key) duplicates guidance already present in the schema.

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?

States a specific verb and resource ("Withdraws a purchase request of the client") plus a sharp scope boundary ("before UniVend has accepted it"). No sibling tool overlaps this action, and the pre-acceptance condition makes the tool's remit unambiguous to an agent.

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?

Gives an explicit when-to-use condition (before acceptance) and a when-not-to clause (already accepted or bought cannot be withdrawn here). It stops short of naming what the agent should do instead in the rejected case, so it lacks the alternative-routing that a 5 requires.

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