Reference
Tools
The connector has 12 tools in three groups: read, draft and write.
An argument ending in ? is optional. Arguments marked (guest) are used on the guest route only. The connector itself returns each tool's full input schema.
Read
No sign-in. Public data only.
| Tool | What it does | Returns |
|---|---|---|
| search_companiesquery | Finds a company by name or web domain. | Matching companies with their RatedLegit ids. |
| get_company_profilecompany_id | Shows how a company handles complaints. | Score, the four metrics behind it, verified resolved rate, median days to resolve, and the number of cases behind each figure. |
| search_complaintscompany_id?, query?, limit? | Finds published complaints by company and issue. | Complaint text, company replies and the outcome. |
| get_resolution_pathscompany_id, issue? | Shows the routes available for a company and issue. | Channels with their resolution rates where known, and the escalation options that apply. |
| report_connector_feedbackmessage | Tells RatedLegit what the agent needed and could not do. | An acknowledgement. |
Draft
Sign-in or a guest case token. Nothing leaves RatedLegit.
| Tool | What it does | Returns |
|---|---|---|
| draft_complaintcompany, title, product, asked_for, already_tried, public_text, incident_date?, amount_usd?, private_details?, person_email? (guest), draft_id?, case_token? | Saves the complaint as a structured draft, including what the person already tried with the company. | Draft id, the exact public text, the private details reserved for the company, and on the guest route a case token. |
| get_case_statuscase_id?, case_token? (guest) | Shows the person's own cases. | State, days left on the company's reply clock, company replies, and what to ask the person next. |
| prepare_escalationcase_id, kind, case_token? (guest) | Prepares a regulator filing, chargeback letter or small-claims packet. | A document the person submits themselves. RatedLegit never submits it. |
Write
Sign-in or a guest case token. Changes the public record.
| Tool | What it does | Returns |
|---|---|---|
| publish_complaintdraft_id, case_token? (guest), confirmation_link? (guest, second call) | Publishes a saved draft. For a guest draft the first call publishes nothing and emails the person a confirmation link. A second call with that link publishes; an agent has the link only if the person gave it access to their inbox. | Signed in, or guest with confirmation_link: the public link and the company's reply deadline. Guest first call: confirmation that the email was sent. |
| add_case_updatecase_id, text, case_token? (guest) | Adds a public update from the person to an open case. | The updated case. |
| close_casecase_id, resolved, would_do_business_again, rating, comment?, refund_confirmation?, case_token? (guest) | Records the outcome: resolved or not, would do business again, and a 0 to 10 rating. | The final case record and whether it counts as verified resolved. |
| request_moderationcase_id, category, note?, case_token? (guest) | Asks for a moderation review under one category. | A request id. |