Skip to main content
Glama

Confirm email

confirm_email
Idempotent

Confirm the learner's e-mail address with the 6-digit code from the confirmation mail (or from the SMS sent by send_verification_sms — that one confirms the phone). Without a code, the confirmation mail (link + new code) is sent again. Codes are valid 10 minutes; the link in the mail 24 hours.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "confirm_email"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNoThe 6 digits the learner read out. Omit to resend the mail.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true), and the description adds genuinely new behavior: a resend side effect when the code is omitted, and two distinct expiry windows (10 minutes for codes, 24 hours for the link). It does not say what an invalid or expired code produces, nor whether a code is single-use, which matters against the idempotentHint claim.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the primary action, then the no-code path, then the validity windows. The em-dash aside about send_verification_sms carries necessary disambiguation rather than filler, and nothing is repeated from the name.

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-optional-param tool with no output schema and annotations present, this covers what is needed to call it correctly. The remaining gap is failure semantics — what the agent sees on a wrong or expired code — which is not derivable from the schema or annotations.

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 schema already states the omit-to-resend behavior, so the baseline would be 3. The description earns more by explaining where the code comes from (mail, or SMS that actually confirms the phone) and the digit-count source, adding real decision-relevant meaning 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?

States a concrete verb+resource (confirm the learner's e-mail address) plus the exact input required (6-digit code). It also distinguishes itself from the sibling send_verification_sms by noting that tool's code confirms the phone instead, so an agent can tell the 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 Guidelines5/5

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

Explicitly covers both invocation modes: pass the code to confirm, omit it to resend the mail. It also pre-empts the most likely misuse by flagging that an SMS-sourced code validates the phone rather than the e-mail.

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