> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.truvo.com/llms.txt.

# get_quote

POST https://api.truvo.com/v1/mcp#get_quote
Content-Type: application/json

Reference: https://docs.truvo.com/api-reference/call-get-quote

## Authentication

- `Authorization` header (bearer token, required) — Your Truvo API key, sent as a bearer token. The prefix selects sandbox (trv_sandbox_) or live (trv_live_).

## Request

### Headers

- `Accept` (string, required, default: application/json, text/event-stream)

### Body (application/json)

This endpoint expects a GetQuoteCall.

- `jsonrpc` (enum, required)
  - Allowed values: `2.0`
- `id` (integer, required)
- `method` (enum, required)
  - Allowed values: `tools/call`
- `params` (GetQuoteCallParams, required)

## Response

### 200

The JSON-RPC answer.

- `jsonrpc` (enum, optional)
  - Allowed values: `2.0`
- `id` (integer, optional)
- `result` (ToolCallAnswerResult, optional)
- `error` (ToolCallAnswerError, optional)

## Types

### GetQuoteCallParams

- `name` (enum, required)
  - Allowed values: `get_quote`
- `arguments` (GetQuoteArguments, required)

### ToolCallAnswerResult

- `content` (list of ToolCallAnswerResultContentItems, optional)
- `structuredContent` (ToolCallAnswerResultStructuredContent, optional)
- `isError` (boolean, optional)

### ToolCallAnswerError

- `code` (integer, optional)
- `message` (string, optional)

### GetQuoteArguments

- `id` (string, required)
- `version` (integer, optional)

### ToolCallAnswerResultContentItems

### ToolCallAnswerResultStructuredContent

## Examples

### Auto

