Skip to main content
Glama

Get the next step for a quote

zebra_get_rate_action
Read-only

Get the next step for the quote the user chose. Pass the quote_handle from zebra_start_session and the chosen quote's quote_id from zebra_get_rc1_rates.

Follow recommended_next to continue buying in this chat. Its instruction says when to give the user the url instead.

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_rate_action"
  }
}

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
urlYesWhere the user continues buying the policy on The Zebra.
recommended_nextYesThe tool to call next to continue buying in this chat.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • removedOutput schema / properties / recommended_next / anyOf
      Removed value: -[
      -  {
      -    "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"
      -  }
      -]
    • removedOutput schema / properties / recommended_next / default
      Removed value: -null
    • changedOutput schema / properties / recommended_next / description
      Previous value: -"The tool to call next to continue buying in this chat. When absent, give the user the url."New value: +"The tool to call next to continue buying in this chat."
    • addedOutput schema / properties / recommended_next / properties
      Added value: +{
      +  "instruction": {
      +    "description": "How and when to call it.",
      +    "type": "string"
      +  },
      +  "tool": {
      +    "description": "The tool to call next.",
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / recommended_next / required
      Added value: +[
      +  "tool",
      +  "instruction"
      +]
    • addedOutput schema / properties / recommended_next / type
      Added value: +"object"
    • changedOutput schema / required
      Previous value: -[
      -  "url"
      -]New value: +[
      +  "url",
      +  "recommended_next"
      +]
  2. Changed1 schema field changed
    • 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 to continue buying in this chat. When absent, give the user the url."
      +}
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety is covered. The description adds genuinely new behavioral context: the response drives the next action via recommended_next and may instruct handing off to a url, which tells the agent this is a decision point rather than a data dump. It does not describe failure modes, though the schema covers handle expiry.

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?

Two short sentences with zero filler: the action and its inputs come first, the follow-up behavior second. Every clause carries information an agent needs to call and act on the result.

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?

The tool is simple (2 required params), both params are fully documented in the schema, an output schema exists so return values need no prose, and annotations cover the safety profile. The description supplies the workflow position and the follow-up rule, which is the only thing structured fields cannot express.

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%, and the description's parameter guidance (quote_handle from zebra_start_session, quote_id from zebra_get_rc1_rates) restates what the schema properties already say. It adds provenance context but no new syntax, format, or constraint information, 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 ("get the next step for the quote the user chose") and pins it to a precise point in the flow by naming the sibling tools that supply each input (zebra_start_session, zebra_get_rc1_rates). An agent can distinguish it from the rate-fetching and pricing siblings without opening a 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?

Gives clear sequencing guidance: call this after the user has picked a quote, then follow the returned recommended_next to continue buying in chat, including when to hand the user a url instead. It does not explicitly state exclusions or preconditions (e.g., that a session must still be valid), which keeps it short of a 5.

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