# LotsAgent skill

For an AI agent working with LotsAgent for a person. People read https://lotsagent.com/help;
this file says which tool to use and with which arguments.

## Two ways in

1. **Use one agent** the person built. Its MCP address is
   `https://lotsagent.com/api/v1/agents/<handle>/mcp`. The owner turns on
   "Allow MCP connections" on the agent's Deploy tab, under API and MCP (off by
   default). Sign-in is OAuth, found by the client; an API key works as a Bearer
   token too.
2. **Manage the person's LotsAgent account** (agents, knowledge, skills, workspaces
   and team) through the LotsAgent MCP server at `https://api.lotsagent.com/mcp`
   (OAuth). The person chooses what you may do: read, change, publish and delete.
   The same tools are REST endpoints under `https://api.lotsagent.com/api/v1/lotsagent`
   with a workspace API key; https://api.lotsagent.com/docs lists them.

Without MCP, call the chat API: `POST https://lotsagent.com/api/v1/agents/<handle>/chat`
with `{"message": "..."}` and an API key with Chat access from Settings, API Keys, as
`Authorization: Bearer <key>`. Full reference: https://lotsagent.com/docs/api.

## Account tools

Arguments marked * are required. agent_id takes the agent's id or its handle.
The class says what the person must allow: read, write (change), send (publish:
puts an agent in front of people) or delete.