**Request**

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_quote",
    "arguments": {
      "id": "qt_72e5e6944317eb9a21f71999aec888aa"
    }
  }
}
```

**Response**

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "text": "qt_72e5e6944317eb9a21f71999aec888aa version 1 from Sandbox Auto Carrier: $1860.00 for 6 months, paid in full. Status: active until 2026-10-27T15:00:50.000Z. This quote is available. Sandbox premium. Not a carrier price. Next actions: read_status. This quote can't be bought here. It rests on 5 labeled assumptions. A quote is a price offer, not coverage. One carrier's quote is not a market comparison. A value that is unknown stays unknown.",
        "type": "text"
      },
      {
        "text": "{\"id\":\"qt_72e5e6944317eb9a21f71999aec888aa\",\"version\":1,\"environment\":\"sandbox\",\"quote_request_id\":\"qreq_453eeedb7f2edbfb250d06b3a8776ba9\",\"application_id\":\"app_a0b3fb8ace118df446ee5b8378fc8db6\",\"application_version\":1,\"status\":\"active\",\"status_details\":{\"reason\":\"available\",\"message\":\"This quote is available.\"},\"source\":{\"carrier\":{\"id\":\"sandbox-auto\",\"name\":\"Sandbox Auto Carrier\"},\"product\":\"Sandbox Auto\",\"registry_ids\":[]},\"price\":{\"premium\":{\"amount_minor\":186000,\"currency\":\"USD\"},\"term_months\":6,\"billing_cycle\":\"pay_in_full\",\"fees\":[],\"comparison\":null},\"coverage\":{\"conditions\":[\"Sandbox premium. Not a carrier price.\"],\"subjects\":[{\"subject_id\":\"vehicle-1\",\"kind\":\"vehicle\",\"label\":\"2019 Toyota Camry\",\"coverages\":[{\"code\":\"bodily_injury_per_person\",\"limit\":{\"amount_minor\":10000000,\"currency\":\"USD\"},\"deductible\":null,\"included\":true},{\"code\":\"bodily_injury_per_accident\",\"limit\":{\"amount_minor\":30000000,\"currency\":\"USD\"},\"deductible\":null,\"included\":true},{\"code\":\"property_damage\",\"limit\":{\"amount_minor\":5000000,\"currency\":\"USD\"},\"deductible\":null,\"included\":true},{\"code\":\"comprehensive\",\"limit\":null,\"deductible\":{\"amount_minor\":100000,\"currency\":\"USD\"},\"included\":true},{\"code\":\"collision\",\"limit\":null,\"deductible\":{\"amount_minor\":100000,\"currency\":\"USD\"},\"included\":true}]}]},\"availability\":{\"expires_at\":\"2026-10-27T15:00:50.000Z\"},\"next_actions\":[{\"type\":\"read_status\",\"resource\":\"quote\",\"id\":\"qt_72e5e6944317eb9a21f71999aec888aa\"}],\"evidence\":{\"source_time\":\"2026-09-26T00:00:00.000Z\",\"assumptions\":[{\"path\":\"application.vehicles.0.assigned_driver\",\"value\":1,\"source\":\"single_driver\"},{\"path\":\"application.credit_mode\",\"value\":\"declined\",\"source\":\"external_default\"},{\"path\":\"contact_channels.email\",\"value\":false,\"source\":\"no_tcpa_consent\"},{\"path\":\"contact_channels.sms\",\"value\":false,\"source\":\"no_tcpa_consent\"},{\"path\":\"contact_channels.phone\",\"value\":false,\"source\":\"no_tcpa_consent\"}],\"label\":\"mock\"}}",
        "type": "text"
      }
    ],
    "structuredContent": {
      "application_id": "app_a0b3fb8ace118df446ee5b8378fc8db6",
      "application_version": 1,
      "availability": {
        "expires_at": "2026-10-27T15:00:50.000Z"
      },
      "coverage": {
        "conditions": [
          "Sandbox premium. Not a carrier price."
        ],
        "subjects": [
          {
            "coverages": [
              {
                "code": "bodily_injury_per_person",
                "deductible": null,
                "included": true,
                "limit": {
                  "amount_minor": 10000000,
                  "currency": "USD"
                }
              },
              {
                "code": "bodily_injury_per_accident",
                "deductible": null,
                "included": true,
                "limit": {
                  "amount_minor": 30000000,
                  "currency": "USD"
                }
              },
              {
                "code": "property_damage",
                "deductible": null,
                "included": true,
                "limit": {
                  "amount_minor": 5000000,
                  "currency": "USD"
                }
              },
              {
                "code": "comprehensive",
                "deductible": {
                  "amount_minor": 100000,
                  "currency": "USD"
                },
                "included": true,
                "limit": null
              },
              {
                "code": "collision",
                "deductible": {
                  "amount_minor": 100000,
                  "currency": "USD"
                },
                "included": true,
                "limit": null
              }
            ],
            "kind": "vehicle",
            "label": "2019 Toyota Camry",
            "subject_id": "vehicle-1"
          }
        ]
      },
      "environment": "sandbox",
      "evidence": {
        "assumptions": [
          {
            "path": "application.vehicles.0.assigned_driver",
            "source": "single_driver",
            "value": 1
          },
          {
            "path": "application.credit_mode",
            "source": "external_default",
            "value": "declined"
          },
          {
            "path": "contact_channels.email",
            "source": "no_tcpa_consent",
            "value": false
          },
          {
            "path": "contact_channels.sms",
            "source": "no_tcpa_consent",
            "value": false
          },
          {
            "path": "contact_channels.phone",
            "source": "no_tcpa_consent",
            "value": false
          }
        ],
        "label": "mock",
        "source_time": "2026-09-26T00:00:00.000Z"
      },
      "id": "qt_72e5e6944317eb9a21f71999aec888aa",
      "next_actions": [
        {
          "id": "qt_72e5e6944317eb9a21f71999aec888aa",
          "resource": "quote",
          "type": "read_status"
        }
      ],
      "price": {
        "billing_cycle": "pay_in_full",
        "comparison": null,
        "fees": [],
        "premium": {
          "amount_minor": 186000,
          "currency": "USD"
        },
        "term_months": 6
      },
      "quote_request_id": "qreq_453eeedb7f2edbfb250d06b3a8776ba9",
      "source": {
        "carrier": {
          "id": "sandbox-auto",
          "name": "Sandbox Auto Carrier"
        },
        "product": "Sandbox Auto",
        "registry_ids": []
      },
      "status": "active",
      "status_details": {
        "message": "This quote is available.",
        "reason": "available"
      },
      "version": 1
    }
  }
}
```

