Overview
Every tool you create on Constants is automatically available through multiple interfaces — all backed by the same execution engine, credential resolution, and audit trail.| Interface | How It Works |
|---|---|
| Web UI | Generated form with file upload, streaming logs, and artifact download |
| Agent Chat | Built-in AI assistant that discovers and runs your tools |
| MCP | Model Context Protocol endpoint for any MCP-compatible AI agent |
| Slack Bot | Mention the bot in Slack to run tools conversationally |
| REST API | Programmatic POST /v1/run/[toolName] for automation |
Agent Chat
What Is It?
Constants includes a built-in AI assistant powered by Claude that can discover your tools, understand what they do, and execute them in multi-step workflows.How to Use
- Open the Agent tab from the sidebar
- Start a new conversation or continue an existing one
- Ask the agent to find and run tools, analyze results, or chain multiple tools together
Capabilities
Tool Discovery
Tool Discovery
The agent sees all tools you own and tools shared with you. Ask it “what tools do I have?” or describe what you need — it will find the right tool.
Tool Execution
Tool Execution
The agent executes tools in the same E2B sandboxes as the UI. Results include full output, artifacts, and run logging.
File Attachments
File Attachments
Attach files to your chat messages. The agent auto-maps files to tool input fields by matching MIME types against the tool’s
accept patterns. If required files are missing, the agent asks for them.Multi-Turn Workflows
Multi-Turn Workflows
The agent maintains conversation context across turns. Chain tool executions, ask follow-up questions about results, or refine parameters based on output.
Architecture
The agent system uses a split architecture for reliability:- Web app: Handles authentication, creates conversation records, enqueues agent runs
- Agent worker: Standalone process that polls the database, runs Claude Agent SDK, and streams events back
MCP (Model Context Protocol)
What Is It?
MCP is an open protocol for AI agents to discover and execute tools. Every Constants tool is automatically exposed as an MCP tool — no extra configuration needed.Setup
Add the Constants MCP server to your agent or IDE configuration:How It Works
- Discovery: Agent calls
tools/listto see all available tools (owned + shared) - Execution: Agent calls
tools/callwith tool name and arguments - Results: Output returned with the same structure as UI execution
- A sanitized name (tool title + unique ID suffix)
- Description from the tool summary
- Input schema derived from the interface schema
Governance
MCP executions get the same governance as UI runs:- Credentials resolved through the same binding chain
- Runs logged with
triggeredBy: "agent"andtriggerSource: "mcp" - Full audit trail with input/output, timing, and credential sources
Slack Bot
Installation
- Go to your organization settings in Constants
- Click Connect Slack
- Authorize the Constants bot for your Slack workspace
- Choose a default configuration for the bot
Usage
Mention the bot in any channel or thread:How It Works
Mention Detected
Slack sends an
app_mention event to Constants. The bot posts a “Working on it…” message immediately.Context Gathered
If the mention is in a thread, the bot reads the last 50 messages for context, enabling multi-turn interactions.
Agent Processes
The request is queued as an agent run. The agent worker picks it up, runs Claude with your tools available, and determines which tool to use.
Thread Conversations
The Slack bot supports multi-turn interactions within threads:REST API (V1)
Overview
For programmatic access and automation, use the V1 REST API:Key Endpoints
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/tools | List tools with schemas |
POST | /v1/run/:toolName | Execute a tool (waits up to 50s) |
GET | /v1/skill/:toolName | Get tool documentation as markdown |
GET | /v1/skills/search | Search available tools |
API Keys
All programmatic interfaces (REST API, MCP, Slack bot) use API keys for authentication.Creating Keys
- Click your profile icon → API Keys
- Click Create New Key
- Choose scopes:
mcp:read— List tools and view schemasmcp:execute— Execute tools
Key Security
- Keys are hashed before storage — Constants never stores the plain key
- Each key has configurable scopes for least-privilege access
- Keys can be revoked individually at any time
- Usage is tracked per-key for audit purposes
Organizations & Access
Tool Visibility
| Access Level | Who Can See/Run |
|---|---|
| Owner | The user who created the tool |
| Shared | Specific users added via email sharing |
| Organization | All members of the tool’s organization |
| Featured | Public discovery (admin-curated) |
Cross-Interface Consistency
Regardless of which interface triggers execution:- Same credential resolution chain (org binding → personal → auto-match → runtime)
- Same E2B sandbox with same compute tier and resource limits
- Same run logging with full context (caller type, trigger source, credential sources)
- Same quota accounting against the organization
What’s Next?
API Reference
Full API documentation with examples
Architecture
Deep dive into the system architecture
