Skip to main content
Glama

Products rising and falling

get_product_momentum
Read-onlyIdempotent

Products selling better and worse: ONLINE sales per product (line revenue without VAT, net before returns, by product name) over the last 28 complete days against the 28 before, with the Meta and Google campaigns spending on each one. rising: at least 8 units and up at least 50% (isNew when it sold under 3 units before: no growth ratio). falling: at least 10 units before and down at least 40%. Each side is ordered by the euro change and capped at 10. Per product: unitsNow/unitsBefore, salesNow/salesBefore, growth, adSpendNow/adSpendBefore (its spend across campaigns), campaigns (source, name, or null with the id when no synced campaign carries it: say 'no name', never invent one; spendNow/spendBefore on THIS product; claimedNow, the platform's claimed value on it; share, this product's part of the campaign's product-split spend), moreCampaigns. signals: spend_holds (falling while its campaigns spend as much or more: a candidate to move budget), no_ad_support (rising with under 20 of ad spend: a candidate to push), sold_out (every variant tracked and none left: the fall may be stock, not demand). platforms.reach is the share of each platform's spend it split by product; under 1 say part of the spend is not split, so campaigns may also reach products not listed. The platforms split spend per CAMPAIGN, never per ad: say so if asked about ads. This is the Productos que suben y que caen card on Marketing › Intelligence. Nuira never changes the ad accounts.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_product_momentum"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already establish readOnly/idempotent/non-destructive, and the description goes further with real behavioral context: it is a read-only card that never changes ad accounts, spend is split per CAMPAIGN and never per ad, and missing campaign names must be reported as 'no name' rather than invented. The platforms.reach caveat (under 1 means part of spend is unsplit, so campaigns may reach unlisted products) and the sold_out warning against reading stock-outs as demand loss are exactly the kind of interpretive guardrails annotations cannot carry. Slightly capped because the return contract is documented inline rather than structured, but that is a schema-shape issue, not a transparency gap.

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?

It is front-loaded correctly, opening with the metric and comparison window before any field detail, and every clause carries information rather than filler. But it is delivered as one dense, run-on paragraph mixing methodology, thresholds, field definitions, and caveats, which makes it hard to scan and raises the risk an agent misses a rule buried mid-sentence (the 'never invent one' and per-campaign-vs-per-ad constraints in particular).

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?

With no output schema and no parameters, the description must carry the entire return contract, and it does: it defines every documented field group, the ordering and cap (euro change, top 10 per side), the three signals with their meanings, and the platforms.reach interpretation. An agent has enough to call it and to report results correctly.

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?

Zero parameters, so there is nothing to disambiguate and the baseline applies. The description instead spends its budget documenting the return fields (unitsNow/unitsBefore, growth, adSpendNow/adSpendBefore, campaigns.share, claimedNow, moreCampaigns), which is the useful place for detail here.

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 concrete analysis: ONLINE net line revenue per product over the last 28 complete days versus the prior 28, with explicit rising (>=8 units, +50%) and falling (>=10 units before, -40%) thresholds. That quantitative definition makes it separable from adjacent product tools without inspecting the schema, and it names its own card placement (Marketing › Intelligence).

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 use case is implied by the metric definition and by the signals section (spend_holds = candidate to move budget, no_ad_support = candidate to push, sold_out = stock, not demand), which tells the agent what decision the output supports. However, there is no explicit when-to-use versus when-not framing and no named alternative among the many sibling product tools (get_product_trends, get_top_products, get_product_performance), leaving routing to inference.

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