**SDK Code**

```python Auto
import requests

url = "https://api.truvo.com/v1/mcp#get_quote"

payload = {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "get_quote",
        "arguments": { "id": "qt_72e5e6944317eb9a21f71999aec888aa" }
    }
}
headers = {
    "Accept": "application/json, text/event-stream",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Auto
const url = 'https://api.truvo.com/v1/mcp#get_quote';
const options = {
  method: 'POST',
  headers: {
    Accept: 'application/json, text/event-stream',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_quote","arguments":{"id":"qt_72e5e6944317eb9a21f71999aec888aa"}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Auto
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.truvo.com/v1/mcp#get_quote"

	payload := strings.NewReader("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"get_quote\",\n    \"arguments\": {\n      \"id\": \"qt_72e5e6944317eb9a21f71999aec888aa\"\n    }\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Accept", "application/json, text/event-stream")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Auto
require 'uri'
require 'net/http'

url = URI("https://api.truvo.com/v1/mcp#get_quote")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Accept"] = 'application/json, text/event-stream'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"get_quote\",\n    \"arguments\": {\n      \"id\": \"qt_72e5e6944317eb9a21f71999aec888aa\"\n    }\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java Auto
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.truvo.com/v1/mcp#get_quote")
  .header("Accept", "application/json, text/event-stream")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"get_quote\",\n    \"arguments\": {\n      \"id\": \"qt_72e5e6944317eb9a21f71999aec888aa\"\n    }\n  }\n}")
  .asString();
```

```php Auto
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.truvo.com/v1/mcp#get_quote', [
  'body' => '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_quote",
    "arguments": {
      "id": "qt_72e5e6944317eb9a21f71999aec888aa"
    }
  }
}',
  'headers' => [
    'Accept' => 'application/json, text/event-stream',
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Auto
using RestSharp;

var client = new RestClient("https://api.truvo.com/v1/mcp#get_quote");
var request = new RestRequest(Method.POST);
request.AddHeader("Accept", "application/json, text/event-stream");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"get_quote\",\n    \"arguments\": {\n      \"id\": \"qt_72e5e6944317eb9a21f71999aec888aa\"\n    }\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Auto
import Foundation

let headers = [
  "Accept": "application/json, text/event-stream",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": [
    "name": "get_quote",
    "arguments": ["id": "qt_72e5e6944317eb9a21f71999aec888aa"]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.truvo.com/v1/mcp#get_quote")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Renters

**Request**

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_quote",
    "arguments": {
      "id": "qt_410384f2010738d18b5b9a977b55cd47"
    }
  }
}
```

