Skip to main content
Glama

Sort a campaign: one day, it lasts, or ignore

sort_campaign
Idempotent

Records the owner's answer for one campaign of list_campaigns_to_sort: "day" (one day: a marker) puts one marker on the curve, on the day of the campaign's first visit, under the name the owner gives ("Facebook ad, Paris workshop"); "lasts" (it lasts: a series) does the same and makes the campaign a continuous series read week by week (an ad that runs, a tool that puts one campaign name on every post); "ignore" keeps it off the curve for good. "show" is the same as "day". Only call it with the owner's explicit answer for that campaign; never decide for them, and never choose the name yourself.

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": {
      "site": "<site>",
      "campaign": "<campaign>",
      "decision": "<decision>"
    },
    "name": "sort_campaign"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoWith "day" or "lasts": the name the owner wants, in their words. Default: the campaign's own name.
siteYesThe site: its domain (example.com), its id, or its public id. See list_sites.
campaignYesThe campaign's id, from list_campaigns_to_sort.
decisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / decision / enum
      Previous value: -[
      -  "show",
      -  "ignore"
      -]New value: +[
      +  "day",
      +  "lasts",
      +  "ignore",
      +  "show"
      +]
    • changedInput schema / properties / name / description
      Previous value: -"With \"show\": the name the owner wants on the curve, in their words. Default: the campaign's own name."New value: +"With \"day\" or \"lasts\": the name the owner wants, in their words. Default: the campaign's own name."
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

The annotations say this is not read-only, is idempotent, and is non-destructive. The description goes well beyond that: it states the concrete side effects of each decision ('puts one marker on the curve', 'makes the campaign a continuous series read week by week', 'keeps it off the curve for good'), including permanence. It never says what a repeated call does, even though idempotentHint is set, and it never says what is returned.

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?

There is no filler, but the effect descriptions are packed into one long semicolon-chained sentence with nested parentheticals and quoted examples. The purpose is stated up front, but the per-value semantics, the most operationally important content, are buried mid-sentence and are hard to scan.

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?

The tool has four parameters, no nested objects, and no output schema, so the description does not need to explain return values. It covers decision semantics and the name default well enough to call the tool correctly. It is silent on permissions and on the effect of re-calling for the same campaign, which would round it off.

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?

Schema coverage is 75%, and the gap is exactly the 'decision' enum, whose values get no per-value description in the schema. The description fills that gap fully by explaining what each of the four values means and by noting that 'show' is equivalent to 'day'. 'site' and 'campaign' still rely on the schema's own descriptions, so the description does not compensate for them.

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?

The definition states a specific verb, 'records the owner's answer', applied to a specific resource, 'one campaign of list_campaigns_to_sort'. It then defines each of the four outcomes of that record ('day', 'lasts', 'ignore', 'show' is the same as 'day'), so an agent knows exactly what this tool does and how it differs from list_campaigns_to_sort without reading any schema.

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

Usage Guidelines5/5

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

The description states an explicit precondition for use: 'Only call it with the owner's explicit answer for that campaign', and an explicit prohibition: 'never decide for them'. That is both a when-to-use and a when-not-to-use rule, plus a deployment constraint ('never choose the name yourself') that prevents a plausible failure mode.

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