agentsim-mcp
v0.33.3AgentSIM MCP server — OTP session tools for AI coding assistants
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
identify_agent Identify Agent
Add an agent to the AgentSIM console without opening a challenge. Use a stable agent_id after connecting. This creates no session, sends no SMS, and does not use live allowance or billing.
| Parameter | Type | Description |
|---|---|---|
input * | object |
open_challenge Open Challenge
Open an authentication challenge session. Supports multiple channels: sms_otp (programmable US number), email_otp (test inbox, no email delivery), magic_link (test inbox, no email delivery), and webauthn_required (detect-and-halt). Returns the challenge identifier (phone number or email address) and a session_id needed for all subsequent calls. The session is reserved for ttl_seconds. For SMS, enter the number in your owned app and request its code. Email channels require injected test messages; their inboxes cannot receive email. Then call `wait_for_verdict` with the returned `session_id`.
| Parameter | Type | Description |
|---|---|---|
input * | object |
provision_number Provision Number
Open an SMS challenge session (alias for open_challenge with channel=sms_otp). DEPRECATED: Use `open_challenge` with channel="sms_otp" instead. This tool is kept for backward compatibility with existing MCP clients. Returns the phone number (e164 format) and a session_id needed for all subsequent calls. The session is reserved for ttl_seconds. Next step: use the returned `number` on an app you own to trigger the wall, then call `wait_for_verdict` (or the `wait_for_otp` alias) with the `session_id`.
| Parameter | Type | Description |
|---|---|---|
input * | object |
wait_for_verdict Wait For Verdict
Block until a challenge verdict arrives for this session. Polls the AgentSIM API for up to `timeout_seconds`. Returns the structured verdict, which may include: - otp_code: the parsed OTP (for sms_otp, email_otp channels) - magic_link: the extracted HTTPS URL (for magic_link channel) - webauthn_required: true if WebAuthn/passkey was detected (detect-and-halt) - policy_denied: true if the service_url is blocked by account policy Always call `release_number` after processing the verdict.
| Parameter | Type | Description |
|---|---|---|
input * | object |
wait_for_otp Wait For Otp
Block until an SMS verdict arrives for this session (alias for wait_for_verdict). DEPRECATED: Use `wait_for_verdict` instead. This tool is kept for backward compatibility with existing MCP clients. Polls the AgentSIM API for up to `timeout_seconds`. Returns the OTP code when the SMS challenge resolves. If the verdict does not arrive in time, raises a ToolError with advice on retrying. Always call `release_number` after you have used the verdict.
| Parameter | Type | Description |
|---|---|---|
input * | object |
get_messages Get Messages
Read the first page of SMS metadata and parsed codes, without raw bodies. Reading a parsed OTP marks it consumed. A later wait will not return it.
| Parameter | Type | Description |
|---|---|---|
input * | object |
release_number Release Number
Close a challenge session. Always call this when you are done — even on error — so the session does not keep consuming pool capacity.
| Parameter | Type | Description |
|---|---|---|
input * | object |
list_numbers List Numbers
List active challenge sessions, optionally filtered by agent_id. Use this to check for leaked sessions or inspect what is currently active. If has_more is true, pass the last session_id as after to get the next page.
| Parameter | Type | Description |
|---|---|---|
after | ||
agent_id | ||
limit | integer |