**Response**

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "text": "qt_410384f2010738d18b5b9a977b55cd47 version 1 from Sandbox Renters Carrier: $312.00 for 12 months, billed monthly (about $26.00 a month). Status: active until 2026-10-27T15:00:50.000Z. This quote is available. Sandbox premium. Not a carrier price. Next actions: read_status. This quote can't be bought here. It rests on 3 labeled assumptions. A quote is a price offer, not coverage. One carrier's quote is not a market comparison. A value that is unknown stays unknown.",
        "type": "text"
      },
      {
        "text": "{\"id\":\"qt_410384f2010738d18b5b9a977b55cd47\",\"version\":1,\"environment\":\"sandbox\",\"quote_request_id\":\"qreq_e85379abd944efe0742349a53ec4117f\",\"application_id\":\"app_14dbc645173c827f95e68c65e99a1de3\",\"application_version\":1,\"status\":\"active\",\"status_details\":{\"reason\":\"available\",\"message\":\"This quote is available.\"},\"source\":{\"carrier\":{\"id\":\"sandbox-renters\",\"name\":\"Sandbox Renters Carrier\"},\"product\":\"Sandbox Renters\",\"registry_ids\":[\"quoteId:rentersoneoffer0\"]},\"price\":{\"premium\":{\"amount_minor\":31200,\"currency\":\"USD\"},\"term_months\":12,\"billing_cycle\":\"monthly\",\"fees\":[{\"code\":\"installment_fee\",\"amount\":{\"amount_minor\":1800,\"currency\":\"USD\"}}],\"comparison\":null},\"coverage\":{\"conditions\":[\"Sandbox premium. Not a carrier price.\"],\"subjects\":[{\"subject_id\":\"dwelling-1\",\"kind\":\"dwelling\",\"label\":\"100 Example Way\",\"coverages\":[{\"code\":\"personal_property\",\"limit\":{\"amount_minor\":3000000,\"currency\":\"USD\"},\"deductible\":null,\"included\":true},{\"code\":\"liability\",\"limit\":{\"amount_minor\":30000000,\"currency\":\"USD\"},\"deductible\":null,\"included\":true},{\"code\":\"deductible\",\"limit\":null,\"deductible\":{\"amount_minor\":50000,\"currency\":\"USD\"},\"included\":true}]}]},\"availability\":{\"expires_at\":\"2026-10-27T15:00:50.000Z\"},\"next_actions\":[{\"type\":\"read_status\",\"resource\":\"quote\",\"id\":\"qt_410384f2010738d18b5b9a977b55cd47\"}],\"evidence\":{\"source_time\":\"2026-09-26T00:00:00.000Z\",\"assumptions\":[{\"path\":\"contact_channels.email\",\"value\":false,\"source\":\"no_tcpa_consent\"},{\"path\":\"contact_channels.sms\",\"value\":false,\"source\":\"no_tcpa_consent\"},{\"path\":\"contact_channels.phone\",\"value\":false,\"source\":\"no_tcpa_consent\"}],\"label\":\"mock\"}}",
        "type": "text"
      }
    ],
    "structuredContent": {
      "application_id": "app_14dbc645173c827f95e68c65e99a1de3",
      "application_version": 1,
      "availability": {
        "expires_at": "2026-10-27T15:00:50.000Z"
      },
      "coverage": {
        "conditions": [
          "Sandbox premium. Not a carrier price."
        ],
        "subjects": [
          {
            "coverages": [
              {
                "code": "personal_property",
                "deductible": null,
                "included": true,
                "limit": {
                  "amount_minor": 3000000,
                  "currency": "USD"
                }
              },
              {
                "code": "liability",
                "deductible": null,
                "included": true,
                "limit": {
                  "amount_minor": 30000000,
                  "currency": "USD"
                }
              },
              {
                "code": "deductible",
                "deductible": {
                  "amount_minor": 50000,
                  "currency": "USD"
                },
                "included": true,
                "limit": null
              }
            ],
            "kind": "dwelling",
            "label": "100 Example Way",
            "subject_id": "dwelling-1"
          }
        ]
      },
      "environment": "sandbox",
      "evidence": {
        "assumptions": [
          {
            "path": "contact_channels.email",
            "source": "no_tcpa_consent",
            "value": false
          },
          {
            "path": "contact_channels.sms",
            "source": "no_tcpa_consent",
            "value": false
          },
          {
            "path": "contact_channels.phone",
            "source": "no_tcpa_consent",
            "value": false
          }
        ],
        "label": "mock",
        "source_time": "2026-09-26T00:00:00.000Z"
      },
      "id": "qt_410384f2010738d18b5b9a977b55cd47",
      "next_actions": [
        {
          "id": "qt_410384f2010738d18b5b9a977b55cd47",
          "resource": "quote",
          "type": "read_status"
        }
      ],
      "price": {
        "billing_cycle": "monthly",
        "comparison": null,
        "fees": [
          {
            "amount": {
              "amount_minor": 1800,
              "currency": "USD"
            },
            "code": "installment_fee"
          }
        ],
        "premium": {
          "amount_minor": 31200,
          "currency": "USD"
        },
        "term_months": 12
      },
      "quote_request_id": "qreq_e85379abd944efe0742349a53ec4117f",
      "source": {
        "carrier": {
          "id": "sandbox-renters",
          "name": "Sandbox Renters Carrier"
        },
        "product": "Sandbox Renters",
        "registry_ids": [
          "quoteId:rentersoneoffer0"
        ]
      },
      "status": "active",
      "status_details": {
        "message": "This quote is available.",
        "reason": "available"
      },
      "version": 1
    }
  }
}
```

**SDK Code**

```python Renters
import requests

