Conway

MCP Tools Reference

Complete reference for all tools available in the Conway MCP server.

The Conway MCP server provides the following tools for AI agents.

Sandbox Tools

sandbox_create

Create a new cloud sandbox.

Parameters:

NameTypeRequiredDescription
namestringNoOptional name for the sandbox
vcpunumberNoNumber of vCPUs (1-4, default: 1)
memory_mbnumberNoMemory in MB (512-8192, default: 512)
disk_gbnumberNoDisk size in GB (1-50, default: 1)
regionstringNoRegion: "eu-north" or "us-east" (default: eu-north)

Returns: Sandbox ID, terminal URL, and resource allocation.


sandbox_list

List all sandboxes with their IDs, names, and status.

Parameters: None

Returns: Array of sandbox objects with ID, name, status, resources, and region.


sandbox_exec

Execute a shell command in a sandbox.

Parameters:

NameTypeRequiredDescription
sandbox_idstringYesFull sandbox ID (32 hex characters)
commandstringYesShell command to execute
timeoutnumberNoTimeout in seconds (default: 30)

Returns: stdout, stderr, and exit code.


sandbox_write_file

Write a file to a sandbox.

Parameters:

NameTypeRequiredDescription
sandbox_idstringYesFull sandbox ID
pathstringYesAbsolute path (e.g., /root/script.py)
contentstringYesFile content

Returns: Status, path, and file size.


sandbox_read_file

Read a file from a sandbox.

Parameters:

NameTypeRequiredDescription
sandbox_idstringYesFull sandbox ID
pathstringYesAbsolute path to read

Returns: File content as string.


sandbox_expose_port

Expose a port from a sandbox to get a public URL.

Parameters:

NameTypeRequiredDescription
sandbox_idstringYesFull sandbox ID
portnumberYesPort number (1-65535)

Returns: Port number and public URL.


sandbox_delete

Delete a sandbox.

Parameters:

NameTypeRequiredDescription
sandbox_idstringYesFull sandbox ID to delete

Returns: Success confirmation.


sandbox_get_url

Get the public URL for a specific port on a sandbox.

Parameters:

NameTypeRequiredDescription
sandbox_idstringYesFull sandbox ID
portnumberYesPort number

Returns: Public URL in format https://{port}-{sandbox_id}.life.conway.tech


PTY Tools

sandbox_pty_create

Create a new PTY (pseudo-terminal) session for interactive programs.

Parameters:

NameTypeRequiredDescription
sandbox_idstringYesFull sandbox ID
commandstringYesCommand to run (e.g., "bash", "python3")
colsnumberNoTerminal columns (default: 80)
rowsnumberNoTerminal rows (default: 24)

Returns: Session ID, command, dimensions, state, and creation time.


sandbox_pty_write

Write input to a PTY session.

Parameters:

NameTypeRequiredDescription
sandbox_idstringYesFull sandbox ID
session_idstringYesPTY session ID
inputstringYesInput to send (use \n for Enter)

Returns: Success status and bytes written.


sandbox_pty_read

Read output from a PTY session.

Parameters:

NameTypeRequiredDescription
sandbox_idstringYesFull sandbox ID
session_idstringYesPTY session ID
fullbooleanNoReturn full scrollback buffer (default: false)

Returns: Terminal output, state, and dimensions.


sandbox_pty_close

Close a PTY session and terminate the process.

Parameters:

NameTypeRequiredDescription
sandbox_idstringYesFull sandbox ID
session_idstringYesPTY session ID to close

Returns: Success status and final state.


sandbox_pty_list

List all active PTY sessions for a sandbox.

Parameters:

NameTypeRequiredDescription
sandbox_idstringYesFull sandbox ID

Returns: Array of active sessions with command, state, and creation time.


Inference Tools

chat_completions

Send a chat completion request to an OpenAI model, billed from Conway credits.

Parameters:

NameTypeRequiredDescription
modelstringYesOpenAI model name (e.g., "gpt-4o-mini", "gpt-4o", "o3-mini")
messagesarrayYesArray of message objects with role and content
temperaturenumberNoSampling temperature (0-2, default: 1)
max_tokensnumberNoMaximum tokens to generate

Returns: Model response with content, finish reason, and token usage.


Domain Tools

Search for available domain names and get pricing.

Parameters:

NameTypeRequiredDescription
querystringYesDomain name or base name to search (e.g., "mysite" or "mysite.com")
tldsstringNoComma-separated TLDs to check (default: com,io,ai,xyz,net,org,dev)

Returns: Availability status and registration/renewal costs for each TLD.


domain_list

List all domains registered to your account.

Parameters: None

Returns: Array of domain objects with name, status, expiry, and registration details.


domain_info

Get detailed info about a specific domain.

