Skip to main content
Glama

spl_warrant_verify

Read-onlyIdempotent

Verify a Warrant token and check it against an optional host, action, and USD cost — pass usd to enforce the spend cap BEFORE the job runs. Read-only; verifies locally and changes nothing. Returns valid true/false with the Warrant or a reason. Use before running a job under a Warrant; use spl_warrant_issue to mint one.

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

Input Schema

NameRequiredDescriptionDefault
usdNoExpected USD cost of the job; checked against the remaining spend cap when given.
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 string to verify. 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: +"Expected USD cost of the job; checked against the remaining spend cap when given."
    • addedInput schema / properties / warrant / description
      Added value: +"Warrant token string to verify. Required."
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered; the description still adds real context by saying verification happens locally, that it changes nothing, and the shape of the result ('valid true/false with the Warrant or a reason'). It does not describe rate limits or what exactly is checked when multiple constraints are supplied, which keeps it just below the top mark.

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?

Four tight clauses, front-loaded with the core action, then behavior, then return shape, then usage routing. Every sentence carries distinct information and none could be deleted without losing something an agent needs.

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

Completeness5/5

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

With no output schema, the description supplies the return shape (valid boolean plus the Warrant or a reason) and the failure semantics implied by that. Together with annotations and a fully documented schema, an agent has everything needed to call this correctly in the pre-job verification flow.

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 each of the four parameters is already documented in the input schema. The description reinforces that host/action/usd are optional and that usd is checked against the remaining spend cap before execution, but adds little beyond what the schema already states. Baseline 3 applies when the schema does the heavy lifting.

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 ('Verify a Warrant token') plus the optional checks it performs (host, action, USD cost), and explicitly distinguishes itself from the sibling that mints tokens ('use spl_warrant_issue to mint one'). An agent can tell this apart from the other spl_warrant_* tools 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 an explicit when-to-use ('Use before running a job under a Warrant'), a concrete motivation ('pass usd to enforce the spend cap BEFORE the job runs'), and names the alternative tool for the opposite need. Nothing about selection is left to inference.

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