Skip to main content
Glama

spl_warrant_receipt

File a receipt against a Warrant after an action, settling the spend. Mutating: deducts the USD cost — pass the reservation id from spl_warrant_reserve to settle against the reservation instead of deducting twice. Use after a job completes; use spl_warrant_reserve before it runs.

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_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
usdNoUSD cost to deduct. Required for settlement.
hostNoHostname that was called.
noteNoFree-text note attached to the receipt.
actionNoAction name that ran, e.g. compress.
warrantNoWarrant token the receipt is filed against. Required.
result_sha256NoSHA-256 hex of the result body, for the audit trail.
request_sha256NoSHA-256 hex of the request body, for the audit trail.
reservation_idNoReservation id from spl_warrant_reserve, when the cost was pre-reserved. Settles against the reservation instead of deducting twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / action / description
      Added value: +"Action name that ran, e.g. compress."
    • addedInput schema / properties / host / description
      Added value: +"Hostname that was called."
    • addedInput schema / properties / note / description
      Added value: +"Free-text note attached to the receipt."
    • addedInput schema / properties / request_sha256 / description
      Added value: +"SHA-256 hex of the request body, for the audit trail."
    • addedInput schema / properties / reservation_id / description
      Added value: +"Reservation id from spl_warrant_reserve, when the cost was pre-reserved. Settles against the reservation instead of deducting twice."
    • addedInput schema / properties / result_sha256 / description
      Added value: +"SHA-256 hex of the result body, for the audit trail."
    • addedInput schema / properties / usd / description
      Added value: +"USD cost to deduct. Required for settlement."
    • addedInput schema / properties / warrant / description
      Added value: +"Warrant token the receipt is filed against. Required."
  2. Changed1 schema field changed
    • addedInput schema / properties / reservation_id
      Added value: +{
      +  "type": "string"
      +}
  3. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false and destructiveHint=false; the description adds the crucial fact that it mutates money ('deducts the USD cost') and warns about double deduction. It stops short of stating auth requirements, failure behavior, or whether a failed filing still charges, which matters for a non-idempotent billing operation.

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 short sentences, front-loaded with purpose and mutation warning, then the reservation branch, then the lifecycle ordering. No wasted words.

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 an 8-parameter billing mutation with no output schema, the description covers the key risk (double deduction) and sequencing. It does not clarify that warrant and usd are effectively mandatory despite the empty required list, leaving that to schema prose.

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 100%, so the baseline is 3. The description reinforces the reservation_id relationship to spl_warrant_reserve, but the schema already documents that same settlement semantics, and the audit-hash and note fields are left entirely to 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: filing a receipt against a Warrant that settles spend. It is clearly distinct from the sibling warrant tools (issue, reserve, release, verify) by naming the post-action settlement step.

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?

Explicit lifecycle routing: 'Use after a job completes; use spl_warrant_reserve before it runs,' plus a conditional branch ('pass the reservation id ... to settle against the reservation instead of deducting twice'). Both the when and the alternative are given.

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