Skip to main content
Glama

quote

Get a dry-run price quote for OCR of one document before submitting a job. Returns a quote_id, page count, and a one-sentence price to confirm with the human.

Instructions

Dry run: nothing runs, nothing is billed. Returns quote_id, the page count and say_to_human, one sentence with the price: you are asked to show it to the human word for word and get a yes before submit_job. pipeline is name@version from list_pipelines; if the human named none, leave it out: the default (fastest and cheapest available) is used and the sentence names it. The quote_id is for one document, one pipeline and one job.

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": {
      "file_path": "<file_path>"
    },
    "name": "quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
dpiNorender resolution for PDF pages; leave out for the default
pipelineNoname@version from list_pipelines; leave out if the human named none
file_pathYesabsolute path of one PDF, PNG, JPEG or TIFF file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.1

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it states nothing executes, nothing is billed, enumerates the return fields, and warns that a quote_id is scoped to one document, one pipeline and one job (so it is not reusable). It does not cover quote expiry, error conditions, or how dpi affects price, leaving some behavioral gaps.

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?

Front-loaded with the dry-run guarantee and the return shape, and every clause carries information. The middle section is a dense run-on with an awkward mid-sentence line break, which slightly hurts readability but wastes little content.

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?

No output schema exists, and the description compensates by enumerating the three returned values and their purpose. Given a simple 3-parameter quote tool, the main missing piece is the lifecycle of the quote (expiry, whether a quote can be re-submitted after failure).

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 the baseline is 3, but the description adds real semantics for pipeline: it is name@version sourced from list_pipelines, may be omitted when the human named none, and the default is the fastest and cheapest option and is named in the sentence. dpi and file_path are left entirely to the schema, which is acceptable given its descriptions.

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?

Starts with a specific verb+mode combination ('Dry run: nothing runs, nothing is billed') and names exactly what comes back (quote_id, page count, say_to_human with the price). It also implicitly distinguishes itself from submit_job by framing itself as the pre-submission step, so an agent can tell the two apart without opening a schema.

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 a clear directive: show say_to_human to the human word-for-word and get a yes before calling submit_job, plus a fallback rule for pipeline when the human named none. It lacks an explicit 'when not to use' clause (e.g. re-quoting the same document or quoting after approval), which keeps it short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.