Skip to main content
Glama

Verify the Code and Unlock Calling Capacity

verifyAnchorCode
Idempotent

Submit the code the human read to you from their text message. On success the number is permanently recorded as this workspace's accountable human, and the workspace receives its free calling capacity for createMapping, runMissionTest and runComplianceTest. If a run is refused with errorCode VERIFICATION_REQUIRED, the workspace is on the Free plan and needs both a verified mobile and a card on file: call getClaimLink so the person can take the workspace over and complete the Verify page. If getClaimLink is refused with 409 workspace-claimed, the workspace already has an owner: that owner or an admin signs in to the TotalPath web app (the same environment as this server) and completes its Verify page (path /verify). The card is not charged on the Free plan.

USE WHEN:
- You called requestAnchorCode and the person has told you the code

ARGUMENTS:
- phoneNumber: the SAME number you passed to requestAnchorCode, in the same E.164 format
- code: the digits from the text message, exactly as the person read them

RESPONSE ON SUCCESS (200):
- anchored: true. The human is verified.
- freeGrantOutcome tells you about capacity:
  - granted: free capacity was added. Call getWorkspaceUsage to see how much. If your first run is refused with VERIFICATION_REQUIRED, call getClaimLink (see above).
  - already-granted: this workspace already had it. Nothing is wrong.
  - not-owed: this number has already used its one free allocation, on this or another workspace. The human is verified, but this verification adds no capacity. Call getWorkspaceUsage first: if the workspace still has capacity, carry on. If it has none, capacity has to be bought: call getClaimLink so the person can pay. If getClaimLink is refused with 409 workspace-claimed, the workspace already has an owner: that owner or an admin signs in to the TotalPath web app (the same environment as this server) and buys capacity under Settings, Billing (path /platform/settings/billing).
  - unavailable: the code was RIGHT and the human is verified, but the capacity grant could not be completed just now. Nothing is lost and nothing is double-spent. Wait a minute and call verifyAnchorCode again with the same arguments. If that retry is refused with reason bad_code, the code has expired, NOT been misread: do not ask the person to check it. Call requestAnchorCode for a fresh code and verify again; the grant is retried on that verification.
  - refused: the grant was declined. Tell the person and call getClaimLink.

WHEN IT IS REFUSED:
- reason bad_code (400): the code did not match, or has expired. Codes expire after a few minutes. If the person only just read it, ask them to check it and try once more; otherwise call requestAnchorCode for a fresh one. If you are retrying after an unavailable outcome, treat bad_code as expired.
- reason already_anchored (409), or anchor_limit_reached (403): see requestAnchorCode
- reason not_held (409): the number you passed as replaces is not one of this workspace's verified humans. Do not guess at it.
- reason replaces_unparseable (400): the replaces number is not a number we can read. Ask the person to give it in full international format.
- reason survivor_is_target (400): replaces named the SAME number being verified, which would leave the workspace with nobody accountable.
- A 5xx means the verification provider had a problem, never that the code was wrong. Try again shortly.

RELATED TOOLS:
- getWorkspaceUsage: see the capacity you now have
- getClaimLink: let the human take ownership and buy more
- createMapping, runMissionTest, runComplianceTest: the work itself

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": {
      "phoneNumber": "<phoneNumber>",
      "code": "<code>"
    },
    "name": "verifyAnchorCode"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe one-time code from the text message, as digits.
replacesNoOptional, in E.164 format. Use ONLY when this person is taking over from someone whose number is already the verified human for this workspace — a colleague who has left, say. The new number is anchored and the old one freed in one step, so the workspace is never left without an accountable person. Omit it to ADD a verified human alongside the existing ones, which is what you usually want.
phoneNumberYesThe same number the code was sent to, in E.164 format.

Output Schema

NameRequiredDescriptionDefault
anchoredYes
freeGrantedYesCapacity was added to the workspace by THIS call.
freeGrantOwedYesTrue when this anchor entitled the workspace to its free grant at the moment of anchoring, i.e. the grant was asked for on this call. False when the number had already spent its one allocation.
freeGrantErrorNoPresent only for `refused` (auth's reason, e.g. `not-an-agent-workspace`) and `unavailable` (the literal `unavailable`).
freeGrantOutcomeYes`granted`: capacity added now. `already-granted`: the workspace already held it from an earlier call; nothing is wrong. `not-owed`: this number spent its one allocation before, on this workspace or another. `refused`: auth declined (see `freeGrantError`). `unavailable`: auth could not be reached or answered in time; the anchor stands, retry the grant by verifying again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, idempotentHint=true), the description discloses permanence of the anchor, the free-grant outcomes, retry semantics for the 'unavailable' state, the 5xx-is-never-a-wrong-code rule, and code expiry. It also explains that the card is not charged on the Free plan and that 409 workspace-claimed means an owner must act in the web app — context an agent could not derive from the annotations.

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?

Headers (USE WHEN, ARGUMENTS, RESPONSE ON SUCCESS, WHEN IT IS REFUSED, RELATED TOOLS) make the long text scannable and the critical precondition is front-loaded. Some material is duplicated — the '409 workspace-claimed' escape hatch to the web app is spelled out twice in near-identical prose within the not-owed and VERIFICATION_REQUIRED branches — which costs a point given the already substantial length.

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 a stateful, multi-outcome verification tool with error-code routing, the description covers success, partial success, refusal, and transient failure paths, plus where to go next in each case. Although an output schema exists, the enumerated outcome values (granted/already-granted/not-owed/unavailable/refused) carry behavioral meaning that the schema alone would not convey, so the added prose is warranted rather than redundant.

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% and the 'replaces' parameter is already thoroughly documented in the schema, so the baseline is 3. The description still adds cross-call meaning by requiring phoneNumber to be the SAME E.164 number passed to requestAnchorCode and code to be the digits exactly as read, which tightens correct invocation beyond the schema text.

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 gives a concrete verb and resource tied to the physical workflow ('Submit the code the human read to you from their text message') and immediately states the effect: the number is permanently recorded and the workspace gains calling capacity for createMapping, runMissionTest and runComplianceTest. It is unmistakably distinct from requestAnchorCode, which only sends the code.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The 'USE WHEN' block names the exact precondition and the sibling that precedes it ('You called requestAnchorCode and the person has told you the code'). The refusal and outcome sections then route the agent to getWorkspaceUsage, getClaimLink, requestAnchorCode, or the web app Verify/Billing pages under named conditions, including explicit when-not guidance ('do not ask the person to check it' after an unavailable retry).

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.