Skip to main content
Glama

Declare or remove a competitor

set_competitor
DestructiveIdempotent

Declare or remove a competitor for one of your sites, by domain. Declaring does not change any number: the competitor is counted like any other site the AI mentions. Needs write access.

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": {
      "action": "<action>",
      "domain": "<domain>"
    },
    "name": "set_competitor"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoOne of your sites in Goppa, by domain (example.com). Required when the account has more than one site: without it, the answer lists the sites to choose from. With a single site it can be left out.
actionYes
domainYesThe competitor's website, like rival.com.

Output Schema

NameRequiredDescriptionDefault
noteNo
siteNo
as_ofNo
errorNo
savedNo
stateNo
actionNo
marketNo
periodNo
reasonNo
sampleNo
changedNo
missingNo
partialNo
summaryNo
languageNo
availableNo
data_statusNo
next_actionNo
evidence_idsNo
open_in_goppaNo
site_requiredNo
workspace_urlNo
competitors_nowNo
sites_in_accountNo
competitors_beforeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare idempotentHint, destructiveHint and readOnlyHint=false, so the safety profile is covered. The description adds genuinely non-obvious behavior: declaring is a configuration change that does not alter any metric, the competitor is counted like any other mentioned site, and write access is required. Undeclare's effect on historical data is left unstated.

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 short sentences, front-loaded with the action and the constraint that matters most (no numbers change), then the auth requirement last. Nothing is redundant.

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?

An output schema exists so return values need not be described, and the mutation's core behavior and auth needs are stated. The only real gap is what undeclare does to existing data, minor for a simple toggle.

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 coverage is 67%, and the description reinforces the domain-based addressing and the declare/undeclare semantics of the action enum, whose schema entry has no description. It adds little on the conditional `site` parameter beyond what the schema already spells out.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Declare or remove a competitor for one of your sites, by domain" gives a specific verb pair plus resource and scope, which cleanly separates it from the read-side get_competitors tool. It never names that sibling, so differentiation is inferred rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the verb pair and by "Needs write access," which signals the prerequisite for calling it. There is no explicit when-to-use vs when-to-use-the-alternative guidance, and no mention of get_competitors as the read counterpart.

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