skip to content
ignaru

Ignaru for agents

Everything an agent needs to work in Ignaru quickly and safely. The same text is in the MCP prompt quickstart and in ignaru help agents. Setup for each client is in CLI and MCP.

read this page as markdown

on this page

Ignaru is the inbound brain for SEO and AEO. It learns what a company sells, asks ChatGPT, Perplexity and Google the questions its buyers ask, shows who the answers name instead and which pages they cite, and drafts the fixes. Everything the app does is also a tool, so you can run a company's SEO and AEO end to end. You reach it three ways, all acting as one person with their own key:

  • MCP: https://ignaru.com/api/mcp/mcp (Streamable HTTP), header Authorization: Bearer ig_pk_…
  • CLI: ignaru (add --json to any command for machine output)
  • REST: https://ignaru.com/api/v1 with the same header

Set up a project

In the project folder, a person runs npx ignarucli init. It signs them in through the browser, writes the Ignaru Agent Skill to .claude/skills/ignaru and a section to AGENTS.md, writes .mcp.json for Claude Code (the key is read from IGNARU_TOKEN, never stored in a file) and prints the Codex config.toml block, writes .ignaru/site.json (the site and where a pull request goes, so commands in the folder need no flags) and prints a dry-run estimate of a first measurement. It measures nothing and spends nothing. Safe to run again.

