Skip to main content
Glama

Quote an order

quote_order
Read-onlyIdempotent

Creates a machine quote for a count: the records you would receive after removing ones already held and suppressed, the credits and GBP price, the licence, the warranty and any blockers. The quote_id lasts 24 hours and is bound to the dataset version; it is not a human sales quote, which is a 14 day PDF made in the app. Free and needs no account, and nothing is charged. Show the credits and price to the user, then call create_order with the quote_id. Lawful basis is UK GDPR Article 6(1)(f) legitimate interests; email audiences include corporate subscribers only by default (PECR), so sole traders and ordinary partnerships are left out unless the toggle is changed.

Input Schema

NameRequiredDescriptionDefault
limitNoRecords to buy; left out, the whole count.
licenceNomulti_use_12m (12 month multi-use, every plan) or outright (1.8 credits a record, proposed).multi_use_12m
count_idYesA count id from POST /v1/counts or count_audience. Either case is accepted; responses use upper case.
field_setYesA field set id from GET /v1/field-sets, such as standard.
connection_idNoThe CRM connection to check, only with dedupe_against crm or previous_orders_and_crm.
dedupe_againstNoRemove records you already hold: from earlier orders, from a connected CRM, or both. Default previous_orders when signed in. crm and previous_orders_and_crm need connection_id.previous_orders

Output Schema

NameRequiredDescriptionDefault
idYesFormat: a quote id: qte_ followed by a 26 character ULID in upper case Crockford base32, such as qte_01JB4M2R6T1Y5W8ZAK8Q2V7XN3.
kindYes
datasetNoThe dataset an audience draws from. uk_contacts is live; ie_contacts and global_contacts are listed but not yet served.
licenceYes
recordsYesRecords after overlap and suppression; what you would receive.
removedYesRecords left out and never charged.
blockersYes
count_idYesThe count the quote was priced from.
purchaseYes
warrantyYes
field_setNo
signatureYes
created_atNo
expires_atYes24 hours after creation.
gbp_ex_vatYesWhat credits_required cost bought the cheapest way, at the per-contact scale or with credit packs, in GBP, plus VAT (VAT is not included in this figure). The same for every caller; purchase says what this caller needs to buy.
balance_afterYescredits_available less credits_required; negative means a top-up is needed; null when signed out.
dataset_versionYesThe immutable weekly build a count is bound to, such as 2026-W39. The last 52 stay queryable.
organisation_idYesThe organisation the quote belongs to; create_order settles it only there. null for a quote made without an account, which the first organisation to confirm it takes.
credits_requiredYesrecords times credits_per_record (creditsFor).
credits_availableYesYour balance; null when signed out.
credits_per_recordYes1 for a complete UK record; 1.8 outright (proposed).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedOutput schema / $defs / Purchase / properties / gbp_ex_vat / description
      Previous value: -"What the cheapest option costs, excluding VAT; 0 when nothing needs buying."New value: +"What the cheapest option costs in GBP, plus VAT (VAT is not included in this figure); 0 when nothing needs buying."
    • changedOutput schema / $defs / PurchaseLine / properties / gbp_ex_vat / description
      Previous value: -"Pounds sterling excluding VAT, to two decimal places."New value: +"Pounds sterling to two decimal places, plus VAT (VAT is not included in this figure)."
    • changedOutput schema / $defs / PurchaseOption / properties / gbp_ex_vat / description
      Previous value: -"Pounds sterling excluding VAT, to two decimal places."New value: +"Pounds sterling to two decimal places, plus VAT (VAT is not included in this figure)."
    • changedOutput schema / properties / gbp_ex_vat / description
      Previous value: -"What credits_required cost bought the cheapest way, at the per-contact scale or with credit packs, excluding VAT. The same for every caller; purchase says what this caller needs to buy."New value: +"What credits_required cost bought the cheapest way, at the per-contact scale or with credit packs, in GBP, plus VAT (VAT is not included in this figure). The same for every caller; purchase says what this caller needs to buy."
    • addedOutput schema / properties / removed / properties / base
      Added value: +{
      +  "description": "Emailable records before suppression lists and held records. base less suppressed, already_held and duplicates is what is available; records is that, or the limit when lower. Each figure is rounded to 5 for anonymous and trial callers, so the rounded figures may not add up exactly.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / removed / properties / duplicates
      Added value: +{
      +  "description": "Records left after suppression and held records that repeat another: the same email address twice, or under dedupe a second contact at the same company or site. Delivered and charged once.",
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the 24-hour quote_id lifetime, binding to the dataset version, zero charge, no account requirement, and the PECR default that excludes sole traders and ordinary partnerships from email audiences. These are material behaviors an agent could not infer from readOnlyHint/idempotentHint alone. It stops short of describing the returned quote fields, but an output schema exists.

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?

Purpose and contents are front-loaded, and each later sentence carries distinct payload (human-quote disambiguation, quote-then-order workflow, legal basis and PECR default). The final compliance sentence is dense and slightly tangential to invocation, keeping it below a 5, but nothing is redundant.

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?

Given an output schema and rich annotations, the description supplies everything needed: what the quote is, what it costs, how long it lives, what to do next, and the lawful-basis context behind default audience composition. Nothing an agent needs in order to call it correctly appears to be missing.

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 schema already documents limit, licence, dedupe_against, connection_id and their enums in detail. The description reinforces the semantics of deduplication ('records you would receive after removing ones already held and suppressed') and mentions the licence dimension, but adds no syntax or constraint detail beyond the schema. 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?

Starts with a specific verb and resource ('Creates a machine quote for a count') and immediately enumerates what the quote contains (records, credits, GBP price, licence, warranty, blockers). It explicitly distinguishes itself from a human sales quote, a 14 day PDF made in the app, so an agent can tell the two apart 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 next-action workflow: 'Show the credits and price to the user, then call create_order with the quote_id', naming the sibling tool to hand off to. It also states the negative case (it is not a human sales quote), so both when-to-use and when-not-to-use are covered.

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