Skip to main content
Glama

TrueCrime.News Case Archive

Buy a KrimiNyt ad product (AdCP)

buy_products
Idempotent

AdCP buy_products: place a fixed-price order for a product from list_products. KrimiNyt stores the order and replies status "submitted" with a task_id; a human reviews it within 3 working days. Then send the article with sync_creatives and track it with get_media_buys. Payment by invoice after publication.

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": {
      "idempotency_key": "<idempotency_key>",
      "feed_version": "<feed_version>",
      "purchases": "<purchases>",
      "start_time": "<start_time>",
      "end_time": "<end_time>"
    },
    "name": "buy_products"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNo
brandNo
accountNo
end_timeYes
purchasesYes
start_timeYes
feed_versionYes
total_budgetNo
idempotency_keyYes
pricing_versionNo
purchase_order_refNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior5/5

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

Annotations only declare readOnly=false, idempotent=true, destructive=false, openWorld=false; the description goes well beyond that by disclosing that the order is stored with status 'submitted' and a task_id, that a human reviews it within 3 working days, and that payment is invoiced after publication. Those are exactly the operational facts an agent needs before committing a purchase.

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?

Four dense sentences, front-loaded with the action, then consequences, then next steps and payment terms. The 'AdCP buy_products:' prefix partially restates the tool name, but overall there is little wasted wording.

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?

This is a complex, high-stakes mutation with nested objects, 11 parameters, and no output schema, so the description should carry the structural load. It covers the async review and follow-up workflow well but leaves the entire request body (feed_version, idempotency_key, budget/currency, creative assignment) undocumented, which is a significant gap for correct invocation.

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 0% across 11 parameters (5 required), including deeply nested 'purchases', 'account.brand', and 'total_budget' objects, yet the description explains none of them. It never mentions idempotency_key, feed_version, start_time/end_time, the maxItems=5 purchase cap, or pricing_option_id, so the caller gets no meaning beyond bare field names and types.

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?

States a specific verb and resource — 'place a fixed-price order for a product' — and names list_products as the source of valid products, which lets an agent place it in the catalog-to-order flow. It does not distinguish itself from the sibling create_media_buy, which presumably also creates a buy, so the boundary is left to inference.

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 an explicit three-step sequence: pick a product via list_products, order here, then send the article with sync_creatives and track with get_media_buys. There are no explicit exclusions (e.g. when to prefer create_media_buy or update_media_buy), but the surrounding workflow is unambiguous.

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