Skip to main content
Glama

analyze_competitor

Read-only

Fetches a competitor's full ad intelligence report from Yirla: ad counts and format breakdown per platform, plus AI-generated persona, messaging, and offer insights. Includes its own watchlist membership check and reports whether the competitor still needs to be added, so it can be called on its own without a prior search_competitors or add_to_watchlist call. Returns a complete, pre-formatted report. 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

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": {
      "competitor_name": "<competitor_name>"
    },
    "name": "analyze_competitor"
  }
}

Input Schema

NameRequiredDescriptionDefault
platformNoPlatform to focus on. Omit for all platforms.
competitor_nameYesExact advertiser name (e.g. 'Gong', 'HubSpot').

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety bar is partly met. The description still adds meaningful behavior beyond them: it discloses the internal watchlist membership check and its result, the fact that the response is a complete pre-formatted report needing no assembly, and a concrete fallback script for write requests. It does not cover latency, rate limits, or failure modes for unknown competitor names.

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?

The opening sentence is dense and front-loaded with the resource and its outputs, which is good. However, the read-only disclaimer occupies roughly a third of the text and restates readOnlyHint=true before adding only the user-facing fallback behavior, so some of it is padding relative to the structured signal.

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?

With no output schema, the description does the right thing by stating the return is a complete pre-formatted report containing ad counts, format breakdowns, and AI insights, plus a watchlist status field. Together with 100% schema coverage on both parameters, an agent has enough to invoke it correctly; only error behavior for an unresolvable competitor name is unaddressed.

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%, including the platform enum with an explicit 'omit for all platforms' default and an example-bearing competitor_name field. The description adds only the loose phrase 'per platform', which does not clarify the enum values or how competitor_name must be matched beyond what the schema already says. Baseline 3 applies where the schema carries the parameter burden.

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 gives a specific verb and resource ('Fetches a competitor's full ad intelligence report from Yirla') and enumerates the contents: ad counts, format breakdown per platform, and AI-generated persona, messaging, and offer insights. It also implicitly distinguishes itself from search_competitors by stating it can be called without a prior search, so an agent can separate the two without opening either 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?

It clearly states the tool is self-sufficient and does not require a preceding search_competitors or add_to_watchlist call, which is the main routing question for an agent here. It also tells the agent what to do when a user asks for write actions. It stops short of explicitly contrasting itself with compare_competitors or get_weekly_signals, so the alternative-selection picture is only partly drawn.

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