# Connect to TrueIP (for AI agents)

You are an AI agent setting up the TrueIP patent search API for your user. Follow these steps.

## 1. Get an API key (one call)

If your user gave you a key, use it. Otherwise sign them up yourself; it takes one request and the key works immediately:

```bash
curl -X POST https://app.gotrueip.com/v1/agent/signup \
  -H 'content-type: application/json' \
  -d '{"human_email": "<your user>", "agent_name": "<your name>", "harness": "claude-code", "note_to_human": "<why you need patent search>"}'
```

- Save `api_key` as the environment variable `TRUEIP_API_KEY`. Never print it in chat or commit it.
- It starts with $1.00 of trial credit (10 searches). Do your user's task first. `prior_art_search` costs $5.00, more than the trial, so it waits until your user approves.
- Then ask your user to tap Approve in the email from TrueIP and tick the box to agree to the TrueIP Terms. Your key then works, with nothing to send. If they have agreed to the Terms before, the email also has a 6-digit code you can send to `POST /v1/agent/verify` `{"code": "…"}` instead. Either way, that unlocks the rest of the $25 free credit.

Every endpoint, field and error code: https://gotrueip.com/auth.md

## 2. Connect

Prefer MCP when your harness supports it.

- **MCP (remote, streamable HTTP):** `https://app.gotrueip.com/mcp`. Your user signs in once with OAuth in the browser.
  - Claude Code: `claude mcp add --transport http trueip https://app.gotrueip.com/mcp`
  - Cursor: add `{"mcpServers": {"trueip": {"url": "https://app.gotrueip.com/mcp"}}}` to `.cursor/mcp.json`. VS Code and other MCP clients: add the same URL as a remote MCP server.
- **REST:** base URL `https://app.gotrueip.com/v1`, with the header `Authorization: Bearer $TRUEIP_API_KEY`. Keep the key in an environment variable. Never print it or commit it.

## 3. Use the tools

| Tool | Use it to |
|---|---|
| search_patents | find patents by meaning or keywords ("quotes", OR, -word); filter by CPC class, dates, owner and inventor, or list an owner's or inventor's patents |
| prior_art_search | **Prior Art Search:** searches US patents granted since 1976 and US applications published since 2001 for prior art to a whole claim, a description or an issued patent (by number: each independent claim is searched, up to 8), ranked by meaning, with the matching passages and where they are |
| get_patent | read one patent's summary: parties, dates, class, examiner, law firm, expiry estimate, abstract and claim 1 |
| get_claims | read every claim, with its number and the claim it depends on |
| get_text | read the description as numbered paragraphs |
| citations | see what a patent cites, and which patents in the index cite it |
| family | see the related applications printed on the patent |
| search_marks | find USPTO trademark applications and registrations like a proposed mark (identical, sounding or spelled alike, reordered, or containing it), with status, classes, owner and goods; an owner or design code alone lists those marks. $0.10 |
| get_mark | read one trademark record by serial or registration number. $0.02 |
| search_office_actions | find what examiners wrote in patent office actions mailed since 2007: each rejection with its reasoning, cited art and claims; or read one action by id. $0.10 a search, $0.02 a read |
| similar_rejections | for one patent rejection or one mark, get the closest past cases, how each ended, and counts. `outcome` set to `overcome` keeps the cases that ended in a patent or registration. $2.00 a call, one rejection per call |
| ids_list | turn reference numbers into Information Disclosure Statement rows (PTO/SB/08 layout): each US patent or publication number is checked against the index and listed with its kind code, date and first named inventor; unknown or ambiguous numbers are flagged, never guessed. JSON and CSV. $0.10 a call, free if no US number is found |
| claim_chart | start a claim chart: the claim split into its elements (exact words), and each element's closest passages in up to 5 US references, quoted with where they are and scored; weak matches flagged. It concludes nothing: you and your user do the analysis. $1.00 a chart of up to 5 references, free if none is found |
| get_usage | check credit and this connection's monthly limit (free) |
| report_problem | send TrueIP a short problem report, only after your user reads the exact text and says yes (free) |
| request_feature | send TrueIP a feature request for something it can't do yet, only after your user reads the exact text and says yes (free) |

Over REST the same reads are one endpoint: `POST /v1/patents` with `"section"` set to `summary`, `claims`, `description`, `citations` or `related`.

**Pick the right tool, and use fewer calls:**
- For prior art, start with `prior_art_search` instead of paging through keyword searches. Paste one claim or a description as `text`, or send an issued patent's `publication_number`: one call then searches each of its independent claims (up to 8) and says which claim each result matched. Add `claim` to search one claim only. A call costs $5.00, as much as 50 searches, however many claims it searches, and in measured runs one call did the work of about 18 searches and 118 reads, with the matching passages already in the answer. Send it a whole claim, description or patent, never a single term, a company or an inventor.
- For a quick lookup of a term, an owner or an inventor, use `search_patents` ($0.10), never `prior_art_search`. Reads cost $0.02. A call that finds nothing is free.
- Each `search_patents` result carries an excerpt of the abstract, and each `prior_art_search` result carries the matching passages with their claim or paragraph number, along with dates, owners and class. Don't call `get_patent` or `get_claims` for every hit; call them only for the documents you will quote in full.
- Use `citations` and `family` once per key document, not one lookup per cited patent.
- About 100 ranked candidates is usually enough to review. Widen only if the top results are weak.

Quote passages with the claim or paragraph number they came from and the publication number, so your user can verify them.

**For trademark and office-action work:** `search_marks` and `get_mark` return USPTO records, never an opinion: never tell your user that a mark is available, clear or safe to use, or that it will register. `similar_rejections` shows past cases, not a forecast: never say a claim will be allowed or a rejection will be overcome. Quote counts with their denominators. The skills are https://gotrueip.com/skills/trueip-trademark-clearance-search/SKILL.md and https://gotrueip.com/skills/trueip-office-action-research/SKILL.md. Every call that finds nothing is free.

**For a full prior-art search, follow the skill:** https://gotrueip.com/skills/trueip-prior-art-search/SKILL.md. It is the method step by step, and what to put in the report. The MCP server also serves it to clients that load skills.

## 4. Rules

- Check the `cost` field on each response. Respect the key's spend limit. Don't loop searches without telling your user.
- TrueIP returns records and passages, not legal opinions. Leave conclusions about patentability or infringement to your user.
- If a tool fails or gives a clearly wrong result, offer to send `report_problem`. Show your user the exact text first and send it only on a yes. Keep it general: no search text, claim text, invention details or client names. Include the error's `reference` if there is one.
- If your user asks for something TrueIP can't do, say so plainly and offer to send it as `request_feature`, the same way: the exact text first, sent only on a yes. Say what they want TrueIP to do, not what they are working on.
- Coverage: every search answer carries `coverage`: how many US patents the index holds and the dates they span. Read it before you tell your user that nothing was found. A patent missing from the index is not a patent that does not exist.
- `citations` can only list citing patents that are in the index, and `family` is what was printed on the patent when it was granted. Neither says whether a patent is in force today.

Full pricing: https://gotrueip.com/pricing.md