| Tool | Class | Arguments |
|---|---|---|
| list_skills | read | none |
| create_skill | write | none |
| import_skill | write | none |
| get_skill | read | none |
| update_skill | write | none |
| delete_skill | delete | none |
| list_agent_skills | read | none |
| assign_skill_to_agent | write | none |
| remove_skill_from_agent | write | none |
| list_agents | read | archived, workspace_id |
| get_agent | read | agent_id* |
| check_handle | read | handle* |
| list_models | read | none |
| create_agent | write | name*, handle, description, template, instructions, model |
| update_agent | write | agent_id*, name, description, status, instructions, personality, model, role, tone, emoji |
| restore_agent | write | agent_id* |
| archive_agent | delete | agent_id* |
| set_agent_mcp_access | send | agent_id*, enabled* |
| get_sidebar_settings | read | agent_id* |
| update_sidebar_settings | write | agent_id*, enabled, test_mode, allowed_origins, allow_anonymous |
| update_agent_limits | write | agent_id*, messages_per_person_per_day, daily_spend_cap_usd, spend_alert_percent, limit_timezone, retention_days, notice_markdown |
| update_agent_look | write | agent_id*, button, button_label, mode, side, colour, title, welcome_title, starter_questions |
| stop_agent | write | agent_id* |
| list_agent_tools | read | agent_id* |
| add_agent_tool | write | agent_id*, integration_tool_ids*, user_integration_id, is_required |
| update_agent_tool | write | agent_id*, tool_id*, is_enabled, is_required |
| remove_agent_tool | write | agent_id*, tool_id* |
| list_agent_actions | read | agent_id* |
| preview_openapi_actions | read | agent_id*, url, document, base_url |
| import_openapi_actions | write | agent_id*, url, document, base_url, operations*, auth, timeout_ms, max_response_bytes |
| add_agent_read_action | write | agent_id*, display_name*, name, description*, url_template*, parameters, headers, permission_class, confirm_override, audience, auth, timeout_ms, max_response_bytes |
| add_agent_write_action | write | agent_id*, display_name*, name, description*, url_template*, parameters, headers, permission_class, confirm_override, audience, auth, method*, body_schema, timeout_ms, max_response_bytes |
| update_agent_read_action | write | agent_id*, action_id*, display_name, name, description, url_template, parameters, headers, permission_class, confirm_override, audience, auth, clear_secret, is_enabled, timeout_ms, max_response_bytes |
| update_agent_write_action | write | agent_id*, action_id*, display_name, name, description, url_template, parameters, headers, permission_class, confirm_override, audience, auth, clear_secret, is_enabled, timeout_ms, max_response_bytes, method, body_schema |
| remove_agent_action | delete | agent_id*, action_id* |
| test_agent_action | send | agent_id*, action_id*, input |
| list_agent_action_calls | read | agent_id*, action_id, limit |
| list_available_apps | read | search, category, limit, offset |
| get_app_tools | read | app_key*, search |
| list_connections | read | limit, offset |
| get_connect_link | read | app_key*, agent_id |
| disconnect_app | delete | connection_id* |
| list_tasks | read | agent_id*, search, schedule_type, limit, offset |
| create_task | write | agent_id*, name*, instructions*, description, schedule_type, scheduled_at, cron_expression, timezone, enabled |
| get_task | read | task_id* |
| update_task | write | task_id*, name, instructions, description, schedule_type, scheduled_at, cron_expression, timezone, enabled |
| delete_task | delete | task_id* |
| run_task | write | task_id*, input_data, idempotency_key |
| list_task_runs | read | task_id*, limit, offset |
| get_task_run | read | run_id* |
| list_agent_api_keys | read | agent_id* |
| revoke_agent_api_key | delete | agent_id*, key_id* |
| list_workspace_api_keys | read | none |
| revoke_workspace_api_key | delete | key_id* |
| get_api_keys_link | read | agent_id |
| get_web_address | read | agent_id* |
| set_web_address | send | agent_id*, public, subdomain |
| set_custom_domain | send | agent_id*, domain* |
| verify_custom_domain | write | agent_id* |
| remove_custom_domain | delete | agent_id* |
| list_activity | read | agent_id, kind, workspace_id, limit |
| list_conversations | read | workspace_id |
| list_agent_conversations | read | agent_id*, search, from, to, limit, offset |
| get_conversation | read | agent_id*, conversation_id* |
| get_usage | read | group_by, agent_id, days, start_date, end_date, limit, offset |
| list_usage_logs | read | agent_id, run_id, days, limit, offset |
| get_billing | read | none |
| list_credit_transactions | read | limit, offset |
| get_credits_link | read | none |
| get_plan_link | read | none |
| get_agent_memory | read | agent_id* |
| update_agent_memory | write | agent_id*, memory, mode, about_me |
| get_profile | read | none |
| test_agent | write | agent_id*, message*, session_id |
| list_knowledge | read | agent_id*, search, limit |
| get_knowledge_item | read | agent_id*, file_id* |
| add_knowledge_text | write | agent_id*, title*, text*, source_url |
| update_knowledge_item | write | agent_id*, file_id*, title, description, source_url, content, expected_updated_at |
| reindex_knowledge_item | write | agent_id*, file_id* |
| remove_knowledge_item | delete | agent_id*, file_id* |
| add_knowledge_website | write | agent_id*, url*, mode, schedule |
| get_knowledge_website | read | agent_id*, website_id* |
| update_knowledge_website | write | agent_id*, website_id*, schedule* |
| sync_knowledge_website | write | agent_id*, website_id* |
| remove_knowledge_website | delete | agent_id*, website_id* |
| list_knowledge_gaps | read | agent_id*, status, limit |
| update_knowledge_gap | write | agent_id*, gap_id*, status* |
| list_workspaces | read | none |
| create_workspace | write | name*, kind, client_name, client_email |
| list_workspace_members | read | workspace_id* |
| invite_workspace_member | send | workspace_id*, email*, role |
| update_workspace_member | delete | workspace_id*, user_id*, role* |
| remove_workspace_member | delete | workspace_id*, user_id* |
| leave_workspace | write | workspace_id* |
| accept_invitation | write | token* |
| cancel_invitation | write | workspace_id*, invitation_id* |
| resend_invitation | send | workspace_id*, invitation_id* |
| list_invitations | read | workspace_id*, status |
| list_support_access | read | workspace_id* |
| grant_support_access | send | workspace_id*, duration, may_publish, note, confirmed |
| revoke_support_access | delete | workspace_id* |
| submit_support_request | write | type*, title*, details*, tool_name, error_message, request_id |
| list_support_requests | read | status, limit, case_number |
| get_workspace | read | workspace_id* |
| update_workspace | write | workspace_id*, name, client_name, client_email |
| get_workspace_handover | read | workspace_id* |
| start_workspace_handover | send | workspace_id*, to_email*, keep_previous_owner, previous_owner_role |
| cancel_workspace_handover | write | workspace_id* |
| preview_workspace_handover | read | token* |
| accept_workspace_handover | write | token*, confirm |
| decline_workspace_handover | write | token* |

## Rules

- Start with list_agents or get_agent, and say which agent and workspace you are acting in.
- Show the person what you will create or change, and wait for their yes, before
  any write, send or delete.
- New agents start as drafts from a template; list_models gives the models they can run on.
- archive_agent can be undone with restore_agent.
- Never ask for or repeat a secret. API keys are made in the console, where they are
  shown once. Uploading files, the sidebar, the web address and buying credits are in
  the console too: point the person to the agent's Knowledge or Deploy tab, or Billing,
  with the help link for the topic.
- Never put an API key in a web page or anything people can download.