url = "https://api.truvo.com/v1/mcp#get_quote"

payload = {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "get_quote",
        "arguments": { "id": "qt_410384f2010738d18b5b9a977b55cd47" }
    }
}
headers = {
    "Accept": "application/json, text/event-stream",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Renters
const url = 'https://api.truvo.com/v1/mcp#get_quote';
const options = {
  method: 'POST',
  headers: {
    Accept: 'application/json, text/event-stream',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_quote","arguments":{"id":"qt_410384f2010738d18b5b9a977b55cd47"}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Renters
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.truvo.com/v1/mcp#get_quote"

	payload := strings.NewReader("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"get_quote\",\n    \"arguments\": {\n      \"id\": \"qt_410384f2010738d18b5b9a977b55cd47\"\n    }\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Accept", "application/json, text/event-stream")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Renters
require 'uri'
require 'net/http'

url = URI("https://api.truvo.com/v1/mcp#get_quote")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Accept"] = 'application/json, text/event-stream'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"get_quote\",\n    \"arguments\": {\n      \"id\": \"qt_410384f2010738d18b5b9a977b55cd47\"\n    }\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java Renters
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.truvo.com/v1/mcp#get_quote")
  .header("Accept", "application/json, text/event-stream")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"get_quote\",\n    \"arguments\": {\n      \"id\": \"qt_410384f2010738d18b5b9a977b55cd47\"\n    }\n  }\n}")
  .asString();
```

```php Renters
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.truvo.com/v1/mcp#get_quote', [
  'body' => '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_quote",
    "arguments": {
      "id": "qt_410384f2010738d18b5b9a977b55cd47"
    }
  }
}',
  'headers' => [
    'Accept' => 'application/json, text/event-stream',
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Renters
using RestSharp;

var client = new RestClient("https://api.truvo.com/v1/mcp#get_quote");
var request = new RestRequest(Method.POST);
request.AddHeader("Accept", "application/json, text/event-stream");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"get_quote\",\n    \"arguments\": {\n      \"id\": \"qt_410384f2010738d18b5b9a977b55cd47\"\n    }\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Renters
import Foundation

let headers = [
  "Accept": "application/json, text/event-stream",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": [
    "name": "get_quote",
    "arguments": ["id": "qt_410384f2010738d18b5b9a977b55cd47"]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.truvo.com/v1/mcp#get_quote")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Pet

**Request**

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_quote",
    "arguments": {
      "id": "qt_9536dc6d92e0f3c38f5c8be957da8aaa"
    }
  }
}
```

**Response**

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "text": "qt_9536dc6d92e0f3c38f5c8be957da8aaa version 1 from Sandbox Pet Carrier: $24.00 for 12 months, billed monthly (about $2.00 a month). Status: active until 2026-10-27T15:00:50.000Z. This quote is available. Sandbox premium. Not a carrier price. Next actions: read_status, continue_on_carrier_site. Give the person this carrier site link as it is, in the sandbox too: https://www.truvo.com/s/2a157f0ef96f35c18184 It rests on 3 labeled assumptions. A quote is a price offer, not coverage. One carrier's quote is not a market comparison. A value that is unknown stays unknown.",
        "type": "text"
      },
      {
        "text": "{\"id\":\"qt_9536dc6d92e0f3c38f5c8be957da8aaa\",\"version\":1,\"environment\":\"sandbox\",\"quote_request_id\":\"qreq_21b900507f3d1c03d4446c36850f7341\",\"application_id\":\"app_95339f84ff8e09868e58d4467dcdf20f\",\"application_version\":1,\"status\":\"active\",\"status_details\":{\"reason\":\"available\",\"message\":\"This quote is available.\"},\"source\":{\"carrier\":{\"id\":\"sandbox-pet\",\"name\":\"Sandbox Pet Carrier\"},\"product\":\"Sandbox Pet Accident and Illness\",\"registry_ids\":[\"quoteId:synpetonedog0\"]},\"price\":{\"premium\":{\"amount_minor\":2400,\"currency\":\"USD\"},\"term_months\":12,\"billing_cycle\":\"monthly\",\"fees\":[],\"comparison\":null},\"coverage\":{\"conditions\":[\"Sandbox premium. Not a carrier price.\"],\"subjects\":[{\"subject_id\":\"pet-1\",\"kind\":\"pet\",\"label\":\"Biscuit\",\"coverages\":[{\"code\":\"annual_limit\",\"limit\":{\"amount_minor\":500000,\"currency\":\"USD\"},\"deductible\":null,\"included\":true},{\"code\":\"deductible\",\"limit\":null,\"deductible\":{\"amount_minor\":50000,\"currency\":\"USD\"},\"included\":true}]}]},\"availability\":{\"expires_at\":\"2026-10-27T15:00:50.000Z\"},\"next_actions\":[{\"type\":\"read_status\",\"resource\":\"quote\",\"id\":\"qt_9536dc6d92e0f3c38f5c8be957da8aaa\"},{\"type\":\"continue_on_carrier_site\",\"quote_id\":\"qt_9536dc6d92e0f3c38f5c8be957da8aaa\",\"quote_version\":1,\"redirect_path\":\"/v1/handoffs/hoff_43e803408b70e95a4e348fb24bbfe0b6\",\"url\":\"https://www.truvo.com/s/2a157f0ef96f35c18184\",\"open\":\"new_tab\"}],\"evidence\":{\"source_time\":\"2026-09-26T00:00:00.000Z\",\"assumptions\":[{\"path\":\"contact_channels.email\",\"value\":false,\"source\":\"no_tcpa_consent\"},{\"path\":\"contact_channels.sms\",\"value\":false,\"source\":\"no_tcpa_consent\"},{\"path\":\"contact_channels.phone\",\"value\":false,\"source\":\"no_tcpa_consent\"}],\"label\":\"mock\"}}",
        "type": "text"
      }
    ],
    "structuredContent": {
      "application_id": "app_95339f84ff8e09868e58d4467dcdf20f",
      "application_version": 1,
      "availability": {
        "expires_at": "2026-10-27T15:00:50.000Z"
      },
      "coverage": {
        "conditions": [
          "Sandbox premium. Not a carrier price."
        ],
        "subjects": [
          {
            "coverages": [
              {
                "code": "annual_limit",
                "deductible": null,
                "included": true,
                "limit": {
                  "amount_minor": 500000,
                  "currency": "USD"
                }
              },
              {
                "code": "deductible",
                "deductible": {
                  "amount_minor": 50000,
                  "currency": "USD"
                },
                "included": true,
                "limit": null
              }
            ],
            "kind": "pet",
            "label": "Biscuit",
            "subject_id": "pet-1"
          }
        ]
      },
      "environment": "sandbox",
      "evidence": {
        "assumptions": [
          {
            "path": "contact_channels.email",
            "source": "no_tcpa_consent",
            "value": false
          },
          {
            "path": "contact_channels.sms",
            "source": "no_tcpa_consent",
            "value": false
          },
          {
            "path": "contact_channels.phone",
            "source": "no_tcpa_consent",
            "value": false
          }
        ],
        "label": "mock",
        "source_time": "2026-09-26T00:00:00.000Z"
      },
      "id": "qt_9536dc6d92e0f3c38f5c8be957da8aaa",
      "next_actions": [
        {
          "id": "qt_9536dc6d92e0f3c38f5c8be957da8aaa",
          "resource": "quote",
          "type": "read_status"
        },
        {
          "open": "new_tab",
          "quote_id": "qt_9536dc6d92e0f3c38f5c8be957da8aaa",
          "quote_version": 1,
          "redirect_path": "/v1/handoffs/hoff_43e803408b70e95a4e348fb24bbfe0b6",
          "type": "continue_on_carrier_site",
          "url": "https://www.truvo.com/s/2a157f0ef96f35c18184"
        }
      ],
      "price": {
        "billing_cycle": "monthly",
        "comparison": null,
        "fees": [],
        "premium": {
          "amount_minor": 2400,
          "currency": "USD"
        },
        "term_months": 12
      },
      "quote_request_id": "qreq_21b900507f3d1c03d4446c36850f7341",
      "source": {
        "carrier": {
          "id": "sandbox-pet",
          "name": "Sandbox Pet Carrier"
        },
        "product": "Sandbox Pet Accident and Illness",
        "registry_ids": [
          "quoteId:synpetonedog0"
        ]
      },
      "status": "active",
      "status_details": {
        "message": "This quote is available.",
        "reason": "available"
      },
      "version": 1
    }
  }
}
```

