Skip to main content
Glama

Fix and resubmit a verification

resubmit_verification
Destructive

File a rejected number registration again, with fixes, from what Hail kept.

    Hail keeps a number registration's answers and files for 30 days after
    submit (``kept_until``); ``get_sms_application`` returns the kept answers
    and file names. A supplied answer map, address or document selection
    replaces that saved part. Other parts are reused. Country, number type
    and subject type stay as filed.

    Irreversible once sent: it files a new registration (a new ``id``) with
    the same credit rules as ``submit_verification``, and dismisses the
    rejected one. Returns the new registration, or an error with
    ``problems`` when nothing was sent.

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": {
      "verification_id": "<verification_id>",
      "attest_authorized": "<attest_authorized>"
    },
    "name": "resubmit_verification"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoReplacement files, using the same upload or inline form as ``submit_verification``. An unchanged slot and document option can reuse the saved file.
fieldsNoAll form fields, replacing the kept ones. Null keeps them.
addressNoThe applicant's address. Give it when the requirements include one; otherwise leave it out.
quote_idNoReplacement offer from ``quote_numbers`` if the saved quote is missing or unavailable. Null reuses the saved quote.
documentsNoAll document slots ``{slot: {option, fields}}``, replacing the kept ones. Null keeps them.
llm_modelNoThe calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics.
verification_idYesID of a rejected number registration with ``resubmittable: true``, from ``list_verifications``.
attest_authorizedYesConfirms that the applicant supplied the details and files and authorized this filing. Hail sends the filing only when this is ``true``.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / address / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "city": {
      -        "description": "City or town of the street address, as written on mail sent there.",
      -        "title": "City",
      -        "type": "string"
      -      },
      -      "country_code": {
      -        "description": "ISO alpha-2 address country.",
      -        "title": "Country Code",
      -        "type": "string"
      -      },
      -      "customer_name": {
      -        "description": "Name associated with the address.",
      -        "title": "Customer Name",
      -        "type": "string"
      -      },
      -      "postal_code": {
      -        "description": "Postal or ZIP code of the street address, such as `94103`.",
      -        "title": "Postal Code",
      -        "type": "string"
      -      },
      -      "region": {
      -        "description": "State, province or region.",
      -        "title": "Region",
      -        "type": "string"
      -      },
      -      "street": {
      -        "description": "Street address.",
      -        "title": "Street",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "customer_name",
      -      "street",
      -      "city",
      -      "region",
      -      "postal_code",
      -      "country_code"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "city": {
      +        "description": "City or town as it appears in the applicant's mailing address.",
      +        "title": "City",
      +        "type": "string"
      +      },
      +      "country_code": {
      +        "description": "ISO alpha-2 address country.",
      +        "title": "Country Code",
      +        "type": "string"
      +      },
      +      "customer_name": {
      +        "description": "Name associated with the address.",
      +        "title": "Customer Name",
      +        "type": "string"
      +      },
      +      "postal_code": {
      +        "description": "Postal or ZIP code of the street address, such as `94103`.",
      +        "title": "Postal Code",
      +        "type": "string"
      +      },
      +      "region": {
      +        "description": "State, province, or equivalent administrative area in the applicant's address.",
      +        "title": "Region",
      +        "type": "string"
      +      },
      +      "street": {
      +        "description": "Street address.",
      +        "title": "Street",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "customer_name",
      +      "street",
      +      "city",
      +      "region",
      +      "postal_code",
      +      "country_code"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / attest_authorized / description
      Previous value: -"Attestation that the named person or business authorized this filing and supplied its details and files. Only ``true`` sends anything."New value: +"Confirms that the applicant supplied the details and files and authorized this filing. Hail sends the filing only when this is ``true``."
    • changedInput schema / properties / files / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": false,
      -          "properties": {
      -            "slot": {
      -              "description": "The key in ``documents`` that identifies what this file proves.",
      -              "pattern": "^[A-Za-z0-9_-]{1,64}$",
      -              "type": "string"
      -            },
      -            "upload_id": {
      -              "description": "The ``id`` from ``create_file_upload`` with purpose ``verification_document``.",
      -              "format": "uuid",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "slot",
      -            "upload_id"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "properties": {
      -            "content_base64": {
      -              "contentEncoding": "base64",
      -              "description": "The complete file for this document slot when supplied inline instead of by upload ID.",
      -              "type": "string"
      -            },
      -            "content_type": {
      -              "description": "File format used to read the document.",
      -              "enum": [
      -                "image/jpeg",
      -                "image/png",
      -                "application/pdf"
      -              ],
      -              "type": "string"
      -            },
      -            "slot": {
      -              "description": "The key in ``documents`` that identifies what this file proves.",
      -              "pattern": "^[A-Za-z0-9_-]{1,64}$",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "slot",
      -            "content_type",
      -            "content_base64"
      -          ],
      -          "type": "object"
      -        }
      -      ]
      -    },
      -    "maxItems": 20,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "slot": {
      +              "description": "The key in ``documents`` that identifies what this file proves.",
      +              "pattern": "^[A-Za-z0-9_-]{1,64}$",
      +              "type": "string"
      +            },
      +            "upload_id": {
      +              "description": "The ``id`` from ``create_file_upload`` with purpose ``verification_document``.",
      +              "format": "uuid",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "slot",
      +            "upload_id"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "properties": {
      +            "content_base64": {
      +              "contentEncoding": "base64",
      +              "description": "Bytes of the complete document for this slot, supplied directly in the tool call.",
      +              "type": "string"
      +            },
      +            "content_type": {
      +              "description": "Media type of the actual document. Hail checks it against the file bytes.",
      +              "enum": [
      +                "image/jpeg",
      +                "image/png",
      +                "application/pdf"
      +              ],
      +              "type": "string"
      +            },
      +            "slot": {
      +              "description": "The key in ``documents`` that identifies what this file proves.",
      +              "pattern": "^[A-Za-z0-9_-]{1,64}$",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "slot",
      +            "content_type",
      +            "content_base64"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "maxItems": 20,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / llm_model / description
      Previous value: -"Model ID of the calling agent. Optional. Recorded for analytics only."New value: +"The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
  2. Changed6 schema fields changed
    • changedInput schema / properties / files / anyOf
      Previous value: -[
      -  {
      -    "items": {
      -      "anyOf": [
      -        {
      -          "additionalProperties": false,
      -          "properties": {
      -            "slot": {
      -              "description": "The document slot this file fills: a key in ``documents``.",
      -              "pattern": "^[A-Za-z0-9_-]{1,64}$",
      -              "type": "string"
      -            },
      -            "upload_id": {
      -              "description": "The ``id`` from ``create_file_upload`` with purpose ``verification_document``.",
      -              "format": "uuid",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "slot",
      -            "upload_id"
      -          ],
      -          "type": "object"
      -        },
      -        {
      -          "properties": {
      -            "content_base64": {
      -              "contentEncoding": "base64",
      -              "description": "The whole file, base64-encoded.",
      -              "type": "string"
      -            },
      -            "content_type": {
      -              "description": "The file's format.",
      -              "enum": [
      -                "image/jpeg",
      -                "image/png",
      -                "application/pdf"
      -              ],
      -              "type": "string"
      -            },
      -            "slot": {
      -              "description": "The document slot this file fills: a key in ``documents``.",
      -              "pattern": "^[A-Za-z0-9_-]{1,64}$",
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "slot",
      -            "content_type",
      -            "content_base64"
      -          ],
      -          "type": "object"
      -        }
      -      ]
      -    },
      -    "maxItems": 20,
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "items": {
      +      "anyOf": [
      +        {
      +          "additionalProperties": false,
      +          "properties": {
      +            "slot": {
      +              "description": "The key in ``documents`` that identifies what this file proves.",
      +              "pattern": "^[A-Za-z0-9_-]{1,64}$",
      +              "type": "string"
      +            },
      +            "upload_id": {
      +              "description": "The ``id`` from ``create_file_upload`` with purpose ``verification_document``.",
      +              "format": "uuid",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "slot",
      +            "upload_id"
      +          ],
      +          "type": "object"
      +        },
      +        {
      +          "properties": {
      +            "content_base64": {
      +              "contentEncoding": "base64",
      +              "description": "The complete file for this document slot when supplied inline instead of by upload ID.",
      +              "type": "string"
      +            },
      +            "content_type": {
      +              "description": "File format used to read the document.",
      +              "enum": [
      +                "image/jpeg",
      +                "image/png",
      +                "application/pdf"
      +              ],
      +              "type": "string"
      +            },
      +            "slot": {
      +              "description": "The key in ``documents`` that identifies what this file proves.",
      +              "pattern": "^[A-Za-z0-9_-]{1,64}$",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "slot",
      +            "content_type",
      +            "content_base64"
      +          ],
      +          "type": "object"
      +        }
      +      ]
      +    },
      +    "maxItems": 20,
      +    "type": "array"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / files / description
      Previous value: -"Only the files that replace kept ones, in the ``submit_verification`` format. A slot not listed reuses its kept file."New value: +"Replacement files, using the same upload or inline form as ``submit_verification``. An unchanged slot and document option can reuse the saved file."
    • changedInput schema / properties / quote_id / description
      Previous value: -"A new offer, for when the kept quote is gone (404). Null reuses it."New value: +"Replacement offer from ``quote_numbers`` if the saved quote is missing or unavailable. Null reuses the saved quote."
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "description": "A carrier verification: its state and the name of the person or\ncompany it is for. No other personal data.",
      +    "properties": {
      +      "approved_at": {
      +        "anyOf": [
      +          {
      +            "format": "date-time",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "When the carrier approved it.",
      +        "title": "Approved At"
      +      },
      +      "campaign_accepted": {
      +        "default": false,
      +        "description": "The carrier accepted the SMS campaign; this alone does not mean a number is ready to send.",
      +        "title": "Campaign Accepted",
      +        "type": "boolean"
      +      },
      +      "cancellable": {
      +        "default": false,
      +        "description": "True when `DELETE /v1/verifications/{id}` accepts this verification now.",
      +        "title": "Cancellable",
      +        "type": "boolean"
      +      },
      +      "confirmation": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "For a person's US texting registration: 'code' when you must enter the code the carrier texted (POST /verifications/{id}/confirm), 'reply' when you must answer the carrier's text, null when nothing is pending.",
      +        "title": "Confirmation"
      +      },
      +      "country_code": {
      +        "description": "ISO alpha-2 country code.",
      +        "title": "Country Code",
      +        "type": "string"
      +      },
      +      "created_at": {
      +        "description": "When the verification was created.",
      +        "format": "date-time",
      +        "title": "Created At",
      +        "type": "string"
      +      },
      +      "credit_needed_cents": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "The credit this registration still needs before Hail files its campaign, in US cents; null when `waiting_for_credit` is false. Per registration, not a running total: the first waiting registration shows the carrier's campaign fee less the credit left after the registrations already covered (more when the balance is short), each later one its whole fee. Add the sum over every registration with `waiting_for_credit` true, and one top-up lets them all go. It follows the balance, so read it again before you pay.",
      +        "title": "Credit Needed Cents"
      +      },
      +      "id": {
      +        "description": "Unique identifier for this verification.",
      +        "format": "uuid",
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "identity_confirmed": {
      +        "default": false,
      +        "description": "True on a person's newest US texting registration when it is cancelled, or rejected and not yet dismissed, and the person stays confirmed: the next filing with the same first name, last name, email and mobile needs no code and has no submission fee. Dismiss a rejected registration first. Ignore it on older registrations.",
      +        "title": "Identity Confirmed",
      +        "type": "boolean"
      +      },
      +      "kept_until": {
      +        "anyOf": [
      +          {
      +            "format": "date-time",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "For a number registration: when Hail deletes the answers and files it keeps so the filing can be fixed and sent again (30 days after submit). They go sooner when it is approved or cancelled, or the account closes. Null when nothing is kept.",
      +        "title": "Kept Until"
      +      },
      +      "number_id": {
      +        "anyOf": [
      +          {
      +            "format": "uuid",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "The owned number covered by toll-free SMS verification. Null for organization-wide registrations.",
      +        "title": "Number Id"
      +      },
      +      "number_type": {
      +        "description": "Kind of number: 'local', 'mobile', 'toll_free', or 'national'.",
      +        "title": "Number Type",
      +        "type": "string"
      +      },
      +      "purpose": {
      +        "description": "'number': permission to buy a number in this country. 'sms': US local texting registration or per-number US/Canada toll-free texting verification.",
      +        "title": "Purpose",
      +        "type": "string"
      +      },
      +      "rejection_reason": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Why it was rejected. Null unless rejected.",
      +        "title": "Rejection Reason"
      +      },
      +      "resubmittable": {
      +        "default": false,
      +        "description": "True when `POST /v1/verifications/{id}/resubmit` accepts this verification now: a rejected number registration whose answers are still kept (`kept_until`).",
      +        "title": "Resubmittable",
      +        "type": "boolean"
      +      },
      +      "runtime_ready": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "True when required runtime configuration was verified, false while setup retries, null when not independently tracked.",
      +        "title": "Runtime Ready"
      +      },
      +      "state": {
      +        "description": "'awaiting_review', 'submitting', 'submitted', 'approved', 'rejected', or 'cancelled'.",
      +        "title": "State",
      +        "type": "string"
      +      },
      +      "step": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "confirm_identity",
      +              "filing",
      +              "carrier_review",
      +              "runtime_setup",
      +              "needs_information"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "For a US texting registration that is not yet approved or rejected: 'confirm_identity' while the person must confirm (see `confirmation`), 'filing' while Hail files the details with the carriers, 'carrier_review' once the carriers are reviewing them (1 to 7 business days), or runtime_setup when accepted but required messaging responses still need configuration; needs_information when the existing sender needs current campaign evidence before filing. Null otherwise.",
      +        "title": "Step"
      +      },
      +      "subject_name": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Name of the person or company this verification is for, taken from the form (for example the business name, or the first and last name). Null when unknown.",
      +        "title": "Subject Name"
      +      },
      +      "subject_type": {
      +        "description": "'person' or 'business'.",
      +        "title": "Subject Type",
      +        "type": "string"
      +      },
      +      "submitted_at": {
      +        "anyOf": [
      +          {
      +            "format": "date-time",
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "When it was submitted to the carrier.",
      +        "title": "Submitted At"
      +      },
      +      "updated_at": {
      +        "description": "When it last changed.",
      +        "format": "date-time",
      +        "title": "Updated At",
      +        "type": "string"
      +      },
      +      "waiting_for_credit": {
      +        "default": false,
      +        "description": "True when a US texting registration waits for credit: its next step, filing the campaign, has a carrier fee your balance does not cover. Nothing is filed until it does. Add credit; Hail goes on at its next check.",
      +        "title": "Waiting For Credit",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "number_id",
      +      "country_code",
      +      "number_type",
      +      "subject_type",
      +      "subject_name",
      +      "purpose",
      +      "state",
      +      "rejection_reason",
      +      "created_at",
      +      "updated_at",
      +      "submitted_at",
      +      "approved_at",
      +      "confirmation",
      +      "step",
      +      "campaign_accepted",
      +      "runtime_ready",
      +      "cancellable",
      +      "kept_until",
      +      "resubmittable",
      +      "identity_confirmed",
      +      "waiting_for_credit",
      +      "credit_needed_cents"
      +    ],
      +    "title": "VerificationResponse",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      },
      +      "problems": {
      +        "description": "Validation issues with an input path and a message.",
      +        "items": {
      +          "properties": {
      +            "loc": {
      +              "items": {
      +                "type": [
      +                  "string",
      +                  "integer"
      +                ]
      +              },
      +              "type": "array"
      +            },
      +            "msg": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "loc",
      +            "msg"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / title
      Removed value: -"resubmit_verification_toolDictOutput"
  3. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the annotations (destructive, non-idempotent, open-world), the description discloses the critical consequences: the action is irreversible once sent, it creates a brand-new registration with a new id, it dismisses the rejected one, and failures return an error with problems when nothing was sent. That is exactly the behavioral context an agent needs before a destructive call.

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 critical framing is front-loaded and the paragraphs are organized by what is kept, what is replaced, and what happens on send. A few phrases, like repeating the retention window reference to kept_until, are slightly redundant, but nothing is filler.

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?

For an 8-parameter, destructive, non-idempotent tool with an output schema, the description covers retention, partial-replacement rules, immutability of certain fields, side effects, and the error path. Nothing an agent needs in order to call it safely is missing.

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, but the description adds real meaning about merge semantics: a supplied answer map, address, or document selection replaces only that saved part, other parts are reused, and country/number type/subject type stay as filed. This clarifies partial-update behavior that the schema alone does not convey.

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 (file again) and resource (a rejected number registration) plus the sourcing of prior data ('from what Hail kept'). It explicitly contrasts with submit_verification by noting the new filing uses the same credit rules, so an agent can tell these two apart without opening either 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?

It states the precondition clearly: the verification_id must be a rejected registration with resubmittable: true from list_verifications, and it points to get_sms_application for retrieving kept answers and file names. It doesn't explicitly say when NOT to use it (e.g. use submit_verification for first-time filings), so it falls just short of the top band.

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.