Skip to main content
Glama

spl_warrant_reserve

Reserve the expected cost against a Warrant BEFORE the job runs (pre-spend cap enforcement). Mutating: holds funds and returns a reservation id. File the receipt with that id to settle without double-deducting, or release it if the job never runs. Use after verify and before the job; use spl_warrant_receipt to settle, spl_warrant_release to refund.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "spl_warrant_reserve"
  }
}

Input Schema

NameRequiredDescriptionDefault
usdNoUSD cost to hold. Required for the reservation.
hostNoHostname the job will call; checked against the Warrant's allow list when given.
actionNoAction name the job will perform; checked against the Warrant's allowed actions when given.
warrantNoWarrant token to reserve against. Required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / action / description
      Added value: +"Action name the job will perform; checked against the Warrant's allowed actions when given."
    • addedInput schema / properties / host / description
      Added value: +"Hostname the job will call; checked against the Warrant's allow list when given."
    • addedInput schema / properties / usd / description
      Added value: +"USD cost to hold. Required for the reservation."
    • addedInput schema / properties / warrant / description
      Added value: +"Warrant token to reserve against. Required."
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnly=false/idempotent=false/destructive=false; the description adds the substantive behavior an agent actually needs: funds are held, a reservation id is returned, and failing to file the receipt risks double-deducting. The hold-settle-release lifecycle and its failure consequence go well beyond the annotation flags.

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

Conciseness5/5

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

Three tight sentences, front-loaded with the mutation warning and the pre-spend cap purpose, then the settlement path, then routing to siblings. No filler and nothing buried.

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 mutating tool with no output schema, the description supplies the return value (reservation id) and the full follow-up path, which is the critical missing piece. Minor gaps remain: no mention of hold expiry, insufficient-funds behavior, or whether repeated calls create multiple holds (relevant given idempotentHint=false).

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%, so the schema already explains usd, host, action, and warrant, including the allow-list checking. The description adds no per-parameter syntax, defaulting, or unit guidance beyond that, so baseline 3 applies.

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 ('Reserve the expected cost against a Warrant') plus the timing constraint ('BEFORE the job runs') and the mechanism ('pre-spend cap enforcement'). It is immediately distinguishable from the sibling settlement tools it names, spl_warrant_receipt and spl_warrant_release, 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 Guidelines5/5

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

Gives explicit sequencing ('Use after verify and before the job') and names the two alternatives with the condition that selects each (receipt to settle, release to refund). The when-to-use and when-to-use-something-else are both resolved in one sentence.

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