Skip to main content
Glama

Get the carrier's follow-up questions

zebra_get_rc2_questions
Idempotent

Get the questions the carrier needs answered before the user can buy the quote they picked.

Ask the questions in order. Ask a question if any of its visibility_conditions is met, or, when it has none, if is_visible is true. Check this again after each answer, because an answer can make new questions appear. Of the questions you'll ask, read back the ones with a current_value together and ask if any have changed; ask the rest one by one. For a question with child_field_keys, send each part under its child key. If the user doesn't want to give a driver's license number, or you're not allowed to collect it, send null for it: the licensed agent will ask for it on the call or in the chat.

Then call zebra_submit_rc2_answers once with the same quote_id and every answer, including the current_values the user kept. If the user's driver or vehicle details change, call zebra_get_rc1_rates and this tool again: the questions depend on them.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "quote_handle": "<quote_handle>",
      "quote_id": "<quote_id>"
    },
    "name": "zebra_get_rc2_questions"
  }
}

Input Schema

NameRequiredDescriptionDefault
quote_idYesThe quote_id of the quote the user picked, from zebra_get_rc1_rates.
quote_handleYesThe quote_handle that zebra_start_session returned. It expires 24 hours after zebra_start_session; if a tool reports it unknown or expired, start a new session.

Output Schema

NameRequiredDescriptionDefault
quote_idYesThe quote_id these questions are for.
questionsYesThe questions to ask the user, in order.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / questions / items / properties / visibility_conditions / description
      Previous value: -"Ask this question only when ALL of these hold, comparing the answer for each trigger field (its current_value until the user changes it) to the stated value."New value: +"Ask this question if ANY of these hold, comparing the answer for each trigger field (its current_value until the user changes it) to the stated value."
  2. Changed3 schema fields changed
    • changedOutput schema / properties / questions / items / properties / current_value / description
      Previous value: -"The answer already on file, from a default or an earlier answer, or null if there is none. Confirm it with the user rather than asking from scratch, and send it in zebra_submit_rc2_answers if they keep it."New value: +"The answer already on file or null if there is none. Make sure to send all values to zebra_submit_rc2_answers even if the current_value is kept."
    • changedOutput schema / properties / questions / items / properties / options / description
      Previous value: -"The allowed answers, sent by value. If empty, any answer is valid."New value: +"The allowed answers, sent by value. If empty, any answer is valid. For a CHECKBOX question, send a list of the chosen values, even when only one is chosen: [\"Yes\"], not \"Yes\"."
    • addedOutput schema / properties / questions / items / properties / suggested_value
      Added value: +{
      +  "anyOf": [
      +    {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "integer"
      +        }
      +      ]
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The Zebra's suggested answer or null. Only set when there's no current_value. Use this value unless a more accurate response is known."
      +}
  3. Added

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Going well beyond the annotations, it discloses the conditional-ask algorithm (visibility_conditions, is_visible), the batch-vs-individual asking strategy for current_value questions, child_field_keys handling, and the null fallback when a driver's license number is refused or cannot be collected. It does not address why readOnlyHint=false despite the 'get' framing, nor idempotency, but the process-level disclosure is substantial.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Purpose is front-loaded in the first sentence, then a compact procedural block, then the hand-off call. The density is justified because each clause encodes a distinct decision rule the agent must execute.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema handling return values and full schema coverage on both params, the remaining burden is procedural and sequencing, which the description covers: ordering, re-checking, grouping, null handling, submission, and re-fetch triggers.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so quote_id and quote_handle are already documented in the schema, including the 24-hour expiry. The description only reinforces 'the same quote_id' in the submit step and adds no new format or constraint detail, so the baseline applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Get the questions the carrier needs answered before the user can buy the quote they picked') and frames the output as the prerequisite for a purchase step, which cleanly separates it from zebra_submit_rc2_answers and zebra_get_rc1_rates. The agent can tell what it retrieves and why without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing: ask questions in order, re-evaluate visibility after each answer, then 'call zebra_submit_rc2_answers once with the same quote_id and every answer', and re-call zebra_get_rc1_rates plus this tool if driver or vehicle details change. Alternatives and their triggering conditions are named, not inferred.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources