Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this plugin are documented here. The format follows
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow [Semantic Versioning](https://semver.org).

## [Unreleased]

### Added

- The customer's businesses: `freightright_list_business_profiles`, `freightright_create_business_profile` and
`freightright_select_business_profile`, under the new `business_profiles:write` permission (listing rides on
`bookings:write`). A prepared booking first asks who it bills; when the customer needs to add or choose a business
it refuses with `business_profile_required` or `business_choice_required` and names the tool to call next.
- The `booking-handoff` skill says how to handle those refusals. Contract, mocks and the eval tool list refreshed —
thirty-nine tools.

## [0.2.3] - 2026-11-10

### Added
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ recorded here. Installing and using the skills is what the table reports.

## What the connector can do

Thirty-six tools. Everything is read-only except the twelve marked **write**, and only one call can ever spend part
Thirty-nine tools. Everything is read-only except the fourteen marked **write**, and only one call can ever spend part
of the monthly price-check allowance.

| Area | Tools | |
Expand All @@ -223,6 +223,7 @@ of the monthly price-check allowance.
| **Quotes** | `freightright_list_quotes` · `freightright_get_quote` · `freightright_share_quote` **(write, administrators)** · `freightright_get_quote_offers` **(administrators)** · `freightright_select_quote_offer` **(write, administrators)** · `freightright_send_quote` **(write, administrators)** · `freightright_public_link` **(write)** · `freightright_change_public_link` **(write)** | Every quote, whatever created it, and one by its number with its offer; an administrator shares one with e-mail addresses, and finishes a draft: its offers, the one chosen and sending it; a customer gives their own quotes a public link, an administrator any quote |
| **Requests to Freight Right's team** | `freightright_list_requests` · `freightright_create_request_draft` **(write)** · `freightright_update_request_draft` **(write)** · `freightright_preview_request` · `freightright_submit_request` **(write)** · `freightright_get_request` · `freightright_withdraw_request` **(write)** | A spot rate, a contract, booking help, a shipment problem, a correction, a PO discrepancy or a feature, in the customer's own words — sent only after they saw the preview and said yes, answered by e-mail |
| **Bookings** | `freightright_prepare_instant_booking` **(write)** · `freightright_prepare_rate_request_booking` **(write)** · `freightright_get_booking_operation` | Prepare a link, then read the decision |
| **Businesses** | `freightright_list_business_profiles` · `freightright_create_business_profile` **(write)** · `freightright_select_business_profile` **(write)** | The business a booking bills and Freight Right invoices: list them, add one (set up as a company at once) or choose the default; the customer confirms on the booking page that they may book for a business their assistant added |
| **Shipments** | `freightright_find_shipments` · `freightright_list_shipments` · `freightright_get_shipment` · `freightright_list_shipment_events` | Track what is already moving — legs, milestones, containers with their contents and terminal state — and what changed, as a feed |
| **A shipment's billing, customs and documents** | `freightright_get_shipment_billing` · `freightright_get_shipment_customs` · `freightright_list_invoices` · `freightright_list_shipment_documents` · `freightright_get_shipment_document` | Invoices and charge lines per currency, customs entries, the customer's invoices across shipments, documents with a download link that lives for minutes |

Expand Down
183 changes: 182 additions & 1 deletion contract/tools.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"source": {
"repository": "freight-right/fr-mcp",
"revision": "75c0dda6b43be22449719a738e94c592a48075f9"
"revision": "b8aa27ff58bf6dc73a7dd27baad027a0927ef93a"
},
"tools": [
{
Expand Down Expand Up @@ -40,6 +40,129 @@
"rate_requests:write"
]
},
{
"name": "freightright_create_business_profile",
"description": "Add a business to the customer's account: the company their bookings bill and Freight Right invoices. Ask the customer for its legal name, main address (United States or Canada, no PO boxes) and phone; the account's name and e-mail fill the contact and the invoice e-mail unless they give another invoice e-mail. Only with `authorized: true`, after the customer said they are authorized to book shipments for this business and accept the booking terms: they confirm it themselves on the Freight Right booking page before its first booking. It is set up as a company with Freight Right at once (`status` setting_up, usually ready within seconds) and can be priced and booked meanwhile; the first business becomes the default. Adding the same business again returns it. An account has a limit of businesses.",
"inputSchema": {
"type": "object",
"additionalProperties": false,
"properties": {
"legal_name": {
"description": "The legal name, as bookings and invoices show it. For a person shipping in their own name, their full legal name with entity_type 'individual'.",
"maxLength": 100,
"minLength": 2,
"type": "string"
},
"address_line1": {
"description": "Street address (no PO boxes).",
"maxLength": 50,
"minLength": 1,
"type": "string"
},
"city": {
"maxLength": 50,
"minLength": 1,
"type": "string"
},
"state": {
"description": "2-letter state or province code, like CA or ON.",
"pattern": "^[A-Za-z]{2}$",
"type": "string"
},
"postal_code": {
"description": "ZIP or postal code.",
"maxLength": 10,
"minLength": 3,
"type": "string"
},
"country": {
"description": "United States or Canada.",
"enum": [
"US",
"CA"
],
"type": "string"
},
"phone": {
"description": "Main phone number.",
"maxLength": 25,
"minLength": 7,
"type": "string"
},
"authorized": {
"const": true,
"description": "True only after the customer said they are authorized to book shipments for this business and accept the booking terms.",
"type": "boolean"
},
"address_line2": {
"anyOf": [
{
"maxLength": 50,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Suite or unit."
},
"entity_type": {
"default": "business",
"description": "individual: a person shipping in their own name.",
"enum": [
"business",
"individual"
],
"type": "string"
},
"invoice_email": {
"anyOf": [
{
"maxLength": 254,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Where invoices go; the account's e-mail when not given."
},
"website": {
"anyOf": [
{
"maxLength": 255,
"type": "string"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"legal_name",
"address_line1",
"city",
"state",
"postal_code",
"country",
"phone",
"authorized"
]
},
"annotations": {
"readOnlyHint": false,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
},
"scopes": [
"business_profiles:write"
]
},
{
"name": "freightright_create_request_draft",
"description": "Start a request to Freight Right's team — a spot rate, a contract inquiry, booking help, a shipment issue, a data correction, a PO discrepancy (what a container held against the purchase order: the shipment reference, which Freight Right verifies against the shipment before acting, the container, the PO number, the SKU, expected and found quantities) or a feature request — from the customer's own words (`message`, stored exactly as said) and the details you read from them (the slot arguments; give what the customer said, never a guess). Nothing is sent and nobody is notified: the draft is private until freightright_submit_request. The answer says what Freight Right understood, what is still missing and the ONE question to ask next; fill the answer in with freightright_update_request_draft, then show freightright_preview_request. BEFORE creating one, call freightright_list_requests: never file a duplicate of a request that is still open — continue the open one instead. The reply address is the account's own e-mail and the account is already known, so never ask for it; ask which organization only when the answer lists `organization` in `missing_fields`, and pass `billing_organization_id` from freightright_list_billing_organizations. The same message with the same details within 30 days returns that same request, whatever became of it (the answer says so in `replayed`). Needs a Freight Right account — free: sign up on Shipment Manager's sign-up page, then connect your assistant. A Freight Right administrator files requests for a customer on the staff page, not here. At most 20 drafts per organization per day; the answer says when the limit resets.",
Expand Down Expand Up @@ -2063,6 +2186,24 @@
},
"scopes": []
},
{
"name": "freightright_list_business_profiles",
"description": "List the customer's businesses: the companies a booking can bill and Freight Right invoices, the default one marked. Prices and quote requests that name no billing use the default; a booking needs one while Freight Right asks for it (the prepare tools say so). With several and no default, ask the customer which one and choose it with freightright_select_business_profile; with none, add one with freightright_create_business_profile. A Freight Right administrator has none. Read-only.",
"inputSchema": {
"type": "object",
"additionalProperties": false,
"properties": {}
},
"annotations": {
"readOnlyHint": true,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
},
"scopes": [
"bookings:write"
]
},
{
"name": "freightright_list_invoices",
"description": "The customer's invoices across shipments, as the Billing page of Shipment Manager shows them: each accounting invoice with its shipment reference, dates, total, outstanding amount, paid or cancelled state and a PDF link valid for minutes; the first page also says how many are open and what is outstanding per currency. `open=true` keeps the unpaid ones (an outstanding amount, not cancelled), `open=false` the settled ones, omitted both. Never add amounts across currencies. Newest first, cursor-paged: follow `next_cursor` with the same `open`. A customer sees the invoices billed to its organizations; a Freight Right administrator every one. Read-only.",
Expand Down Expand Up @@ -3672,6 +3813,46 @@
"rate_requests:write"
]
},
{
"name": "freightright_select_business_profile",
"description": "Choose the business a booking bills. Without `rate_request_id` it becomes the customer's default, which new prices and quote requests use (an instant price already made keeps its billing: price again after choosing). With `rate_request_id` it bills that quote request, if it is not booked yet; Freight Right refuses one priced for another customer group (ask for a new quote). Use the id from freightright_list_business_profiles, as the customer chose it.",
"inputSchema": {
"type": "object",
"additionalProperties": false,
"properties": {
"business_profile_id": {
"description": "From freightright_list_business_profiles.",
"minimum": 1,
"type": "integer"
},
"rate_request_id": {
"anyOf": [
{
"pattern": "^rfq_[0-9a-f]{32}$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "The quote request to bill to it, not yet booked."
}
},
"required": [
"business_profile_id"
]
},
"annotations": {
"readOnlyHint": false,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false
},
"scopes": [
"business_profiles:write"
]
},
{
"name": "freightright_select_quote_offer",
"description": "Make one of a draft quote's offers its offer — a Freight Right administrator's connection only. Give the `offer_id` and `revision` exactly as freightright_get_quote_offers listed them, and only the offer the user chose: tell them its carrier and total first. WHETHER YOUR USER IS ASKED TO CONFIRM BEFORE THIS IS SENT DEPENDS ON THEIR ASSISTANT SETTINGS, NOT ON FREIGHT RIGHT. A quote keeps the first offer selected; changing it is done on the quote page in Shipment Manager. If the offer changed or is no longer listed, list the offers again. The quote stays a draft until it is sent.",
Expand Down
2 changes: 1 addition & 1 deletion plugins/freightright/evals/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ that number separately, and never present the package Δ as though it were this
## Layout

- `mocks/freightright/<tool>.md` — one file per tool, shared by every case. **A tool with no mock file is not
available to Claude at all**, which is why all thirty-six are here.
available to Claude at all**, which is why all thirty-nine are here.
- `mocks/freightright/_tools.json` — a saved `tools/list` response, so mocked tools carry their real descriptions
and input schemas rather than a permissive placeholder. Regenerate it from `contract/tools.json`.
- `<case>/mocks/` — overrides for one case, such as a price check that comes back still running.
Expand Down
Loading
Loading