Skip to main content
Glama

Submit answers to the carrier

zebra_submit_rc2_answers
Destructive

Submit the user's answers to the questions from zebra_get_rc2_questions, all at once.

On success, a licensed insurance agent at agency_phone finishes buying the policy with the user. Present agency_call_message as written: it says whether the agency is open now or when it opens. Never tell the user to call now when it says the agency is closed, and never promise a voicemail or a callback. When continue_url is returned, also offer it: the user can finish online with a licensed insurance agent during agency hours. When price_status is in_progress, the carrier's final price is on its way: tell the user and follow recommended_next. If it fails with an agency_phone, this quote can't be bought in chat right now. Call again if retryable is true. Otherwise, or if it keeps failing, give the user agency_phone and the agency hours to finish with a licensed insurance agent, or offer them another quote from zebra_get_rc1_rates.

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>",
      "answers": "<answers>"
    },
    "name": "zebra_submit_rc2_answers"
  }
}

Input Schema

NameRequiredDescriptionDefault
answersYesEvery answer, including the current_values the user kept, keyed by field_key (each part of a grouped question under its child_field_keys key). Answer a CHECKBOX question with a list of the chosen values, even when only one is chosen: ["Yes"], not "Yes".
quote_idYesThe quote_id passed to zebra_get_rc2_questions.
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
agency_phoneYesThe licensed agency the user calls to finish buying the policy.
continue_urlNoWhere the user can finish online with a licensed insurance agent, by chat or over the phone, during agency hours.
price_statusYesin_progress: the carrier's final price is being fetched; follow recommended_next. unavailable: there won't be an automated final price; a licensed insurance agent gives it.
recommended_nextNoThe tool to call next for the final price. Absent when price_status is unavailable.
agency_call_messageYesWhat to tell the user next: whether the agency is open now or when it opens, the phone number, and the agency hours. Present it as written.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / price_status
      Added value: +{
      +  "description": "in_progress: the carrier's final price is being fetched; follow recommended_next. unavailable: there won't be an automated final price; a licensed insurance agent gives it.",
      +  "enum": [
      +    "in_progress",
      +    "unavailable"
      +  ],
      +  "type": "string"
      +}
    • addedOutput schema / properties / recommended_next
      Added value: +{
      +  "anyOf": [
      +    {
      +      "properties": {
      +        "instruction": {
      +          "description": "How and when to call it.",
      +          "type": "string"
      +        },
      +        "tool": {
      +          "description": "The tool to call next.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "tool",
      +        "instruction"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The tool to call next for the final price. Absent when price_status is unavailable."
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "agency_phone",
      -  "agency_call_message"
      -]New value: +[
      +  "agency_phone",
      +  "agency_call_message",
      +  "price_status"
      +]
  2. Changed2 schema fields changed
    • changedOutput schema / properties / agency_call_message / description
      Previous value: -"What to tell the user next: whether the agency is open now or when it opens, the phone number, and the agency hours. Present it verbatim or nearly so."New value: +"What to tell the user next: whether the agency is open now or when it opens, the phone number, and the agency hours. Present it as written."
    • changedOutput schema / properties / continue_url / description
      Previous value: -"Where the user can finish online with a licensed agent, by chat or over the phone, during agency hours."New value: +"Where the user can finish online with a licensed insurance agent, by chat or over the phone, during agency hours."
  3. Changed1 schema field changed
    • changedInput schema / properties / answers / description
      Previous value: -"Every answer, including the current_values the user kept, keyed by field_key (each part of a grouped question under its child_field_keys key)."New value: +"Every answer, including the current_values the user kept, keyed by field_key (each part of a grouped question under its child_field_keys key). Answer a CHECKBOX question with a list of the chosen values, even when only one is chosen: [\"Yes\"], not \"Yes\"."
  4. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag this as a destructive, non-idempotent, open-world write, and the description adds substantive outcome semantics: what happens on success (licensed agent completes the purchase), how to read agency_call_message, continue_url, price_status=in_progress, and retryable failures. It does not disclose that submitted answers cannot be amended or that retrying may duplicate submissions, which is the key risk implied by destructiveHint/non-idempotent.

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

Conciseness4/5

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

The action is front-loaded in the first sentence, and each subsequent sentence handles a distinct response branch rather than repeating itself. It is dense and somewhat instruction-heavy, but nearly every clause maps to a real conditional state.

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

Completeness4/5

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

For a three-required-param, nested-object mutation with an output schema, the description covers the user-facing handling of each returned field and the fallback path adequately. What remains thin is the mutation's irreversibility and any guidance on retrying a partially failed submission beyond the retryable flag.

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 description coverage is 100%, so quote_handle, quote_id, and answers (including the CHECKBOX list convention and current_values) are already fully documented in the schema. The description adds no parameter-level meaning beyond it, so the baseline 3 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 (submit answers) plus scope ('to the questions from zebra_get_rc2_questions, all at once'), which distinguishes it from the retrieval sibling in the same workflow. An agent can identify the tool 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 Guidelines4/5

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

Establishes sequencing implicitly by tying submission to the questions returned by zebra_get_rc2_questions, and gives an explicit fallback path to agency_phone or zebra_get_rc1_rates on failure. It does not spell out prohibitions (e.g. don't call before getting questions, don't retry non-idempotently), so it falls short of full when/when-not coverage.

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