Skip to main content
Glama

List campaigns

list_campaigns
Read-onlyIdempotent

Lists ad campaigns with profit ranges, spend, retention, payback, and SCALE/CUT/HOLD recommendations to compare performance over a chosen date window.

Instructions

List ad campaigns with their honest profit surface. call preserves the original v1 fail-closed automation behavior for multi-component rows; recommended_call is the additive SCALE/CUT/HOLD recommendation the current engine made. It is backed by envelope_lower/envelope_central/envelope_upper. Read aggregation_basis before quoting the low end: single_component_quantiles means it is a calibrated 5th percentile; marginal_endpoint_sum_no_joint_coverage means it is the sum of each component period's own low end, which is pessimistic against independence but is NOT a floor or a guarantee, so describe it as a scenario. The quantile-named profit_p05/profit_p50/profit_p95 are null unless one component supplied calibrated ones. Also includes spend, retention, and payback.

Input Schema

NameRequiredDescriptionDefault
toNoLast UTC day of an explicit window, YYYY-MM-DD, inclusive. Use instead of period; sending both is a 400.
fromNoFirst UTC day of an explicit window, YYYY-MM-DD, inclusive. Use instead of period; sending both is a 400.
limitNoRows per page, 1-200. The API defaults to 50, so a workspace with more than that needs paging.
app_idNoOptional app id to scope the result to one app.
cursorNoPass the next_cursor from the previous response to fetch the following page. Omit for the first page.
periodNoReporting window. Omit to use the endpoint's documented default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description goes well beyond them: it distinguishes `call` vs `recommended_call`, explains what backs the recommendation, and warns that quantile-named fields are null unless a calibrated component supplied them. That is substantive behavioral context, short only of return format/pagination detail.

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?

Front-loads the purpose and is dense but nearly every sentence carries field-semantics value; the trailing 'spend, retention, and payback' clause is somewhat tacked on but still informative. Jargon density (envelope_lower, marginal_endpoint_sum_no_joint_coverage) is heavy but tied to real field names.

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

Completeness4/5

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

With no output schema, the description must explain return values, and it does so thoroughly for the headline profit/envelope fields and their caveats. It omits broader response shape and pagination behavior, which the schema partially covers, so it is strong but not exhaustive.

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 all six parameters (from/to/period/limit/cursor/app_id) are already documented in the schema, including mutual-exclusion of period vs from/to. The description adds nothing about parameters, so baseline 3 applies.

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 ('List ad campaigns') plus a distinctive scope ('honest profit surface'), which is more than a tautology. It does not, however, differentiate itself from siblings like list_ads or get_campaign_decision, so the agent must infer the boundary.

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?

Offers real guidance on interpreting the return (read aggregation_basis before quoting the low end; describe as a scenario when marginal_endpoint_sum_no_joint_coverage), but gives no explicit when-to-use versus alternatives and no selection criteria against sibling listing/decision tools.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.