> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tryhellosearch.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Tools

> The six tools, their arguments and their errors.

| Tool | Does | Same as |
| - | - | - |
| `get_analytics` | the landing page's figures and the Analytics Dashboard | [`GET /analytics`](https://docs.tryhellosearch.com/api-reference/analytics) |
| `list_opportunities` | your opportunities, in progress by default, paged | [`GET /opportunities`](https://docs.tryhellosearch.com/api-reference/list-opportunities) |
| `get_opportunity` | one opportunity in full: site, price, steps, article, decision, history | [`GET /opportunities/{id}`](https://docs.tryhellosearch.com/api-reference/get-opportunity) |
| `accept_opportunity` | accepts an opportunity awaiting your answer | [`POST /opportunities/{id}/decision`](https://docs.tryhellosearch.com/api-reference/decide-opportunity), `accept` |
| `counter_offer_opportunity` | answers it with your terms | the same, `counter_offer` |
| `decline_opportunity` | declines it | the same, `decline` |

Each tool returns the JSON its route answers, both as `structuredContent` and as JSON text. The fields are described in the [API reference](https://docs.tryhellosearch.com/api-reference/me.md).

## Arguments

The arguments keep the API's names and values, as JSON rather than a query string.

**get\_analytics** `tool`

`period` (`7d`, `30d`, `3m`), or `from` and `to` (`YYYY-MM-DD`); `engine`, a list of `chatgpt`, `gemini`, `ai_overview`, `google_ai_mode`. Every argument is optional.

**list\_opportunities** `tool`

`status`, a list of `in_progress` (the default), `awaiting_decision`, `proposition`, `content_creation`, `deal_placement`, `live`, `declined`, `all`; `page` (1 to 100,000); `per_page` (1 to 100, 50 by default). `status: ["awaiting_decision"]` is what waits on you.

**get\_opportunity, accept\_opportunity, decline\_opportunity** `tool`

`id`, as `list_opportunities` gives it.

**counter\_offer\_opportunity** `tool`

`id`, and `terms`: your terms in your own words, 2,000 characters at most once the spaces at both ends are trimmed, sent to the HelloSearch team as written.

## Decisions

The three decision tools are marked as writes (`readOnlyHint: false`, `destructiveHint: true`), and their descriptions tell the assistant to act only on your explicit confirmation. Most clients then ask you before running one; a client set to approve tools on its own does not, so keep approval on for these three.

A decision has the effects of the buttons of the portal: an acceptance starts the content work, a counter-offer goes to the HelloSearch team, a decline closes the opportunity and nothing is owed for it. The portal shows it as made `via the API (key “name”)`, with the name of your key.

A decision is possible while `get_opportunity` lists it in `available_actions`. Sending the same one twice in a row never decides twice: the second is refused with `not_awaiting_decision` and changes nothing. Once we answer a counter-offer with a new proposal, a decision applies to that proposal: read the opportunity again before deciding.

## Errors

A refusal is a tool error (`isError: true`) whose text reads `code: message` and whose `structuredContent` is the API's `{ "error": { "code", "message" } }`.

| `code` | When |
| - | - |
| `invalid_parameter` | an argument the tool cannot read; the message starts with its name (`terms: …`, `status.0: …`) |
| `not_found` | no opportunity of your account has this id, or its format is not decided yet |
| `not_awaiting_decision` | the opportunity no longer awaits your decision; nothing was changed |

An unknown tool or method is a JSON-RPC error, as the protocol has it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.