Skip to main content
Glama

Quote an ad order

quote_ad
Read-onlyIdempotent

Validates an order and returns its exact price in USD with a breakdown. Creates nothing and costs nothing. An invalid order is answered with the code of the problem and the field it is in.

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": {
      "order": "<order>"
    },
    "name": "quote_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
orderYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / order / properties / pricing_model / enum
      Previous value: -[
      -  "CPC",
      -  "CPM"
      -]New value: +[
      +  "CPC",
      +  "CPM",
      +  "CPA",
      +  "REVSHARE",
      +  "CPA_REVSHARE"
      +]
    • changedInput schema / properties / order / properties / product / enum
      Previous value: -[
      -  "PTC",
      -  "Sponsored Listing",
      -  "Banner",
      -  "Native",
      -  "Paid Visits"
      -]New value: +[
      +  "PTC",
      +  "Sponsored Listing",
      +  "Banner",
      +  "Native",
      +  "Paid Visits",
      +  "Performance"
      +]
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, and non-destructive, so the description wisely spends its words elsewhere: it confirms no side effects or cost, and it discloses the failure contract (problem code plus offending field). It does not describe the shape of the price breakdown, which matters given there is no output schema.

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

Conciseness5/5

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

Three short sentences, front-loaded with the outcome, then the safety guarantee, then the error contract. Nothing is redundant and every sentence carries distinct information.

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

Completeness3/5

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

The safety and error behavior are well covered, but a tool with a deeply nested input and no output schema needs more: the return breakdown is only gestured at, and no parameter guidance exists. Adequate for deciding whether to call it, thin for actually constructing a valid order.

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?

The tool takes one nested order object with eleven sub-fields (product, bid_usd, pricing_model, budgets, targeting, image_id) and the reported schema description coverage is 0%. The description says nothing about the order structure, which fields are required, bid defaults, or how product/pricing_model interact, so it fails to compensate for the coverage gap.

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 — validates an order and returns its exact price in USD with a breakdown. Crucially it pre-empts confusion with the many write-oriented siblings (create_ad, buy_ad_credit) by declaring 'Creates nothing and costs nothing'.

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?

The 'creates nothing and costs nothing' framing clearly signals this is a safe pre-flight/dry-run step before committing to a purchase, which is the key decision an agent faces among these siblings. It stops short of explicitly naming create_ad as the follow-up, so the routing is inferred rather than stated.

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