Skip to main content
Glama

list_campaigns

Read-only

List the user's ad campaigns that Yirla can analyse, grouped by platform and ad account, so the user can pick one to analyse. Returns each campaign's name and campaign ID; pass the campaign ID (or exact name) and platform to analyze_campaign. Yirla is read-only: it never creates, edits, publishes or changes campaigns, ads, bids, budgets or creative on any ad platform. If the user asks for any of those actions, say plainly that Yirla can't do that, and offer to run an analysis instead.

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
platformNoFilter by platform. Omit to show all.

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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 readOnlyHint=true and destructiveHint=false, but the description adds meaningful behavior beyond them: results are grouped by platform and ad account, each result includes campaign name and campaign ID, and the tool explicitly never creates, edits, publishes, or changes campaigns, ads, bids, budgets, or creative. It even provides a refusal script for unsupported write requests, which is valuable behavioral guidance for an agent.

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?

The description is front-loaded with purpose and handoff instructions, then adds read-only policy. It is clear and mostly efficient, though the read-only refusal paragraph is somewhat long and partially redundant with annotations. It earns its place by preventing incorrect write attempts, but could be tightened slightly.

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?

For a simple tool with one optional parameter, no output schema, and full annotation coverage, the description is complete: it explains what is returned, how results are grouped, the next step, and the read-only limitation. An agent has everything needed to call it correctly and to handle unsupported user requests.

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 the single optional platform parameter is fully documented in the schema with its enum and 'Omit to show all' behavior. The description does not add further meaning to that parameter beyond what the schema provides. Baseline 3 is appropriate when the schema already does this work.

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 uses a specific verb and resource: 'List the user's ad campaigns that Yirla can analyse.' It distinguishes this tool from analyze_campaign by explaining that the result is for picking a campaign to analyse and gives the exact handoff parameters. An agent can immediately tell what this tool does and how it differs from its sibling.

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?

It states the purpose ('so the user can pick one to analyse') and explicitly names the follow-up tool and inputs: 'pass the campaign ID (or exact name) and platform to analyze_campaign.' It also handles the negative case: if the user asks for write actions, say Yirla can't do that and offer an analysis. This covers when to use it, what to do next, and what not to attempt.

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