The job, in order

  1. Where am I. MCP context · CLI ignaru context --json · REST GET /api/v1/context. One answer with your team, your role, what your key may do, the credit balance, the plan's limits, and the team's sites with the latest result of each.
  2. Pick or add a site. list_sites · ignaru sites · GET /api/v1/sites. With none, add_site {"domain":"acme.com"} · ignaru sites add acme.com. Every later call takes the siteId.
  3. Questions. A question is what a buyer would type into ChatGPT before choosing a company like this one. suggest_questions {"siteId":"…"} · ignaru questions suggest writes about 20 from the company's own line and saves nothing. With Search Console connected, suggest_questions {"siteId":"…","source":"search_console"} · ignaru questions suggest --from gsc returns the team's own real queries of the last 90 days that read like buyer questions, free, each with its impressions and position (and "close to the top" when it ranks on page 2); "both" mixes them with the written ones. Not connected, it answers needs_connector with a hint: connect_app gives the person a sign-in link. Keep the good ones and save them with add_questions · ignaru questions add "<text>" --stage comparison. Start with 20, a mix of stages: problem (they feel the pain), use_case (they look for a way to do it), comparison (this against that), price, and alternative (instead of a named rival). update_question and retire_question (CLI: ignaru question <id> ...) reword, reorder, switch off or remove one. The plan measures a fixed number; any past it are saved inactive.
  4. Measure. Always start_measurement {"siteId":"…","dryRun":true} first · ignaru measure --dry-run. It returns the estimate (questions, the plan's question-runs left, credits if any) and measures nothing. Then run it for real: start_measurement {"siteId":"…"} · ignaru measure --wait. It answers at once with a runId; a run takes a few minutes. A manual run works once a day per site.
  5. Wait for it. get_measurement {"runId":"…"} · GET /api/v1/measure/runs/<id> every 5 seconds while the status is queued or running. The progress shows pending, ok, empty and failed answers per surface. ignaru measure --wait does the polling for you. The result can be read as soon as a surface has 8 answers.
  6. Read the gaps. get_gaps {"siteId":"…"} · ignaru gaps · GET /api/v1/gaps?siteId=…. How to read it:
    • share: the companies the engines name, most named first, with the team's own row marked us. named counts answers that name the company; firstPlace counts answers that name it first. If the team's row is far below the first rival, that is the gap.
    • questions: each question's result per surface. A question where the team is absent on every surface is the first thing to fix. usPosition 1 means named first.
    • cited: the pages the answers cite, most cited first. A host cited often where the team is absent is a place to get mentioned; ours: true marks the team's own pages.
    • previous: last week's count, to say whether it moved.

    list_answers · ignaru answers shows the evidence behind a cell: the excerpt, who was named in order, the links cited.

  7. Fix. rank_fixes {"siteId":"…"} · ignaru fixes rank works out what to change from the latest report and audit (no credits). list_fixes · ignaru fixes reads them, most important first, each with its why and evidence. draft_fix {"fixId":"…"} · ignaru fix <id> draft writes the top one copy-ready: a page in markdown, a schema block, a robots.txt. A comparison page is a model call paid in credits (about 20 to 50 each time): it is refused with needs_credits unless you pass useCredits: true (CLI: --use-credits), so ask the person first and pass it only after a yes. The other kinds are free. The plan allows a number of drafts a month (plan_limit_fixes past it). Show the draft to the person.
  8. Ship it, if they want it on the site. ship_fix {"fixId":"…"} · ignaru fix <id> ship --target github · POST /api/v1/fixes/<id>/ship. It ASKS: it queues the exact change for the team's Admin and returns request.approveUrl. Give the person that link and say "it's waiting for an Admin to approve in Ignaru". The pull request opens only after an Admin approves in the app, and Ignaru never merges it. Optional path (where the file goes, like public/robots.txt) and repo (owner/name, one an Admin already connected). Asking again returns the same request. To let a developer review the exact change first, ignaru fix <id> diff · GET /api/v1/fixes/<id>/diff prints it against the file in the repo as a patch (git apply takes it). When they say the pull request is merged, set_fix_status done · ignaru fix <id> done.
  9. Prove it. Once a person has shipped a fix and you set it done, Ignaru keeps what each engine said about the questions it aims at, asks them again on day 3, 7 and 14 inside the plan, and credits the fix with the questions that moved to named minus how far a few control questions drifted by themselves. get_fix_proof {"fixId":"…"} · ignaru fix <id> proof reads it (free; a small sample is flagged, so call a small move a hint). get_before_after {"siteId":"…"} · ignaru before-after shows every question day 0 against the latest, with the fixes marked in between. Each gap in get_gaps carries repeat: seen in N of the last M runs, steady, mixed or once.
  10. Measure again a week later and compare the share with the previous week's.

The canvas

Every brain is also a canvas a person can watch: a card for each area (questions, content, citations and so on), a gauge per engine, the agents at work and an ask thread. A public brain such as raisedhand reads with no key at all. Your own site's brain is its domain with dashes (acme.com is acme-com). Whatever you add shows as you, by name, so people can see who did what.

  1. Read it. brain_state {"slug":"raisedhand"} · ignaru brain raisedhand · GET /api/v1/brains/raisedhand/state. rev goes up on every change, including a new measurement.
  2. See it. brain_screenshot {"slug":"raisedhand"} comes back as an image in your own chat: it is the real page, so you see what a person sees. CLI: ignaru screenshot raisedhand -o shot.png, then open the file. drawer opens one card, theme: "dark" is dark. The same picture of an unchanged canvas is kept, so asking again is cheap. Take one after you change something, to check it landed.
  3. Ask it. brain_ask {"slug":"raisedhand","question":"..."} · ignaru ask raisedhand "..." answers from the brain's own data and says when the data does not say. The question and answer go on the thread for anyone watching. It is paid in credits at the cheap model's cost (about 50 to 100) and refuses with out_of_credits when the team has too few.
  4. Put your work on it. card_upsert · ignaru card <slug> <id> --row "label | note | gap" adds a card, or rows to one: use an area's id (questions, content, citations) to add to its card, or a name of your own with an area for a new one. card_remove takes a card off your team's canvas. agent_report · ignaru report <slug> start --label "adding 6 questions" shows you at work as a card, then progress, then done or failed. Your changes save to your team's canvas, not to the public page everyone else sees.
  5. Start Ignaru's own agents. agent_start {"slug":"acme-com","role":"measure","dryRun":true} · ignaru run measure --dry-run. The roles are measure, writer (the next page), citations (the next citation ask) and technical (the next robots, schema, meta or llms.txt fix). The same limits and credits rules as start_measurement and draft_fix apply, so dry run first and pass useCredits only after a yes. Only on your own site, not a public brain. Nothing it makes is shipped.
  6. Follow it. brain_watch {"slug":"acme-com","since":12,"waitSeconds":20} · ignaru watch acme-com waits for the next change after a rev. A browser can listen to GET /api/v1/brains/<slug>/events (Server-Sent Events).

What you can never do

  • Approve, ship or merge a fix. You can ask (ship_fix), and that only queues it. An Admin signed in to the Ignaru app approves it, and only then does the pull request open. A key that tries to approve or ship gets a 403. Say "it's waiting for an Admin to approve in Ignaru", with the link.
  • Spend credits without the person's yes. Measuring is covered by the plan's allowance. Past it, start_measurement refuses with needs_credits and shows the estimate. Ask the person, and only after a yes send the same call with useCredits: true (CLI: --use-credits).
  • Send email. Nothing leaves Ignaru to a person outside the team from a key.
  • Keys act as Operator at most: they add sites and questions, measure, rank and draft.
  • Inviting teammates emails real people. Show the user the list, get a yes, then send with confirm: true (CLI: --yes). Without it nothing is sent.

Saving calls

  • Read before you write. context already has each site's latest headline; skip get_gaps when nothing was measured since.
  • start_measurement with dryRun: true is free. suggest_questions costs one model call, paid in credits (usually 100 to 400); with source search_console it costs nothing. Reads cost nothing.
  • Every write that lists it takes an optional idempotencyKey (8 to 128 of A-Z a-z 0-9 _ . : -): retrying with the same key returns the first answer instead of writing twice.
  • get_brain reads what Ignaru knows about the company (what it sells, who buys, proof, voice). Ground every question and fix in it. write_brain adds to it.

When something fails

Errors carry a code, a message, a Fix (what to call next) and, where it helps, Valid (the values that would have worked). Over REST they are JSON: {"ok":false,"code","message","hint","valid"}. A refused measurement also carries the estimate, and too_soon carries nextAt. 429 means wait the seconds it says. server_error is Ignaru's fault, not yours: retry once, then tell the user.

CodeWhat it meansWhat to do
needs_creditsThe run is past the plan's allowanceShow the estimate, ask the person, then retry with useCredits
too_soonA manual run already happened todayRead get_gaps, or retry after nextAt
plan_limit_questions, plan_limit_sitesThe plan is fullRetire or switch off one, or ask the person to upgrade
monthly_ceiling, trial_used, lockedThe plan's limit for the month, or the free run is usedTell the person; read what is measured with get_gaps
plan_limit_fixesThis month's drafts are usedRead the drafts already written with list_fixes, or ask the person to upgrade
not_draftedship_fix on a fix with no draftdraft_fix first, then ask again
copy_onlyThis fix kind (schema, meta, citation, listing), or the plan, is copied by handGive the person the draft to paste
site_actions_offShipping is not switched on for this team yetTell the person; hand over the draft to paste
no_targetThe repo you named is not one an Admin connectedUse one of the repos in the hint, or ask an Admin to pick the site's repo in the app
not_readyMeasuring, or the canvas, is not on for this deployment yetTell the person and carry on; reading still works
own_brain_onlyagent_start was aimed at a public brainUse your own site's brain (list_sites shows the domains)
canvas_fullThe canvas holds its most cards, rows or agent cardsRemove some, then retry

Common jobs

JobMCPCLI
Where am Icontextignaru context
Siteslist_sites, add_siteignaru sites, ignaru sites add <domain>
Questionslist_questions, suggest_questions, add_questions, update_question, retire_questionignaru questions, ignaru questions suggest, ignaru questions add "<text>", ignaru question <id>
Measurestart_measurement, get_measurementignaru measure --dry-run, ignaru measure --wait, ignaru runs
Read the resultget_gaps, list_answers, list_rivals, set_rival_hiddenignaru gaps, ignaru answers
Fixesrank_fixes, list_fixes, draft_fix, ship_fix, set_fix_status, get_fix_proof, get_before_afterignaru fixes rank, ignaru fixes, ignaru fix <id> draft, ignaru fix <id> diff, ignaru fix <id> ship --target github, ignaru fix <id> done, ignaru fix <id> proof, ignaru before-after
Set a project upnpx ignarucli init
See and change a brain's canvasbrain_state, brain_screenshot, brain_ask, card_upsert, card_remove, agent_report, agent_start, brain_watchignaru brain <slug>, ignaru screenshot <slug> -o shot.png, ignaru ask <slug> "…", ignaru card <slug> <id>, ignaru report <slug> start, ignaru run <role>, ignaru watch <slug>
Connectors (GitHub, Webflow, Search Console, GA4, Gmail)connector_status, connect_appignaru connectors
Audit the site itselfrun_site_audit, get_site_auditignaru call run_site_audit
What the team knows: the company Brainget_brain, write_brainignaru call get_brain '{"brain":"inbound"}'
Who the team sells to (profile)get_profile, update_profileignaru profile, ignaru profile set --roles "Founder,CEO"
Credits and spendget_creditsignaru credits --week
Anything elseask_iggy (costs credits)ignaru ask "…"
Any MCP tool from the CLIignaru tools, ignaru call <tool> '<json>'