Skip to main content
Glama

List your campaigns

list_campaigns
Read-onlyIdempotent

Lists campaigns created by this account with each campaign's id, job reference, brand, name, status and delivered images. The way to find the campaign job reference for get_campaign_outputs and to recover when a response was lost. Returns at most 50 (default 20) as a recent list without a cursor, not full campaign history. Archived campaigns appear only with include_archived: true. Teammates’ campaigns are not listed.

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": "list_campaigns"
  }
}

Input Schema

NameRequiredDescriptionDefault
brand_idNoOptional brand id from list_brands; lists only that brand's campaigns.
max_resultsNoCampaigns to return, 1 to 50 (default 20).
response_formatNoOutput format: text (default) or json. table is not available for this tool.
include_archivedNoAlso list campaigns the person archived. Off by default.

Output Schema

NameRequiredDescriptionDefault
campaignsNoRecent campaigns created by your account.
bounded_recent_listNobounded recent list value in this response.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / brand_id / description
      Previous value: -"Brand reference from list_brands (e.g. the returned brand id)."New value: +"Optional brand id from list_brands; lists only that brand's campaigns."
    • changedInput schema / properties / max_results / description
      Previous value: -"Maximum number of results in this bounded response; constrained by the field maximum."New value: +"Campaigns to return, 1 to 50 (default 20)."
    • changedInput schema / properties / response_format / description
      Previous value: -"Output format: text or json for capped research examples; table is available only for tracked rival rows."New value: +"Output format: text (default) or json. table is not available for this tool."
  2. Changed1 schema field changed
    • changedOutput schema / properties / campaigns / anyOf
      Previous value: -[
      -  {
      -    "description": "Recent campaigns created by your account.",
      -    "items": {
      -      "additionalProperties": false,
      -      "description": "Recent campaigns created by your account.",
      -      "properties": {
      -        "_references": {
      -          "anyOf": [
      -            {
      -              "additionalProperties": false,
      -              "description": "Opaque action references accepted by subsequent tool calls.",
      -              "properties": {
      -                "campaign_job_id": {
      -                  "anyOf": [
      -                    {
      -                      "description": "campaign job id value in this response.",
      -                      "type": "string"
      -                    },
      -                    {
      -                      "type": "null"
      -                    }
      -                  ],
      -                  "description": "campaign job id value in this response."
      -                }
      -              },
      -              "type": "object"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "Opaque action references accepted by subsequent tool calls."
      -        },
      -        "brand_id": {
      -          "anyOf": [
      -            {
      -              "description": "Reference for the selected brand.",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "Reference for the selected brand."
      -        },
      -        "campaign_id": {
      -          "anyOf": [
      -            {
      -              "description": "campaign id value in this response.",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "campaign id value in this response."
      -        },
      -        "created_at_ms": {
      -          "anyOf": [
      -            {
      -              "description": "created at ms value in this response.",
      -              "type": "number"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "created at ms value in this response."
      -        },
      -        "name": {
      -          "anyOf": [
      -            {
      -              "description": "name value in this response.",
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "name value in this response."
      -        },
      -        "results": {
      -          "anyOf": [
      -            {
      -              "description": "Completed outputs currently available for this job or campaign.",
      -              "items": {
      -                "additionalProperties": false,
      -                "description": "Completed outputs currently available for this job or campaign.",
      -                "properties": {
      -                  "_references": {
      -                    "anyOf": [
      -                      {
      -                        "additionalProperties": false,
      -                        "description": "Opaque action references accepted by subsequent tool calls.",
      -                        "properties": {
      -                          "generation_job_id": {
      -                            "anyOf": [
      -                              {
      -                                "description": "generation job id value in this response.",
      -                                "type": "string"
      -                              },
      -                              {
      -                                "type": "null"
      -                              }
      -                            ],
      -                            "description": "generation job id value in this response."
      -                          }
      -                        },
      -                        "type": "object"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ],
      -                    "description": "Opaque action references accepted by subsequent tool calls."
      -                  },
      -                  "aspect_ratio": {
      -                    "anyOf": [
      -                      {
      -                        "description": "aspect ratio value in this response.",
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ],
      -                    "description": "aspect ratio value in this response."
      -                  },
      -                  "image_url": {
      -                    "anyOf": [
      -                      {
      -                        "description": "image url value in this response.",
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ],
      -                    "description": "image url value in this response."
      -                  },
      -                  "source_ad_id": {
      -                    "anyOf": [
      -                      {
      -                        "description": "source ad id value in this response.",
      -                        "type": "string"
      -                      },
      -                      {
      -                        "type": "null"
      -                      }
      -                    ],
      -                    "description": "source ad id value in this response."
      -                  }
      -                },
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "Completed outputs currently available for this job or campaign."
      -        },
      -        "status": {
      -          "anyOf": [
      -            {
      -              "default": "processing",
      -              "description": "Current progress or delivery state.",
      -              "enum": [
      -                "queued",
      -                "running",
      -                "processing",
      -                "completed",
      -                "complete",
      -                "failed",
      -                "cancelled",
      -                "pending",
      -                "ready",
      -                "started",
      -                "already_started",
      -                "already_done",
      -                "in_progress",
      -                "active",
      -                "paused",
      -                "draft",
      -                "kept",
      -                "discarded",
      -                "delivered",
      -                "expired",
      -                "reserved",
      -                "settled",
      -                "released",
      -                "held",
      -                "consumed",
      -                "generating",
      -                "unknown"
      -              ],
      -              "type": "string"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "Current progress or delivery state."
      -        },
      -        "updated_at_ms": {
      -          "anyOf": [
      -            {
      -              "description": "updated at ms value in this response.",
      -              "type": "number"
      -            },
      -            {
      -              "type": "null"
      -            }
      -          ],
      -          "description": "updated at ms value in this response."
      -        }
      -      },
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "description": "Recent campaigns created by your account.",
      +    "items": {
      +      "additionalProperties": false,
      +      "description": "Recent campaigns created by your account.",
      +      "properties": {
      +        "_references": {
      +          "anyOf": [
      +            {
      +              "additionalProperties": false,
      +              "description": "Opaque action references accepted by subsequent tool calls.",
      +              "properties": {
      +                "campaign_job_id": {
      +                  "anyOf": [
      +                    {
      +                      "description": "campaign job id value in this response.",
      +                      "type": "string"
      +                    },
      +                    {
      +                      "type": "null"
      +                    }
      +                  ],
      +                  "description": "campaign job id value in this response."
      +                }
      +              },
      +              "type": "object"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Opaque action references accepted by subsequent tool calls."
      +        },
      +        "brand_id": {
      +          "anyOf": [
      +            {
      +              "description": "Reference for the selected brand.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Reference for the selected brand."
      +        },
      +        "campaign_id": {
      +          "anyOf": [
      +            {
      +              "description": "campaign id value in this response.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "campaign id value in this response."
      +        },
      +        "created_at_ms": {
      +          "anyOf": [
      +            {
      +              "description": "created at ms value in this response.",
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "created at ms value in this response."
      +        },
      +        "name": {
      +          "anyOf": [
      +            {
      +              "description": "name value in this response.",
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "name value in this response."
      +        },
      +        "results": {
      +          "anyOf": [
      +            {
      +              "description": "Completed outputs currently available for this job or campaign.",
      +              "items": {
      +                "additionalProperties": false,
      +                "description": "Completed outputs currently available for this job or campaign.",
      +                "properties": {
      +                  "_references": {
      +                    "anyOf": [
      +                      {
      +                        "additionalProperties": false,
      +                        "description": "Opaque action references accepted by subsequent tool calls.",
      +                        "properties": {
      +                          "generation_job_id": {
      +                            "anyOf": [
      +                              {
      +                                "description": "generation job id value in this response.",
      +                                "type": "string"
      +                              },
      +                              {
      +                                "type": "null"
      +                              }
      +                            ],
      +                            "description": "generation job id value in this response."
      +                          }
      +                        },
      +                        "type": "object"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "Opaque action references accepted by subsequent tool calls."
      +                  },
      +                  "aspect_ratio": {
      +                    "anyOf": [
      +                      {
      +                        "description": "aspect ratio value in this response.",
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "aspect ratio value in this response."
      +                  },
      +                  "image_url": {
      +                    "anyOf": [
      +                      {
      +                        "description": "image url value in this response.",
      +                        "type": "string"
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "image url value in this response."
      +                  },
      +                  "source_ad_id": {
      +                    "anyOf": [
      +                      {
      +                        "anyOf": [
      +                          {
      +                            "description": "source ad id value in this response.",
      +                            "type": "string"
      +                          },
      +                          {
      +                            "type": "null"
      +                          }
      +                        ],
      +                        "description": "source ad id value in this response."
      +                      },
      +                      {
      +                        "type": "null"
      +                      }
      +                    ],
      +                    "description": "source ad id value in this response."
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Completed outputs currently available for this job or campaign."
      +        },
      +        "status": {
      +          "anyOf": [
      +            {
      +              "default": "processing",
      +              "description": "Current progress or delivery state.",
      +              "enum": [
      +                "queued",
      +                "running",
      +                "processing",
      +                "completed",
      +                "complete",
      +                "failed",
      +                "cancelled",
      +                "pending",
      +                "ready",
      +                "started",
      +                "already_started",
      +                "already_done",
      +                "in_progress",
      +                "active",
      +                "paused",
      +                "draft",
      +                "kept",
      +                "discarded",
      +                "delivered",
      +                "expired",
      +                "reserved",
      +                "settled",
      +                "released",
      +                "held",
      +                "consumed",
      +                "generating",
      +                "unknown"
      +              ],
      +              "type": "string"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "Current progress or delivery state."
      +        },
      +        "updated_at_ms": {
      +          "anyOf": [
      +            {
      +              "description": "updated at ms value in this response.",
      +              "type": "number"
      +            },
      +            {
      +              "type": "null"
      +            }
      +          ],
      +          "description": "updated at ms value in this response."
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, but the description adds behavior the annotations cannot convey: a hard cap of 50 with default 20, no cursor so results are a recent slice rather than full history, archived campaigns hidden by default, and account/teammate visibility boundaries. These are exactly the surprises that would otherwise cause a wrong conclusion from partial results.

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 sentences, front-loaded with what is returned, then routing, then constraints — no filler. The only minor waste is repeating 'at most 50 (default 20)', which the schema's maximum/default already state.

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?

An output schema exists so return values need not be explained, yet the description still names the key fields for cheap routing decisions. For a zero-required-parameter list tool with full schema coverage, nothing an agent needs to call it correctly is missing.

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 description coverage is 100%, so brand_id, max_results, response_format and include_archived are already documented. The description restates the 50/20 cap and the include_archived default rather than adding new meaning such as sort order, cursor absence rationale, or interaction between brand_id and archived results; baseline 3 applies.

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 ('Lists campaigns created by this account') and immediately enumerates the returned fields (id, job reference, brand, name, status, delivered images). It also scopes the resource tightly by excluding teammates' campaigns, so an agent can distinguish it from the other list_* siblings without opening the 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?

Gives positive usage conditions ('the way to find the campaign job reference for get_campaign_outputs and to recover when a response was lost') and explicit exclusions ('not full campaign history', 'teammates' campaigns are not listed', archived only via include_archived: true). The agent knows both when to reach for it and when it will silently under-return.

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.