Tireless Crew Tireless Crew
Docs
Sign in Get started free

API & MCP

Automate the platform programmatically using a Bearer API key. The primary interface is an MCP server with 46 tools covering agents, runs, access requests, tools, credentials, models, templates, and destinations — but most tools are administrative. Regular customers can run agents, view their own agents and runs, and manage their own credentials; admins have the full set.

Authentication

All API endpoints require a Bearer token in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Create and manage API keys from API Keys in the dashboard sidebar (https://app.tirelesscrew.com/api-keys). Each key belongs to the user who creates it, and every MCP action is attributed to that owner — admin-only tools require an admin's key. Keys are shown only once at creation (only a SHA-256 hash is stored), so store them securely.

Access by role

Every MCP action is attributed to the API key's owner, and the tools available are limited by that owner's role. Calling a tool your role is not permitted to use returns an error.

RoleWhat you can do over MCP
Customer Run agents and read your own runs (run_agent, get_run_status, list_agent_runs), view agents you have access to (list_agents, get_agent), manage your own credentials (create_credential, update_credential, delete_credential, upsert_credential, list_credentials, list_credential_templates), and request access to published agents (request_agent_access).
Support Everything a customer can read, plus running agents — read-only browsing of agents, tools, templates, destinations and credentials. No create, update, or delete.
Admin The full set of tools — creating, editing, deleting and publishing agents; attaching tools; and managing tools, models, templates, destinations, credentials, and access requests.

The reference tables below list every tool. Tools marked Admin only — creating/editing/deleting/publishing agents, attaching or detaching tools, managing tools, models, destinations, and platform credentials — require an administrator's API key.

MCP server

The platform exposes a Model Context Protocol (MCP) server at:

POST https://app.tirelesscrew.com/api/mcp

This endpoint follows the MCP spec 2025-03-26 streamable HTTP transport: JSON-RPC requests return a response, notifications (no id) get a silent 202, and initialize returns an Mcp-Session-Id header. You can connect it to Claude Desktop / Claude Code (via mcp-remote), or any MCP-compatible client. See the in-app Admin → Docs → MCP Server Setup for a ready-to-paste Claude Desktop config.

Calling a tool

curl -X POST 'https://app.tirelesscrew.com/api/mcp' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -d '{
    "jsonrpc": "2.0",
    "id":      1,
    "method":  "tools/call",
    "params": {
      "name":      "list_agents",
      "arguments": {}
    }
  }'

MCP tools

46 tools are available, grouped below by class. The authoritative list is always what tools/list returns.

Agents

ToolDescription
list_agentsList all agents you have access to; includes published_at.
get_agentFull agent detail including tools, destinations summary [{id,type,is_active}], and published_at.
create_agentCreate a new agent with a name, model, system prompt, and trigger type.
update_agentUpdate an existing agent's name, model, system prompt, or trigger.
delete_agentSoft-delete an agent. It is removed from listings but can be restored by an admin.
attach_toolAttach a tool to an agent with an alias and optional credential source.
detach_toolRemove a tool from an agent by its alias.
publish_agentPublish an agent to the catalog; enforces AgentPreflightService, returns checklist on hard failure. Admin only.
unpublish_agentRemove an agent from the catalog. Admin only.
preflight_agentRun preflight checks and return the full checklist without publishing. Admin only.

Agent Runs

ToolDescription
run_agentTrigger an agent run immediately. Performs preflight and credit checks. Returns a run_id to poll.
get_run_statusPoll a run for status, output, tokens, cost, duration, and human-readable error.
list_agent_runsList runs scoped to the authenticated user. Filter by agent_id or status. Admins see all runs.

Access Requests

ToolDescription
request_agent_accessSubmit an access request for a published agent. Customer role only. Rejects duplicate pending requests.
list_access_requestsList access requests by status (default: pending). Admin only.
approve_access_requestApprove a pending request; grants access and sends a notification email. Admin only.
deny_access_requestDeny a pending request and send a notification email. Admin only.

Tool Library

ToolDescription
list_toolsBrowse all active tools available on the platform.
get_toolRetrieve full configuration for a single tool by slug or ID.
create_toolCreate a new tool definition; accepts credential_id and credential_source_preference. Admin only.
update_toolUpdate an existing tool's configuration including auth fields. Admin only.

Credentials

ToolDescription
list_credentialsList your saved credentials.
create_credentialCreate a new named credential with encrypted field values.
update_credentialUpdate an existing credential's name, label, or config values.
delete_credentialDelete a credential. Cannot be undone.
upsert_credentialCreate or update a credential by name (idempotent). Useful for automation.
list_credential_templatesList auth template schemas — the field definitions for each auth type.
list_admin_credentialsList platform-scoped credentials. Admin only.
create_admin_credentialCreate a platform-scoped credential shared across all agents. Admin only.

Reasoning Models

ToolDescription
list_reasoning_modelsList all configured AI models available on the platform.
get_reasoning_modelRetrieve full connection config for a single model.
create_reasoning_modelCreate a new model with endpoint, auth, and request format config. Admin only.
update_reasoning_modelUpdate an existing model's configuration. Admin only.

Agent Templates

ToolDescription
list_agent_templatesList all active agent templates.
deploy_agent_templateDeploy a template to create a new agent in your account from a template slug.

Destinations

ToolDescription
list_destinationsList all output delivery destinations attached to an agent.
create_destinationAdd an email, webhook, or Slack destination to an agent.
delete_destinationRemove a destination from an agent.

REST endpoints

Two lightweight REST endpoints are also available for model discovery and direct chat completion:

EndpointDescription
POST https://app.tirelesscrew.com/api/v1/chat Send a chat completion request through the gateway. Pass model, messages, and optional options. Returns generated content and token usage.
GET https://app.tirelesscrew.com/api/v1/models Returns all available model identifiers with per-million-token pricing. Public — no auth required.

Error codes

StatusMeaning
401Missing or invalid Authorization: Bearer header.
402Insufficient credits to complete the request.
403The API key does not have permission for this operation (e.g. non-admin attempting an admin-only tool).
404The requested resource does not exist or you do not have access to it.
422Validation error — the request body is missing required fields or contains invalid values.
429Rate limit exceeded. The API allows 60 requests per minute per key.
500Unexpected server error. If this persists, contact support.