Skip to main content
Glama

List campaigns

list_campaigns
Read-onlyIdempotent

List campaigns, newest first: outreach an agent runs for a list of people by call, text and email. Each shows whether it is a draft, running, paused or finished and how many people it reaches. get_campaign gives one campaign's steps and results.

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
limitNoMax results (default 50)
stateNoOnly campaigns in this state
cursorNometa.cursor from the previous page
workspace_idNoLeave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / state / description
      Added value: +"Only campaigns in this state"
    • changedInput schema / properties / workspace_id / description
      Previous value: -"Act in one of this organization's workspaces (id from list_workspaces or create_workspace). Leave empty to act in the connected organization."New value: +"Leave empty to act in the connected organization, which is the usual case. Set it only when the user names another store or location: its id from list_workspaces or create_workspace."
  2. Added

TDQS

A4.2/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 openWorld, so safety is covered. The description adds value the annotations don't: ordering (newest first) and the fact that each entry carries its lifecycle state and audience size — useful return-shape context given there is no output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three compact sentences, each doing distinct work: what it lists and in what order, what a campaign is, what each item shows, and where to go for detail. Nothing is redundant with the title or schema.

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?

For a filtered list tool with four optional parameters and no output schema, the description covers purpose, ordering, per-item fields and the sibling alternative. Pagination via cursor is handled by the schema, so nothing essential 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% and every parameter (limit, state, cursor, workspace_id) is documented in the schema, so the description adds little parameter meaning. The states enumerated in prose omit 'scheduled' from the schema's enum, a minor asymmetry rather than an error.

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 ('List campaigns') plus ordering ('newest first') and defines the domain term as 'outreach an agent runs for a list of people by call, text and email'. The final sentence explicitly routes single-campaign retrieval to get_campaign, so the agent can distinguish it from that sibling without opening a schema.

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?

The closing sentence 'get_campaign gives one campaign's steps and results' establishes the list-vs-detail split, which is the main selection decision here. It doesn't spell out when to filter by state or workspace versus listing everything, but the context for use is clear.

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