Skip to main content
Glama

verify_contact

Opens owner-side contact confirmation to compare safety numbers or answer an invite prompt, keeping messages blocked until the owner approves the contact.

Instructions

Opens contact confirmation for the owner. A contact who came in through the owner's AP1 invite string (check_inbox showed invite.proven) gets an "Is this ?" page without digits (mode: invite): the owner clicks "Yes, this is ..." or "No, I don't know them". For everyone else it SHOWS the contact's safety number for comparison over an outside channel. This tool CANNOT confirm the contact and has no parameter for that: confirmation is the owner's action, not the model's. Show the owner BOTH the handle AND all 30 digits. If the contact is not confirmed and the client runs on the owner's computer, the tool opens a one-time confirmation page in the owner's browser (confirm_page: opened): the owner compares the code with the other side and clicks "Code matches" or "Does not match" there. You do not open or click this page, you do not have its address. If it could not be opened (confirm_page: unavailable: cloud, VM, no browser), the owner confirms with the command ap verify <handle> --confirm in their own terminal. Until the owner confirms, sending to this contact is refused (E_UNVERIFIED_RECIPIENT), and incoming messages from this contact are shown without content.

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": {
      "handle": "<handle>"
    },
    "name": "verify_contact"
  }
}

Input Schema

NameRequiredDescriptionDefault
handleYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare readOnlyHint=false and destructiveHint=false but say nothing about what side effects occur; the description fills that gap by explaining that the tool opens a one-time page in the owner's browser (confirm_page: opened vs. unavailable) and that the model neither opens nor has the address of that page. It also discloses the gating behavior on send and receive, plus the exact fallback command, which is behavior an agent could not derive from the structured fields.

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 purpose is front-loaded in the first sentence and nearly every clause carries information the agent needs (mode selection, confirm_page states, fallback command, error code). It is dense and parenthetical-heavy rather than bulleted, which makes it slower to parse than it needs to be, but there is little genuine filler to cut.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter tool with no output schema and only coarse annotations, the description covers the important ground: both execution paths, the failure path, ownership of the confirmation action, and downstream effects on send/receive. The main residual gap is the format/expected value of the handle argument, which is left implicit.

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?

The single 'handle' parameter has 0% schema description coverage, so the description must carry the burden, and it only implies the argument through usage ('ap verify <handle> --confirm', 'Show the owner BOTH the handle AND all 30 digits') without stating the expected format or source of the handle. The instruction to show the handle alongside the 30 digits is helpful output guidance but not parameter semantics, so this lands at minimum-viable.

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 description opens with a specific verb and resource ('Opens contact confirmation for the owner') and immediately bounds the scope by stating what the tool CANNOT do ('This tool CANNOT confirm the contact and has no parameter for that: confirmation is the owner's action, not the model's'). It also distinguishes the two modes (invite vs. safety-number comparison), so an agent knows exactly which resource it is touching and which sibling flows (check_inbox invite.proven, send) interact with it.

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?

It spells out the conditions exhaustively: contacts who arrived via the owner's AP1 invite string get the no-digits 'Is this <name>?' page, everyone else gets the safety-number comparison, and if the confirmation page cannot be opened (cloud, VM, no browser) the owner must run `ap verify <handle> --confirm`. It also gives the downstream consequence in both directions (send refused with E_UNVERIFIED_RECIPIENT, incoming messages shown without content), leaving little to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.