Skip to content

MCP tools

Full reference for every tool, prompt, and docs resource exposed by HeyEly's MCP server.

Any OAuth client connected to HeyEly's MCP server sees the complete tool list, even when authorized read-only. Invoking a Write tool on a read-only connection returns HTTP 403 with an insufficient_scope challenge so the client can prompt to upgrade to Write. Connections authenticated with an MCP-enabled API key receive Read tools exclusively.

Dollar figures are formatted as decimal strings in USD, and timestamps follow UTC ISO 8601. Errors always lead with a machine-readable code and a colon, such as budget_exhausted:. See Troubleshooting for the full code reference.

Read

  • astra_get_balance: Returns backed credit, free credit, and this connection's spend budget. Takes no inputs.
  • astra_list_models: Browses and filters catalog models with pricing and free-credit eligibility. Inputs: search, category, sort, ids, output, min_context, max_input_price, max_output_price, free_credit, limit, cursor.
  • astra_get_model: Fetches full details and pricing for a single model, and estimates call cost from given token counts. Inputs: id, input_tokens, output_tokens.
  • astra_get_usage: Aggregates spend, request counts, and tokens over a timeframe grouped by model, key, or client. Inputs: range, key_id, group_by.
  • astra_list_requests: Lists recent account requests with model, token usage, cost, and status, or retrieves one specific request by ID. Inputs: request_id, key_id, model, status, since, limit, cursor.
  • astra_list_keys: Lists all masked API keys on the account with limits, spend, and expiry, highlighting the connection's own spend key. Inputs: include_inactive.
  • astra_get_key_status: Inspects one key's active status, total spend, and remaining cap. Inputs: key_id.
  • astra_search_docs: Searches HeyEly documentation or fetches a specific page in Markdown. Inputs: query or page.

Write

  • astra_run_model: Invokes a text model against the connection's spend budget and reports its cost. Inputs: model, input, system, max_output_tokens, temperature, web_search, max_cost_usd, idempotency_key. Appending :incognito routes the call onto Phala's confidential-computing hardware and rejects web_search, setting receipt verification to "provider_reported" (null on standard models); see Private. Appending :overdrive pins execution to the model's designated fast provider, rejects web_search, and attaches an overdrive receipt object containing the provider and dated observed speed; see Overdrive. Connections only.
  • astra_generate_image: Creates one image within the connection's spend budget, returning an inline preview, a 24-hour link to the full original, and the cost. Inputs: prompt, model, shape, max_cost_usd, idempotency_key. Connections only.
  • astra_create_key: Mints an expiring, spend-capped API key, displays the secret once, and bundles ready-to-use setup snippets for Claude Code, Codex, and OpenAI-compatible clients. Inputs: name, limit_usd, expires_in_days. Connections only.
  • astra_rotate_key: Generates a fresh secret for a key originally minted by this app, invalidating the previous secret immediately. Inputs: key_id. Connections only.
  • astra_revoke_key: Disables an API key previously created by this app. Inputs: key_id. Connections only.

For astra_run_model, input accepts either a non-empty prompt string or an array of 1 to 40 messages (role of user or assistant with non-empty content). Combined input text plus any system prompt cannot exceed 64,000 characters. max_output_tokens takes an integer from 1 to 16,384 (defaulting to 1,024), temperature accepts 0 to 2, and web_search is an optional boolean. For larger payloads, call the /v1 HTTP API directly with an API key.

For astra_generate_image, prompt must be between 1 and 4,000 characters, and optional shape accepts square (default), landscape, or portrait. Both paid tools require a model ID between 1 and 200 characters.

Every paid call accepts max_cost_usd as a decimal string (up to three digits before the decimal and six after), bounded between $0 and $5 with a $0.50 default. Paid calls also require an idempotency_key containing 8 to 64 ASCII letters, digits, hyphens, or underscores.

Idempotency keys are scoped per account and tool across connections. Retrying safely requires passing identical inputs, including optional fields and max_cost_usd. Reusing a key with altered inputs returns idempotency_conflict, while retrying an in-flight call returns still_running. HeyEly retains call records for 90 days so completed retries never double-charge; failed calls that incurred zero cost can be retried with the same key.

Because HeyEly never stores text model completions, retrying a finished astra_run_model call returns its billing receipt with output_text set to null. Retrying a finished astra_generate_image call prior to its 24-hour expiration returns the receipt plus a newly minted download URL (without the inline preview), invalidating the older link while keeping the original 24-hour deadline. After 24 hours, retries return the receipt with no download link.

Both astra_rotate_key and astra_revoke_key refuse to modify the connection's internal spend key. Manage that connection key under Coding tools in Developers.

Prompts

  • setup_coding_tool: Walks through configuring a coding tool with a freshly created key. Arguments: client (claude-code, codex, cursor, or other).
  • pick_model: Searches and compares up to 3 models suited to a workload and budget. Arguments: task, budget_usd.
  • spend_report: Breaks down recent spend by model and client alongside any failed requests. Arguments: range (24h, 7d, or 30d).

Resources

  • astra://docs/{+path}: Exposes every HeyEly documentation page as Markdown, such as astra://docs/coding-tools/mcp, indexed by page title.