# How to give an AI agent competitor research

> To give an AI agent competitor research, decide the exact structure you need back, connect a tool that returns that structure, tell the agent when to call it and how to filter the results, cap what it can spend, and test it on companies you already know. SimilarIQ's hosted MCP server gives an agent a find_similar_companies tool that returns 100 scored, typed companies per call.

Source: https://similariq.ai/guides/how-to-give-an-ai-agent-competitor-research · Updated 2026-11-25

## The goal: research an agent can act on without you

An agent is only as useful as the data it can fetch on its own. Ask an agent to research the competitors of a company and, with no tools, it answers from memory. That gives you a short list of familiar names in free text. The next step in your workflow, whether it is filling a CRM field or drafting battlecards, then needs a person to clean the answer up.

The goal here is different. You want the agent to call a tool, get a structured list back, apply rules you set and pass the result on, with no human in the middle. That requires four things: a defined output shape, a tool that produces it, instructions on how to use it and limits on cost.

This guide is for engineers and technical operators. It works for a chat assistant with connectors and for a custom agent you build in code.

## What you need before you start

You need an agent runtime that can call external tools. Most current assistants and agent frameworks support the [Model Context Protocol](https://similariq.ai/glossary/model-context-protocol), a standard way to plug tools into a model, or let you define functions that wrap an HTTP API. Check which your runtime supports.

You also need a clear downstream consumer. Know where the agent's output goes: a database table, a CRM, a document, another agent. The consumer dictates the fields you need and how strict the filtering should be.

- An agent or assistant that supports MCP servers or function calling
- A written description of the output you need, field by field
- A test set of five to ten companies whose competitors you know well
- A budget for tool calls, per run and per month

## Step 1: Define the output contract

Write down the shape of a good answer before you choose a tool. For competitor research the minimum is a company name and a domain, since the domain is the key you will join on later. Beyond that you want a similarity score so the agent can rank and cut, a label for the kind of relationship so it can treat rivals and neighbors differently, and some measure of certainty so it can discard weak rows.

Decide the count too. An agent that returns five competitors is doing a different job from one that returns a hundred. Five is fine for a summary. A prospecting or mapping task needs the long tail.

Free text fails this contract. If the tool returns prose, the agent must parse it, and parsing introduces errors that surface three steps later. Prefer tools that return typed fields.

## Step 2: Choose how the agent gets the data

There are three options. The first is the model's own memory. It costs nothing extra and works for famous companies, but the answer is unscored, varies from run to run and thins out quickly for smaller firms. The guide on [why not just ask an LLM for competitors](https://similariq.ai/guides/why-not-just-ask-an-llm-for-competitors) covers that trade-off fairly.

The second is general web search plus reasoning. The agent searches, reads pages and assembles a list. This reaches more companies but takes many tool calls and tokens per run, and the output structure is whatever the agent improvises that day.

The third is a purpose-built tool that takes a domain and returns a structured competitor list. One call, a fixed schema, a known cost. For a workflow that runs repeatedly, this is usually the right choice, and it is the one the rest of this guide assumes.

## Step 3: Connect the tool

With an MCP server, connecting means giving your client a URL and authenticating. SimilarIQ's server is hosted at `https://similariq.ai/mcp` over streamable HTTP, so there is nothing to install and no local process to run. It supports OAuth 2.1, where the assistant sends you to a sign-in and consent screen, or an API key header for clients that only accept a static header.

In Claude Code the command is `claude mcp add --transport http similariq https://similariq.ai/mcp`. A generic client config is a `mcpServers` entry with `type` set to `http` and `url` set to that address, plus an `X-API-Key` header if you use key auth. The server works with Claude, ChatGPT, Grok, Perplexity, Cursor and any MCP client. Details are on the [MCP page](https://similariq.ai/mcp).

If your runtime does not speak MCP, wrap the REST endpoint as a function: `POST https://similariq.ai/api/v1/search` with a JSON body containing `domain` and an optional `limit`. The same `sk-live-` key works for both routes.

## Step 4: Tell the agent when to call it and what to do with the results

A connected tool is not enough. Write instructions that cover three things. First, when to call: whenever the user asks for competitors, alternatives or similar companies of a named company, resolve the name to a domain and call the tool once. Second, when not to call: if a recent search for that domain exists, read it back instead. In SimilarIQ, `list_recent_searches` and `get_search_results` are free tools for exactly this.

Third, how to filter. Give explicit rules, for example: keep rows where `type` is Direct and `matchScore` is at least 70 for a battlecard task, or keep everything with `confidence` of 60 or more for a prospecting task. State the thresholds as numbers. An agent told to keep the good ones will pick a different bar each run.

Tell the agent to say what it does not have. SimilarIQ returns company, domain, score, type, confidence and a likely-competitor flag. It returns no contacts, headcount, revenue or news. Instruct the agent to fetch those from another tool or to state that they are missing, never to fill them in.

## Step 5: Put limits on spend

Agents loop. A bug or an ambiguous instruction can turn one intended call into fifty. Put limits in two places. In the agent, set a maximum number of paid calls per run and have it check its balance first. SimilarIQ's `get_search_balance` tool is free. In the account, set a monthly cap, which is a hard ceiling on what the card can be charged even with auto-refill on. See [spend controls](https://similariq.ai/features/spend-controls).

Know which calls cost money. Of SimilarIQ's 10 MCP tools, two are paid: `find_similar_companies` at 1 credit and `start_bulk_search` at 1 credit per domain. The other eight are free. A credit is $0.25. Failed searches are refunded automatically, so a retry after a 502 response does not double-charge.

## A worked example

You run an agent that prepares account briefs for a sales team. Each morning it receives 20 new target accounts. For each, the brief should list the account's five closest rivals so the rep can reference them.

The instructions say: for each account domain, check recent searches; if none exists, call `find_similar_companies`; keep rows with `type` Direct and `matchScore` of 75 or more; list the top five by rank; if fewer than five qualify, list what qualifies and say so. Maximum 20 paid calls per run.

Cost: 20 searches a day is $5.00, returning 2,000 look-alikes. Over 20 working days that is 400 searches, or $100, minus anything served from history for free. Each search takes roughly 30 to 60 seconds, so the agent should start them early in the run or use `start_bulk_search` and poll `get_bulk_job`.

## Doing it without SimilarIQ

You can build the same capability yourself. Give the agent a web search tool and a page-fetch tool. Instruct it to gather candidates from comparison pages, review categories and search results, normalize them to domains, and count how many independent pages mention each one. Have it score each candidate against a description of the seed and assign a type.

This works, and it gives you full control over the method. The costs are the many model and search calls per company, variable output between runs unless you enforce a schema, and the engineering time to handle rate limits, dead links and deduplication. For a few lookups a month, that is reasonable. For a daily pipeline, a single structured call is easier to operate. The [AI agent research](https://similariq.ai/use-cases/ai-agent-research) page describes the pipeline version.

## Mistakes and a checklist

The typical failures: no output contract, so each run returns a different shape; vague filter rules; no spend limit; paying again for a search that already exists in history; and letting the agent invent fields the tool never returned. Test against companies you know before trusting it on ones you do not.

- Output fields and count written down
- Tool connected and authenticated, with the key stored as a secret
- Instructions state when to call and when to reuse a past search
- Numeric thresholds for score, type and confidence
- Per-run call limit and account monthly cap set
- Agent told to report missing data instead of guessing
- Results checked on a known test set

## Frequently asked questions

### How do I let an AI agent look up a company's competitors?

Connect a tool that takes a company domain and returns a structured list, then instruct the agent when to call it and how to filter the output. With SimilarIQ you add the hosted MCP server at https://similariq.ai/mcp and the agent gains a `find_similar_companies` tool.

### Do I need to install anything to use the SimilarIQ MCP server?

No. It is hosted and stateless over streamable HTTP, so there is no local process, package or container to run. You add the URL to your MCP client and authenticate with OAuth 2.1 or an API key header.

### How much does each agent tool call cost?

`find_similar_companies` costs 1 credit, which is $0.25, and returns up to 100 companies. `start_bulk_search` costs 1 credit per domain. The other eight tools, including balance checks and reading past results, are free.

### How do I stop an agent from overspending?

Set a per-run limit on paid calls in the agent's instructions and have it check the balance first with the free `get_search_balance` tool. In your SimilarIQ account, set a monthly cap, which is a hard ceiling on card charges.

### What data will the agent not get from SimilarIQ?

It will not get people, emails, phone numbers, revenue, headcount, funding, location, technology data, intent data or news. Each result is a company name, domain, match score, relationship type, confidence score and likely-competitor flag.

### Can I use the REST API instead of MCP?

Yes. Send a POST request to https://similariq.ai/api/v1/search with a domain and your API key, and wrap it as a function for your agent. The same key and the same balance apply to the API, SDKs, CLI and MCP server.
