Skip to main content
Glama

Try a quote

run_quote

Run a quote against a stored project: a dry run by default, saved only with save: true. Takes project_reference, an optional version_reference (defaults to the latest live version; there is no fallback to drafts, so pass version_reference to run one — it must belong to the project and not be archived, else a tool error), and an input payload that matches the project's input schema. Runs the model and returns the quote envelope — output, result, valid, status, error, the engine's errors log, exec_time_ms, dry_run: true, a null quote_reference, and documents (the indexed project documents for the version that ran $1, [{ document_reference, title, pages }], to answer questions about cover with search_docs) — WITHOUT persisting a quotes row. With save: true the quote is stored like a POST /quotes, under the signed-in user (an engine error is stored as an error quote), and the envelope carries dry_run: false, its quote_reference, created_at and quote_url; it then shows in get_quotes and the dashboard and can be amended with amend_quote. Only save when the user asks for the quote to be kept, not to try inputs. Saving is refused in read-only mode. Call get_project first to inspect input.format and build a valid input.

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": {
      "project_reference": "<project_reference>",
      "input": "<input>"
    },
    "name": "run_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
saveNoOptional, default false (dry run, nothing stored). true stores the quote under the signed-in user and returns its quote_reference. Only when the user asks for the quote to be kept.
inputYesFlat quote input object matching the project's input.format schema. Use get_project to discover the required keys.
sourceNoOptional engine `source` label passed through to the model. Defaults to "mcp".
journey_referenceNoOptional. Any string unique to one journey (e.g. an application id), saved on the quote (with save: true). A journey is a collection of quote snapshots that build up to a complete sold (bound) journey: send the same journey_reference on every quote in it so get_journey shows how it built up; without one the quote is in no journey. Overrides a journey_reference inside input.
project_referenceYesUUID of the project to run against.
version_referenceNoOptional. Specific non-archived version UUID of this project; defaults to the latest live version (no fallback to drafts).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • removedInput schema / properties / client_ref
      Removed value: -{
      -  "description": "Optional. The caller's own reference saved on the quote (with save: true). Not unique: reuse it on every quote for one case so get_quotes with this client_ref shows its history. Overrides a client_ref inside input.",
      -  "type": "string"
      -}
    • addedInput schema / properties / journey_reference
      Added value: +{
      +  "description": "Optional. Any string unique to one journey (e.g. an application id), saved on the quote (with save: true). A journey is a collection of quote snapshots that build up to a complete sold (bound) journey: send the same journey_reference on every quote in it so get_journey shows how it built up; without one the quote is in no journey. Overrides a journey_reference inside input.",
      +  "type": "string"
      +}
    • changedInput schema / properties / project_reference / description
      Previous value: -"UUID of the project to price against."New value: +"UUID of the project to run against."
  2. Changed1 schema field changed
    • addedInput schema / properties / client_ref
      Added value: +{
      +  "description": "Optional. The caller's own reference saved on the quote (with save: true). Not unique: reuse it on every quote for one case so get_quotes with this client_ref shows its history. Overrides a client_ref inside input.",
      +  "type": "string"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / save
      Added value: +{
      +  "description": "Optional, default false (dry run, nothing stored). true stores the quote under the signed-in user and returns its quote_reference. Only when the user asks for the quote to be kept.",
      +  "type": "boolean"
      +}
  4. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only mark the tool as non-read-only and non-destructive; the description goes much further by spelling out what is written and when (no quotes row on dry run, an error quote stored on engine failure), the exact envelope differences between modes (`dry_run`, `quote_reference`, `created_at`, `quote_url`), and the read-only-mode refusal. It also discloses the version-selection rule that surfaces as a tool error when the version belongs to another project or is archived.

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

Conciseness3/5

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

All content is relevant, but it is delivered as one enormous run-on sentence with nested parentheticals, including a long return-envelope list. Front-loading the purpose and default behavior works, yet the dense middle makes it hard for an agent to scan for the save/no-save decision point.

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?

There is no output schema, so the description carries the return shape itself and does so field by field, including the `documents` array and its use with `search_docs`. Combined with mutation semantics, error handling, and prerequisite guidance, nothing an agent needs to call this correctly is missing.

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 most parameter meaning is already structured, but the description adds operational semantics the schema does not: no fallback to drafts, the version must be non-archived and belong to the project or it errors, and `journey_reference` overrides a value inside `input`. Slightly redundant in restating `save` and the input-must-match-schema point.

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 ('Run a quote against a stored project') and immediately disambiguates the two modes: a dry run by default versus persistence with `save: true`. An agent can distinguish this from `amend_quote`, `get_quote`, or `run_version_tests` 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 Guidelines5/5

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

Gives explicit when-to-use and when-not: 'Only save when the user asks for the quote to be kept, not to try inputs', plus a prerequisite ('Call get_project first to inspect `input.format`'). It also names the downstream tools affected by saving (`get_quotes`, dashboard, `amend_quote`) and a hard constraint ('Saving is refused in read-only mode').

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