Skip to main content
Glama

spl_quote

Read-onlyIdempotent

Quote a metered PCC job before running it: price in USD for the given byte count, product, and operation. Read-only and free; returns the quote without charging or reserving anything. First 1 GB free once per IP, then $0.25/GB of input, $1 card minimum. Use before spl_compress on large inputs; use spl_catalog for standing SKUs.

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

Input Schema

NameRequiredDescriptionDefault
opNoOperation: compress, decompress, or roundtrip. Defaults to compress.
bytesNoPayload bytes. First 1 GB free once per IP.
productNoProduct to price: auto, zrw, blackjack, shard-zip, shard-tsdb, or slid-phi. Defaults to auto.
dataClassNoData class of the payload (e.g. text, logs, json) when known; used to pick the best product. Defaults to unknown.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / dataClass / description
      Added value: +"Data class of the payload (e.g. text, logs, json) when known; used to pick the best product. Defaults to unknown."
    • changedInput schema / properties / op / description
      Previous value: -"compress | decompress | roundtrip"New value: +"Operation: compress, decompress, or roundtrip. Defaults to compress."
    • changedInput schema / properties / product / description
      Previous value: -"auto | zrw | blackjack | shard-zip | shard-tsdb | slid-phi"New value: +"Product to price: auto, zrw, blackjack, shard-zip, shard-tsdb, or slid-phi. Defaults to auto."
  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 behavior, but the description adds material context beyond them: the call is free, charges nothing, reserves nothing, and the pricing model is first 1 GB free per IP then $0.25/GB with a $1 card minimum. It stops short of describing the shape of the returned quote, which is the only meaningful gap.

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?

The description is front-loaded with purpose, then behavior, then alternatives, and every sentence carries useful information. The pricing clause is dense but relevant; nothing is filler.

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 zero-required-parameter, no-output-schema quoting tool, it covers what the tool does, its cost model, and when to call it versus siblings. The main omission is what the returned quote contains, which would help an agent chain it into spl_compress.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so 3 is the baseline, but the description adds real meaning to 'bytes' by tying it to the free-tier and per-GB pricing, and it clarifies that the product choice affects the price. It does not add much on 'op' or 'dataClass' beyond 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?

The description opens with a specific verb+resource+scope: 'Quote a metered PCC job before running it: price in USD for the given byte count, product, and operation.' It clearly distinguishes itself from the sibling spl_compress (which actually runs jobs) and spl_catalog (standing SKUs).

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?

It gives explicit routing: 'Use before spl_compress on large inputs; use spl_catalog for standing SKUs.' This names both alternatives and the conditions that select them, so no inference is needed.

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