**SDK Code**

```python Pet
import requests

url = "https://api.truvo.com/v1/mcp#get_quote"

payload = {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "get_quote",
        "arguments": { "id": "qt_9536dc6d92e0f3c38f5c8be957da8aaa" }
    }
}
headers = {
    "Accept": "application/json, text/event-stream",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Pet
const url = 'https://api.truvo.com/v1/mcp#get_quote';
const options = {
  method: 'POST',
  headers: {
    Accept: 'application/json, text/event-stream',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_quote","arguments":{"id":"qt_9536dc6d92e0f3c38f5c8be957da8aaa"}}}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Pet
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.truvo.com/v1/mcp#get_quote"

	payload := strings.NewReader("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"get_quote\",\n    \"arguments\": {\n      \"id\": \"qt_9536dc6d92e0f3c38f5c8be957da8aaa\"\n    }\n  }\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Accept", "application/json, text/event-stream")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Pet
require 'uri'
require 'net/http'

url = URI("https://api.truvo.com/v1/mcp#get_quote")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Accept"] = 'application/json, text/event-stream'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"get_quote\",\n    \"arguments\": {\n      \"id\": \"qt_9536dc6d92e0f3c38f5c8be957da8aaa\"\n    }\n  }\n}"

response = http.request(request)
puts response.read_body
```

```java Pet
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.truvo.com/v1/mcp#get_quote")
  .header("Accept", "application/json, text/event-stream")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"get_quote\",\n    \"arguments\": {\n      \"id\": \"qt_9536dc6d92e0f3c38f5c8be957da8aaa\"\n    }\n  }\n}")
  .asString();
```

```php Pet
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.truvo.com/v1/mcp#get_quote', [
  'body' => '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_quote",
    "arguments": {
      "id": "qt_9536dc6d92e0f3c38f5c8be957da8aaa"
    }
  }
}',
  'headers' => [
    'Accept' => 'application/json, text/event-stream',
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp Pet
using RestSharp;

var client = new RestClient("https://api.truvo.com/v1/mcp#get_quote");
var request = new RestRequest(Method.POST);
request.AddHeader("Accept", "application/json, text/event-stream");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"get_quote\",\n    \"arguments\": {\n      \"id\": \"qt_9536dc6d92e0f3c38f5c8be957da8aaa\"\n    }\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Pet
import Foundation

let headers = [
  "Accept": "application/json, text/event-stream",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": [
    "name": "get_quote",
    "arguments": ["id": "qt_9536dc6d92e0f3c38f5c8be957da8aaa"]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.truvo.com/v1/mcp#get_quote")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```