Skip to content

Configuring Agents

Agent fields

Field Purpose
name Human-readable identifier
description What this agent is designed to do
model Claude model ID
systemPrompt Defines the agent’s role, constraints, and output format
mcpServerIds Which MCP servers to pull tools from
status active enables the agent to run

Choosing a model

Model When to use
claude-sonnet-4-6 Best balance of quality and speed — recommended default
claude-opus-4-6 Complex multi-step reasoning, large documents
claude-haiku-4-5-20251001 High-frequency automated jobs where speed/cost matters

Writing effective system prompts

Role definition

Start with a clear role statement:

You are a ConnectWise PSA assistant for Lockstep Technology Group.
Your job is to help technicians and managers find information about
service tickets, companies, and contacts.

Tool guidance

Tell the agent when to use which tools:

When asked about tickets:
- Use connectwise_psa_get_tickets with appropriate filters
- Always filter by company name when a specific company is mentioned
- Default limit is 20 unless the user asks for more
When asked about storage or files:
- Use list_s3_buckets to discover available buckets first
- Use list_s3_objects with a specific prefix when looking for files

Output format

Define the expected response format:

Always respond with:
1. A brief summary (1-2 sentences)
2. The relevant data in a formatted list
3. Any recommended actions
Never include raw JSON in your responses — format it as readable text.

Constraints

Prevent unwanted behaviour:

You may NOT:
- Create, update, or delete any records
- Disclose API keys or credentials
- Answer questions unrelated to ConnectWise or IT service management

Linking MCP servers

An agent can use tools from multiple MCP servers. The portal discovers and merges all tools before each run.

Example: an agent linked to both the built-in MCP server and an external CRM server would have access to:

  • 16 built-in tools (products, tickets, storage, etc.)
  • All tools from the CRM server

Tool names must be unique across all linked servers. If there’s a collision, the first server in the list wins.

Testing agents

Before using an agent in production:

  1. Run it with simple queries to verify tool discovery works
  2. Test edge cases (no results, large result sets, invalid filters)
  3. Check iteration count — if it consistently hits 10 iterations, the agent needs a better system prompt to stop earlier
  4. Monitor for tool call loops (agent repeatedly calls the same tool with different args without converging)