Agent vs Gateway
MCP Gateway
- Passive: exposes tools, waits for external client
- Stateless: no memory between requests
- Controlled: operates on external client’s schedule
- Use for: providing tools to external AI systems
Agent
- Active: reasons about tasks, calls tools proactively
- Stateful: maintains working memory and conversation history
- Autonomous: operates on schedule or on-demand
- Use for: autonomous execution, persistent assistants
- Use Gateway: “I want to expose tools to Claude or other AI”
- Use Agent: “I want my own AI system that acts autonomously”
Agent Architecture
Agent Specifications
When you create an agent, you define its specifications:Key Components
Name & Description- Human-readable identifier and purpose
- Used for logging, displays, agent discovery
Smart Routing
Platform automatically chooses the best model based on task requirements.- fast: GPT-4o Mini, Claude Haiku (cheap, quick)
- standard: GPT-4, Claude Opus (balanced)
- advanced: GPT-5, Claude Opus 4 (powerful, expensive)
Specific Routing
Agent always uses one specific model (or a budget model for cost optimization).- Built-in (Files, Web Search, etc.)
- Plugins (your custom tools)
- Connectors (external APIs)
- working_memory_size: Recent messages to keep in fast access (Redis)
- enable_summarization: Compress old messages via LLM
- archive_threshold: How many messages before summarizing
Agent Lifecycle
Agent Execution Modes
On-Demand
Agent processes single request and returns result.Scheduled
Agent runs on a schedule (daily, hourly, etc.).Streaming
Agent output streams in real-time.Multi-Agent Workflows
Agents can collaborate through A2A protocol: How it works:- Coordinator receives user request
- Coordinator determines subtasks
- Coordinator sends tasks to specialized agents via A2A
- Agents execute tasks, return results
- Coordinator aggregates, sends final response
- Divide complex tasks into subtasks
- Parallelize execution
- Specialize agents for different tasks
- Resilient to individual agent failures
Agent vs Agent Gateway
Agent (Standalone)
- Created in Console or via API
- Manages its own state, memory, execution
- Can be triggered on-demand or scheduled
- Has its own agent-.noorle.com endpoint
Agent Gateway (Wrapper)
When you want external clients to invoke an agent:- Wraps an agent in MCP protocol
- Exposes agent’s tools and memory
- Allows clients to interact with agent
- Creates agent-.noorle.com endpoint
Common Patterns
Pattern: Customer Support Agent
Pattern: Data Processing Agent
Pattern: Monitoring Agent
Configuration Best Practices
Start with Smart Routing
Let Noorle pick the model. Switch to Specific when you know your needs.
Clear Instructions
Write detailed system prompts. Include examples. Specify output format.
Memory for Long Tasks
Enable summarization for long conversations. Archive old messages.
Monitor Usage
Track token usage, costs, errors. Adjust tiers based on metrics.
Next: Learn about Connectors for external service integration.