Skip to main content
Glama

Trillboards Campaign Planner

Prepare campaign booking

prepare_campaign_booking
Read-onlyIdempotent

Read the exact current campaign selections, total, currency and creative readiness for the buyer to review before payment.

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": {
      "advertisementId": "<advertisementId>"
    },
    "name": "prepare_campaign_booking"
  }
}

Input Schema

NameRequiredDescriptionDefault
quoteIdNo
quoteIdsNo
bookingIdsNo
advertisementIdYesNative campaign ID returned by save_campaign_draft.
providerLineIdsNo

Output Schema

NameRequiredDescriptionDefault
kindYes
adIDsNo
amountNoMajor units of the returned buyer presentment currency.
currencyYes
preparedYes
amountUsdNoUSD, in major units.
taxAmountYesMajor units of the returned buyer presentment currency.
bookingIdsYes
amountMinorYesExact minor units of the returned currency. Reuse as reviewedAmount.
subtotalUsdNoUSD, in major units.
bookingSourceNo
providerMediaNo
advertisementIdYes
providerLineIdsYes
reviewedSelectionNo
reviewedSubtotalUsdYesUSD major units reviewed for native checkout. For a screen cart: reviewed screen subtotal, with additional providerMedia separately listed. For provider-only checkout: selected provider total.
advertisementMongoIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed21 schema fields changed
    • addedOutput schema / properties / adIDs
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • removedOutput schema / properties / advertisementId / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 200,
      -    "minLength": 1,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / advertisementId / type
      Added value: +"string"
    • addedOutput schema / properties / advertisementMongoId
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / amount
      Added value: +{
      +  "description": "Major units of the returned buyer presentment currency.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / amountMinor
      Added value: +{
      +  "description": "Exact minor units of the returned currency. Reuse as reviewedAmount.",
      +  "type": "integer"
      +}
    • addedOutput schema / properties / amountUsd
      Added value: +{
      +  "description": "USD, in major units.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / bookingIds
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / bookingSource
      Added value: +{
      +  "type": "string"
      +}
    • removedOutput schema / properties / checkoutUrl
      Removed value: -{
      -  "format": "uri",
      -  "type": "string"
      -}
    • addedOutput schema / properties / currency
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / kind / const
      Added value: +"proposal"
    • removedOutput schema / properties / kind / enum
      Removed value: -[
      -  "inventory",
      -  "plan",
      -  "campaign",
      -  "proposal",
      -  "checkout",
      -  "delivery"
      -]
    • addedOutput schema / properties / prepared
      Added value: +{
      +  "const": true,
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / providerLineIds
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / providerMedia
      Added value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "amountUsd": {
      +      "description": "USD, in major units.",
      +      "type": "number"
      +    },
      +    "lineCount": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "amountUsd",
      +    "lineCount"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / reviewedSelection
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / reviewedSubtotalUsd
      Added value: +{
      +  "description": "USD major units reviewed for native checkout. For a screen cart: reviewed screen subtotal, with additional providerMedia separately listed. For provider-only checkout: selected provider total.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / subtotalUsd
      Added value: +{
      +  "description": "USD, in major units.",
      +  "type": "number"
      +}
    • addedOutput schema / properties / taxAmount
      Added value: +{
      +  "description": "Major units of the returned buyer presentment currency.",
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "kind"
      -]New value: +[
      +  "kind",
      +  "advertisementId",
      +  "advertisementMongoId",
      +  "bookingIds",
      +  "providerLineIds",
      +  "prepared",
      +  "amountMinor",
      +  "currency",
      +  "reviewedSubtotalUsd",
      +  "taxAmount"
      +]
  2. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds that the returned data is the 'exact current' state including currency and creative readiness, which hints at freshness and readiness checks. It says nothing about failure modes, what happens when creative is not ready, or how expired quotes are handled.

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?

A single sentence with no filler, and the purpose is front-loaded with the output values listed first. Slightly more structure (e.g. separating inputs from returned values) would help, but nothing is wasted.

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

Completeness2/5

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

With five parameters, nested objects, and only 20% schema coverage, the description should clarify which identifiers select which quotes or bookings. It does not, and while an output schema exists so return values needn't be explained, the ambiguity over quoteId vs quoteIds vs bookingIds vs providerLineIds is a significant gap for a booking-preparation tool.

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

Parameters2/5

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

Schema description coverage is only 20%, with just advertisementId documented ('returned by save_campaign_draft'). The description mentions 'campaign selections' vaguely but never explains the roles of quoteId, the nested quoteIds.owned/partner pair, bookingIds, or providerLineIds, so it fails to compensate for the coverage gap on a five-parameter tool with nested objects.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (read) and specific outputs (current campaign selections, total, currency, creative readiness), and its 'before payment' framing distinguishes it from the checkout/payment step. It does not explicitly name a sibling such as create_campaign_checkout or preview_campaign_plan, so it stops short of full differentiation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

The phrase 'for the buyer to review before payment' implies the point in the flow where this tool belongs, which is useful sequencing guidance. However, there is no explicit statement of when NOT to use it or which sibling to call instead (e.g. preview_campaign_plan vs create_campaign_checkout), leaving the agent to infer the boundary.

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