Parameters:

NameTypeRequiredDescription
domainstringYesDomain name (e.g., example.com)

Returns: Domain status, expiry date, nameservers, and privacy settings.


domain_register

Register a new domain. Requires x402 USDC payment on Base.

Parameters:

NameTypeRequiredDescription
domainstringYesDomain to register (e.g., mysite.com)
yearsnumberNoRegistration period in years (1-10, default: 1)
privacybooleanNoEnable WHOIS privacy (default: true)

Returns: Registration details and transaction ID.


domain_renew

Renew an existing domain. Requires x402 USDC payment on Base.

Parameters:

NameTypeRequiredDescription
domainstringYesDomain to renew (e.g., mysite.com)
yearsnumberNoRenewal period in years (1-10, default: 1)

Returns: Renewal confirmation and new expiry date.


domain_dns_list

List all DNS records for a domain.

Parameters:

NameTypeRequiredDescription
domainstringYesDomain name (e.g., example.com)

Returns: Array of DNS records with type, host, value, and TTL.


domain_dns_add

Add a DNS record to a domain.

Parameters:

NameTypeRequiredDescription
domainstringYesDomain name
typestringYesRecord type: A, AAAA, CNAME, MX, TXT, SRV, CAA, NS
hoststringYesRecord host/name (e.g., "@" for root, "www", "mail")
valuestringYesRecord value (e.g., IP address, target domain)
ttlnumberNoTTL in seconds (default: 3600)
distancenumberNoMX priority (only for MX records)

Returns: Created record details with record ID.


domain_dns_update

Update an existing DNS record.

Parameters:

NameTypeRequiredDescription
domainstringYesDomain name
record_idstringYesDNS record ID to update
hoststringNoNew host/name
valuestringNoNew record value
ttlnumberNoNew TTL in seconds

Returns: Updated record details.


domain_dns_delete

Delete a DNS record from a domain.

Parameters:

NameTypeRequiredDescription
domainstringYesDomain name
record_idstringYesDNS record ID to delete

Returns: Deletion confirmation.


domain_pricing

Get pricing for specific TLDs.

Parameters:

NameTypeRequiredDescription
tldsstringNoComma-separated TLDs (e.g., "com,io,ai")

Returns: Registration, renewal, and transfer costs per TLD.


domain_check

Check availability of specific domain names.

Parameters:

NameTypeRequiredDescription
domainsstringYesComma-separated list of full domain names (e.g., "example.com,test.io")

Returns: Availability status and pricing per domain.


domain_privacy

Toggle WHOIS privacy protection for a domain.

Parameters:

NameTypeRequiredDescription
domainstringYesDomain name (e.g., example.com)
enabledbooleanYesEnable (true) or disable (false) WHOIS privacy

Returns: Success confirmation.


domain_nameservers

Update nameservers for a domain.

Parameters:

NameTypeRequiredDescription
domainstringYesDomain name (e.g., example.com)
nameserversarrayYesList of nameserver hostnames (2-13 entries)

Returns: Success confirmation.


Credits Tools

credits_balance

Get the current credit balance for the authenticated account.

Parameters: None

Returns: Credit balance in cents and formatted USD amount.


credits_history

Get credit transaction history.

Parameters:

NameTypeRequiredDescription
limitnumberNoMax number of transactions (default: 20)
offsetnumberNoOffset for pagination (default: 0)

Returns: Array of transactions with amounts, types, and timestamps.


credits_pricing

Get VM pricing tiers and payment tier information.

Parameters: None

Returns: Available pricing tiers with vCPU, memory, disk, and monthly cost.


x402 Payment Tools

wallet_info

Get information about the x402 payment wallet.

Parameters:

NameTypeRequiredDescription
networkstringNoNetwork ID (default: eip155:8453 for Base)

Returns: Wallet address, USDC balance, and deposit link.


wallet_networks

List all supported networks for x402 payments.

Parameters: None

Returns: Array of supported networks with chain IDs and USDC addresses.


x402_discover

Discover x402 endpoints for a given URL.

Parameters:

NameTypeRequiredDescription
urlstringYesOrigin URL to discover resources from

Returns: Discovered x402 endpoints and payment requirements.


x402_check

Check if a URL requires x402 payment.

Parameters:

NameTypeRequiredDescription
urlstringYesEndpoint URL to check
methodstringNoHTTP method (default: GET)

Returns: Payment requirements if 402 response.


x402_fetch

Fetch a URL with automatic x402 payment handling.

Parameters:

NameTypeRequiredDescription
urlstringYesEndpoint URL to fetch
methodstringNoHTTP method (default: GET)
headersobjectNoAdditional headers
bodystringNoRequest body for POST/PUT/PATCH

Returns: Response data with automatic payment if required.