Skip to main content
Glama

Request Callback

request_callback
DestructiveIdempotent

Send a callback request only after the customer explicitly agrees to send these contact details and this request to the named business; set consent=true. Current quote-request eligibility applies. Advocate attempts a notification through the business's configured lead routing channel (SMS/email); provider acceptance is not proof the business read it. Quote and callback requests share contact, address and business limits. An address or business ceiling saves the request without sending a notification. A failed or pending result is not proof of delivery; check the same request. Reusing the same idempotency_key and details returns the original outcome without another send or count. Changed details are refused. If the result includes customer_notice, show it to the customer word for word.

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": {
      "slug": "<slug>",
      "consent": "<consent>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "request_callback"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesBusiness slug identifier
reasonNoWhy the user wants the callback
consentYesTrue only after the customer explicitly agrees to send these contact details and this callback request to the named business
urgencyNoHow time-sensitive (default: normal)
agent_idNoOptional agent identifier
contact_nameNoEnd-user's name
contact_emailNoEnd-user's email
contact_phoneNoEnd-user's phone
idempotency_keyYesReuse with the same request details to check or retry without another send
preferred_channelNoChannel the user prefers (default: any)

Output Schema

NameRequiredDescriptionDefault
reasonNoPresent for a known routing or provider outcome: 'form_routing_configured', 'no_recipient_configured', 'sms_consent_missing', a shape-mismatch skip, a spend-cap denial, or a provider failure code
statusYes'notified': the configured notification provider accepted the request; this does not prove the business read it. 'failed': routing was not available or the provider reported a failure — see reason. 'pending': a web-form business (see form_url), or a replay while the original send is still in flight or its delivery outcome is unconfirmed. Reuse the same request reference; do not create a duplicate.
form_urlNoPresent with reason 'form_routing_configured': the business's own contact form for the user to complete, or null where the business chose form routing without supplying one
callback_idYes
status_tokenNoPass to get_request_status to read the business's answer. For this caller only.
delivered_viaYes'sms' or 'email' when notified; null otherwise
acknowledgmentYesCustomer-facing sentence to relay; null only on a replay caught while the original send is still in flight
customer_noticeNoA sentence for the customer. When present, show it to them word for word.
idempotent_replayNoPresent and true when this idempotency_key already had a request; nothing was re-sent

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / customer_notice
      Added value: +{
      +  "description": "A sentence for the customer. When present, show it to them word for word.",
      +  "type": "string"
      +}
  2. Changed7 schema fields changed
    • addedInput schema / properties / consent
      Added value: +{
      +  "const": true,
      +  "description": "True only after the customer explicitly agrees to send these contact details and this callback request to the named business",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / contact_email / maxLength
      Added value: +254
    • addedInput schema / properties / contact_name / minLength
      Added value: +1
    • addedInput schema / properties / contact_phone / minLength
      Added value: +1
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Idempotency key"New value: +"Reuse with the same request details to check or retry without another send"
    • changedInput schema / required
      Previous value: -[
      -  "slug",
      -  "idempotency_key"
      -]New value: +[
      +  "slug",
      +  "consent",
      +  "idempotency_key"
      +]
    • changedOutput schema / properties / status / description
      Previous value: -"'notified': the configured notification provider accepted the request; this does not prove the business read it. 'failed': routing was not available or the provider reported a failure — see reason. 'pending': a web-form business (see form_url), or a replay while the original send is still in flight."New value: +"'notified': the configured notification provider accepted the request; this does not prove the business read it. 'failed': routing was not available or the provider reported a failure — see reason. 'pending': a web-form business (see form_url), or a replay while the original send is still in flight or its delivery outcome is unconfirmed. Reuse the same request reference; do not create a duplicate."
  3. Changed1 schema field changed
    • addedOutput schema / properties / status_token
      Added value: +{
      +  "description": "Pass to get_request_status to read the business's answer. For this caller only.",
      +  "type": "string"
      +}
  4. Changed11 schema fields changed
    • changedInput schema / properties / contact_email / pattern
      Previous value: -"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"New value: +"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
    • removedOutput schema / properties / acknowledgment / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / acknowledgment / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / delivered_via / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / delivered_via / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / form_url / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / form_url / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / reason / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / reason / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / status / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / status / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  5. Changed2 schema fields changed
    • changedOutput schema / properties / reason / description
      Previous value: -"Present when nothing was delivered: 'form_routing_configured', 'no_recipient_configured', 'sms_consent_missing', a shape-mismatch skip, a spend-cap denial, or a provider failure code"New value: +"Present for a known routing or provider outcome: 'form_routing_configured', 'no_recipient_configured', 'sms_consent_missing', a shape-mismatch skip, a spend-cap denial, or a provider failure code"
    • changedOutput schema / properties / status / description
      Previous value: -"'notified': the business received the request. 'failed': nothing was delivered — see reason. 'pending': a web-form business (see form_url), or a replay caught while the original send is still in flight."New value: +"'notified': the configured notification provider accepted the request; this does not prove the business read it. 'failed': routing was not available or the provider reported a failure — see reason. 'pending': a web-form business (see form_url), or a replay while the original send is still in flight."
  6. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "acknowledgment": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Customer-facing sentence to relay; null only on a replay caught while the original send is still in flight"
      +    },
      +    "callback_id": {
      +      "format": "uuid",
      +      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +      "type": "string"
      +    },
      +    "delivered_via": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "'sms' or 'email' when notified; null otherwise"
      +    },
      +    "form_url": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Present with reason 'form_routing_configured': the business's own contact form for the user to complete, or null where the business chose form routing without supplying one"
      +    },
      +    "idempotent_replay": {
      +      "description": "Present and true when this idempotency_key already had a request; nothing was re-sent",
      +      "type": "boolean"
      +    },
      +    "reason": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "Present when nothing was delivered: 'form_routing_configured', 'no_recipient_configured', 'sms_consent_missing', a shape-mismatch skip, a spend-cap denial, or a provider failure code"
      +    },
      +    "status": {
      +      "anyOf": [
      +        {
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "description": "'notified': the business received the request. 'failed': nothing was delivered — see reason. 'pending': a web-form business (see form_url), or a replay caught while the original send is still in flight."
      +    }
      +  },
      +  "required": [
      +    "callback_id",
      +    "status",
      +    "delivered_via",
      +    "acknowledgment"
      +  ],
      +  "type": "object"
      +}
  7. Changed2 schema fields changed
    • addedInput schema / properties / contact_email / format
      Added value: +"email"
    • addedInput schema / properties / contact_email / pattern
      Added value: +"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
  8. Changed12 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / agent_id / description
      Previous value: -"Optional caller-asserted agent identifier; recorded for attribution"New value: +"Optional agent identifier"
    • removedInput schema / properties / contact
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "email": {
      -      "description": "end-user's email — at least one of email/phone required",
      -      "format": "email",
      -      "type": "string"
      -    },
      -    "name": {
      -      "description": "end-user's name",
      -      "maxLength": 120,
      -      "type": "string"
      -    },
      -    "phone": {
      -      "description": "end-user's phone number — at least one of email/phone required",
      -      "maxLength": 40,
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}
    • addedInput schema / properties / contact_email
      Added value: +{
      +  "description": "End-user's email",
      +  "type": "string"
      +}
    • addedInput schema / properties / contact_name
      Added value: +{
      +  "description": "End-user's name",
      +  "maxLength": 120,
      +  "type": "string"
      +}
    • addedInput schema / properties / contact_phone
      Added value: +{
      +  "description": "End-user's phone",
      +  "maxLength": 40,
      +  "type": "string"
      +}
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Idempotency key — same key returns the same callback_request_id without dup-creating"New value: +"Idempotency key"
    • changedInput schema / properties / preferred_channel / description
      Previous value: -"channel the user prefers to be contacted on (default: any)"New value: +"Channel the user prefers (default: any)"
    • changedInput schema / properties / reason / description
      Previous value: -"Why the user wants the callback — passed verbatim to the business so they can prep"New value: +"Why the user wants the callback"
    • changedInput schema / properties / slug / description
      Previous value: -"business slug"New value: +"Business slug identifier"
    • changedInput schema / properties / urgency / description
      Previous value: -"how time-sensitive the request is (default: normal)"New value: +"How time-sensitive (default: normal)"
    • changedInput schema / required
      Previous value: -[
      -  "slug",
      -  "contact",
      -  "idempotency_key"
      -]New value: +[
      +  "slug",
      +  "idempotency_key"
      +]
  9. Changed12 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / agent_id / description
      Previous value: -"Optional agent identifier"New value: +"Optional caller-asserted agent identifier; recorded for attribution"
    • addedInput schema / properties / contact
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "email": {
      +      "description": "end-user's email — at least one of email/phone required",
      +      "format": "email",
      +      "type": "string"
      +    },
      +    "name": {
      +      "description": "end-user's name",
      +      "maxLength": 120,
      +      "type": "string"
      +    },
      +    "phone": {
      +      "description": "end-user's phone number — at least one of email/phone required",
      +      "maxLength": 40,
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • removedInput schema / properties / contact_email
      Removed value: -{
      -  "description": "End-user's email",
      -  "type": "string"
      -}
    • removedInput schema / properties / contact_name
      Removed value: -{
      -  "description": "End-user's name",
      -  "maxLength": 120,
      -  "type": "string"
      -}
    • removedInput schema / properties / contact_phone
      Removed value: -{
      -  "description": "End-user's phone",
      -  "maxLength": 40,
      -  "type": "string"
      -}
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Idempotency key"New value: +"Idempotency key — same key returns the same callback_request_id without dup-creating"
    • changedInput schema / properties / preferred_channel / description
      Previous value: -"Channel the user prefers (default: any)"New value: +"channel the user prefers to be contacted on (default: any)"
    • changedInput schema / properties / reason / description
      Previous value: -"Why the user wants the callback"New value: +"Why the user wants the callback — passed verbatim to the business so they can prep"
    • changedInput schema / properties / slug / description
      Previous value: -"Business slug identifier"New value: +"business slug"
    • changedInput schema / properties / urgency / description
      Previous value: -"How time-sensitive (default: normal)"New value: +"how time-sensitive the request is (default: normal)"
    • changedInput schema / required
      Previous value: -[
      -  "slug",
      -  "idempotency_key"
      -]New value: +[
      +  "slug",
      +  "contact",
      +  "idempotency_key"
      +]
  10. Changed12 schema fields changed
    • removedInput schema / additionalProperties
      Removed value: -false
    • changedInput schema / properties / agent_id / description
      Previous value: -"Optional caller-asserted agent identifier; recorded for attribution"New value: +"Optional agent identifier"
    • removedInput schema / properties / contact
      Removed value: -{
      -  "additionalProperties": false,
      -  "properties": {
      -    "email": {
      -      "description": "end-user's email — at least one of email/phone required",
      -      "format": "email",
      -      "type": "string"
      -    },
      -    "name": {
      -      "description": "end-user's name",
      -      "maxLength": 120,
      -      "type": "string"
      -    },
      -    "phone": {
      -      "description": "end-user's phone number — at least one of email/phone required",
      -      "maxLength": 40,
      -      "type": "string"
      -    }
      -  },
      -  "type": "object"
      -}
    • addedInput schema / properties / contact_email
      Added value: +{
      +  "description": "End-user's email",
      +  "type": "string"
      +}
    • addedInput schema / properties / contact_name
      Added value: +{
      +  "description": "End-user's name",
      +  "maxLength": 120,
      +  "type": "string"
      +}
    • addedInput schema / properties / contact_phone
      Added value: +{
      +  "description": "End-user's phone",
      +  "maxLength": 40,
      +  "type": "string"
      +}
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Idempotency key — same key returns the same callback_request_id without dup-creating"New value: +"Idempotency key"
    • changedInput schema / properties / preferred_channel / description
      Previous value: -"channel the user prefers to be contacted on (default: any)"New value: +"Channel the user prefers (default: any)"
    • changedInput schema / properties / reason / description
      Previous value: -"Why the user wants the callback — passed verbatim to the business so they can prep"New value: +"Why the user wants the callback"
    • changedInput schema / properties / slug / description
      Previous value: -"business slug"New value: +"Business slug identifier"
    • changedInput schema / properties / urgency / description
      Previous value: -"how time-sensitive the request is (default: normal)"New value: +"How time-sensitive (default: normal)"
    • changedInput schema / required
      Previous value: -[
      -  "slug",
      -  "contact",
      -  "idempotency_key"
      -]New value: +[
      +  "slug",
      +  "idempotency_key"
      +]
  11. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly=false, destructive=true, idempotent=true, openWorld=true) by disclosing the actual delivery path (configured lead routing via SMS/email), that provider acceptance is not proof of reading, that a failed or pending status is not proof of delivery, and that ceilings save the request without a notification. It also states idempotent replay returns the original outcome with no extra send or count and that changed details are refused — behavior an agent cannot infer from the flags.

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?

Front-loaded correctly — the consent gate and the send action lead, operational caveats follow. It is dense rather than padded, though the retry/delivery caveat is spread across two sentences ('A failed or pending result...check the same request' and the idempotency sentence) and could be consolidated.

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?

An output schema exists, so return values need no explanation, yet the description still tells the agent to surface customer_notice verbatim — a genuinely necessary instruction. Combined with consent, limits, and retry semantics, nothing needed to invoke it correctly is absent.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns above that by explaining consent as an attestation of explicit customer agreement and by describing idempotency_key reuse semantics ('changed details are refused') in more operational detail than the schema's 'Reuse with the same request details to check or retry'. It does not touch urgency, preferred_channel, or contact fields, but those are covered by the schema.

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?

The opening sentence names a specific verb and resource ('Send a callback request') and immediately bounds it with a consent precondition. It also implicitly positions the tool against the quote flow by noting 'Current quote-request eligibility applies' and shared limits, so an agent can separate it from submit_quote_request.

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?

Clear gating condition: send only after the customer explicitly agrees to send these contact details and this request to the named business, and set consent=true. What is missing is an explicit routing sentence naming the alternative (e.g. submit_quote_request) for cases where the customer wants pricing rather than a callback; the shared-limits sentence only hints at it.

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