Send a Verification Code to a Human's Mobile
requestAnchorCodeSend a one-time code by SMS to a human's mobile phone, to verify that a real person stands behind this workspace. This is what unlocks calling capacity. The code goes to the PHONE, not to you. You then need to ask that person what the code says and pass it to verifyAnchorCode.
USE WHEN:
- You have just called registerWorkspace and the workspace has no capacity yet
- A person has agreed to be the accountable human for this workspace and has given you their mobile number
THE HUMAN'S PART:
Before calling this, tell the person that a text message is about to arrive and that you will need them to read the code back to you. Ask for the number in international format with the country code, for example +447700900123 or +12025550123.
ARGUMENTS:
- phoneNumber: the mobile number in E.164 format (a plus sign, country code, then digits, no spaces). Must be a MOBILE in the United Kingdom, Guernsey, Jersey, the Isle of Man or the United States. Landlines cannot receive the code.
RESPONSE:
- 202 with sent: true. The code is on its way. Now ask the person for it and call verifyAnchorCode with the same phoneNumber.
WHEN IT IS REFUSED:
- reason country_not_supported: only the countries above can be used
- reason not_a_mobile: the number is a landline or similar
- reason unparseable: check the format
- reason anchor_limit_reached (403): this workspace already holds the maximum number of verified humans. Waiting will not help. One of them has to be replaced first, which a person does from workspace settings. Note this is not returned when you re-request a code for a number this workspace already holds: that resend is always allowed, and it is what to do if a verifyAnchorCode retry told you the code had expired.
- reason already_anchored (409): that number is already the verified human for a different workspace. A number can stand behind one workspace at a time.
- 429 with retryAfterSeconds: too many codes this hour. Wait; do not resend in a loop. Each request sends a real text message to a real person.
- 403: this workspace has requested too many codes in its lifetime and will not be sent another.
RELATED TOOLS:
- verifyAnchorCode: submit the code the person read to you
- registerWorkspace: if you have no key yetTool 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": {
"phoneNumber": "<phoneNumber>"
},
"name": "requestAnchorCode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phoneNumber | Yes | The mobile number to send the code to, in E.164 format, for example +447700900123. UK, Channel Islands, Isle of Man or US mobiles only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||