Skip to main content
Glama

Onsa

List campaigns

list_campaigns
Read-onlyIdempotent

List the campaigns (past lead searches) in this workspace that the user takes part in, newest first. Returns the newest limit of them (default 50) — compare returned against total to see whether older campaigns were omitted. Use it to see which ICP cohorts have already been tried before proposing a new one. Each entry has id, title, leadsTotal, hasIcp, tags, createdAt and updatedAt. Pass an id to get_campaign for its ICP, get_campaign_leads for its people, get_campaign_stats for its outreach funnel, list_replies for what prospects wrote back, or list_next_steps for what the campaign still needs a human to do — that last one is the answer when the user asks for recommendations rather than numbers. Note that searches started over MCP may share a generic title, so use the ICP and the dates to tell cohorts apart, not the title alone. A campaign row exists from the moment a search starts, so the NEWEST entry is often still empty (leadsTotal 0) — pick what to analyse by leadsTotal, never by position in the list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoHow many campaigns to return, newest first (default 50)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
totalYes
returnedYes
campaignsYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, but the description adds substantial behavioral context: newest-first ordering, pagination via 'compare returned against total', the existence of empty campaigns ('leadsTotal 0'), and the caveat about generic titles. None of this contradicts the annotations; it enriches the agent's understanding of edge cases and data quality.

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?

The description is long but every sentence carries actionable information: purpose, sorting, pagination, entry fields, sibling routing, and data caveats. It is front-loaded with the main function and sort order, then structured logically. No redundancy or filler.

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?

Given the tool's simplicity (one optional parameter) and the presence of an output schema, the description covers all necessary aspects: purpose, usage context, data fields, sibling tool routing, pagination, and data-quality warnings. 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.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema covers 100% of parameters (only 'limit'), and the description adds beyond it: default value 50, interpretation via 'returned against total', and the implication that older campaigns may be omitted. This clarifies how to use the parameter and what the response means, going beyond the schema's basic description.

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 description states a specific verb ('list') and resource ('campaigns (past lead searches)') with a clear scope: 'in this workspace that the user takes part in'. It differentiates from siblings by naming what each alternative does and when to use them (e.g., 'list_next_steps ... is the answer when the user asks for recommendations rather than numbers').

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?

Explicitly says when to use: 'Use it to see which ICP cohorts have already been tried before proposing a new one.' It also lists sibling tools and the conditions for choosing them ('Pass an id to get_campaign for its ICP, ... list_next_steps for what the campaign still needs a human to do'). This gives clear when-to and when-not-to guidance.

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