# Agents tools

[All tool areas](/docs/tools.md). Each tool acts within your access.

## Agents

### list_agents

List the organization's AI agents (the assistant, the ops agent, the revenue agent): each one's status, autonomy, tools, AI credit budgets, grants, whether it's working right now and why not, where it's switched off, and its open proposals.

Reads · Members of an organization · Needs agents:read

#### Input

- `includeRemoved` — string; optional. Also list removed agents

#### Output

- `agents` — array; required. 
  - `agents[]` — object; optional. 
    - `agents[].id` — string; required. 
    - `agents[].kind` — string; required. assistant: acts for the person using it, within their access. ops: daily operations. revenue: pricing suggestions Allowed: "assistant", "ops", "revenue"
    - `agents[].name` — string; required. 
    - `agents[].status` — string; required. active, paused (refuses everything until resumed), or removed (for good: its grants are gone, its history stays) Allowed: "active", "paused", "removed"
    - `agents[].autonomy` — string; required. off: does nothing. shadow: its proposals are recorded for evaluation and never shown. suggest: its proposals go to the Inbox for a person to approve. act_within_limits isn't available yet Allowed: "off", "shadow", "suggest", "act\_within\_limits"
    - `agents[].tools` — array or null; required. The registry tools it may call. Null: every tool an agent can reach (the assistant's, bounded by the person it acts for)
      - `agents[].tools[]` — string; optional. 
    - `agents[].dailyAiCredits` — integer or null; required. The most AI credits it may spend in a day; null: no cap minimum: -9007199254740991; maximum: 9007199254740991
    - `agents[].monthlyAiCredits` — integer or null; required. The most AI credits it may spend in a month; null: no cap minimum: -9007199254740991; maximum: 9007199254740991
    - `agents[].actsForPerson` — boolean; required. The assistant: it has no grants of its own and acts within the access of whoever uses it
    - `agents[].grants` — array; required. What it may do and where, as a member's grants. Empty for the assistant
      - `agents[].grants[]` — object; optional. 
        - `agents[].grants[].role` — string; required.  Allowed: "owner", "admin", "finance", "manager", "front\_desk", "host", "viewer", "developer", "venue\_partner"
        - `agents[].grants[].scope` — string; required.  Allowed: "organization", "entity", "location", "product"
        - `agents[].grants[].scopeId` — string or null; required. 
        - `agents[].grants[].locationId` — string or null; required. For a product grant at one location
        - `agents[].grants[].scopeName` — string; required. 
        - `agents[].grants[].financials` — boolean; required. 
    - `agents[].working` — boolean; required. Whether it can act at all right now: active, autonomy not off, agents not paused, and its kind switched on for the organization
    - `agents[].stoppedBecause` — string or null; required. Why it can't act right now, in staff's words; null when it can
    - `agents[].offAt` — array; required. Locations where its kind is switched off (assistantEnabled, opsAgentEnabled, revenueAgentEnabled)
      - `agents[].offAt[]` — object; optional. 
        - `agents[].offAt[].locationId` — string; required. 
        - `agents[].offAt[].locationName` — string; required. 
    - `agents[].openProposals` — integer; required. Its proposals waiting on a person minimum: -9007199254740991; maximum: 9007199254740991
    - `agents[].createdBy` — string or null; required. The member who made it (mem_…); null for the launch agents
    - `agents[].createdAt` — string; required.  format: "date-time"
    - `agents[].updatedAt` — string; required.  format: "date-time"
    - `agents[].removedAt` — string or null; required.  format: "date-time"

### set_agent_grants

Set what an AI agent may do and where: its grants, as a member's (role and scope), replacing the ones it has. You can only give what you hold there (as for members); Owner is a person's, never an agent's, and the assistant takes none (it acts within whoever uses it). An empty list takes everything away.

Changes · Members of an organization · Needs agents:write

#### Input

- `agentId` — string; required. The agent's id, from list_agents
- `grants` — array; required.  maxItems: 50
  - `grants[]` — object; optional. 
    - `grants[].role` — string; required. owner, admin, finance, manager, front_desk, host, viewer, developer, or venue_partner Allowed: "owner", "admin", "finance", "manager", "front\_desk", "host", "viewer", "developer", "venue\_partner"
    - `grants[].scope` — string; required. Where it applies: the whole organization, or one of these Allowed: "organization", "entity", "location", "product"
    - `grants[].scopeId` — string; optional. The entity, location, or product (ent_…, loc_…, prd_…). Left out for the organization
    - `grants[].locationId` — string; optional. With a product: only at this location
    - `grants[].financials` — boolean; optional. Whether it shows what orders cost and revenue default: true

#### Output

- `id` — string; required. 
- `kind` — string; required. assistant: acts for the person using it, within their access. ops: daily operations. revenue: pricing suggestions Allowed: "assistant", "ops", "revenue"
- `name` — string; required. 
- `status` — string; required. active, paused (refuses everything until resumed), or removed (for good: its grants are gone, its history stays) Allowed: "active", "paused", "removed"
- `autonomy` — string; required. off: does nothing. shadow: its proposals are recorded for evaluation and never shown. suggest: its proposals go to the Inbox for a person to approve. act_within_limits isn't available yet Allowed: "off", "shadow", "suggest", "act\_within\_limits"
- `tools` — array or null; required. The registry tools it may call. Null: every tool an agent can reach (the assistant's, bounded by the person it acts for)
  - `tools[]` — string; optional. 
- `dailyAiCredits` — integer or null; required. The most AI credits it may spend in a day; null: no cap minimum: -9007199254740991; maximum: 9007199254740991
- `monthlyAiCredits` — integer or null; required. The most AI credits it may spend in a month; null: no cap minimum: -9007199254740991; maximum: 9007199254740991
- `actsForPerson` — boolean; required. The assistant: it has no grants of its own and acts within the access of whoever uses it
- `grants` — array; required. What it may do and where, as a member's grants. Empty for the assistant
  - `grants[]` — object; optional. 
    - `grants[].role` — string; required.  Allowed: "owner", "admin", "finance", "manager", "front\_desk", "host", "viewer", "developer", "venue\_partner"
    - `grants[].scope` — string; required.  Allowed: "organization", "entity", "location", "product"
    - `grants[].scopeId` — string or null; required. 
    - `grants[].locationId` — string or null; required. For a product grant at one location
    - `grants[].scopeName` — string; required. 
    - `grants[].financials` — boolean; required. 
- `working` — boolean; required. Whether it can act at all right now: active, autonomy not off, agents not paused, and its kind switched on for the organization
- `stoppedBecause` — string or null; required. Why it can't act right now, in staff's words; null when it can
- `offAt` — array; required. Locations where its kind is switched off (assistantEnabled, opsAgentEnabled, revenueAgentEnabled)
  - `offAt[]` — object; optional. 
    - `offAt[].locationId` — string; required. 
    - `offAt[].locationName` — string; required. 
- `openProposals` — integer; required. Its proposals waiting on a person minimum: -9007199254740991; maximum: 9007199254740991
- `createdBy` — string or null; required. The member who made it (mem_…); null for the launch agents
- `createdAt` — string; required.  format: "date-time"
- `updatedAt` — string; required.  format: "date-time"
- `removedAt` — string or null; required.  format: "date-time"

### update_agent

Change an AI agent: its name, status (active, paused, or removed, which can't be undone: its grants go at once and its history stays), autonomy (off, shadow, or suggest), the tools it may call (registry tool names an agent can reach, or null for every one: the assistant's), and its daily and monthly AI credit caps. Leave out what stays the same.

Changes · Members of an organization · Needs agents:write

#### Input

- `agentId` — string; required. The agent's id, from list_agents
- `name` — string; optional.  minLength: 1; maxLength: 80
- `status` — string; optional.  Allowed: "active", "paused", "removed"
- `autonomy` — string; optional. off, shadow, or suggest (act_within_limits isn't available yet) Allowed: "off", "shadow", "suggest"
- `tools` — array or null; optional.  maxItems: 300
  - `tools[]` — string; optional.  minLength: 1; maxLength: 64
- `dailyAiCredits` — integer or null; optional.  minimum: 0; maximum: 1000000
- `monthlyAiCredits` — integer or null; optional.  minimum: 0; maximum: 1000000

#### Output

- `id` — string; required. 
- `kind` — string; required. assistant: acts for the person using it, within their access. ops: daily operations. revenue: pricing suggestions Allowed: "assistant", "ops", "revenue"
- `name` — string; required. 
- `status` — string; required. active, paused (refuses everything until resumed), or removed (for good: its grants are gone, its history stays) Allowed: "active", "paused", "removed"
- `autonomy` — string; required. off: does nothing. shadow: its proposals are recorded for evaluation and never shown. suggest: its proposals go to the Inbox for a person to approve. act_within_limits isn't available yet Allowed: "off", "shadow", "suggest", "act\_within\_limits"
- `tools` — array or null; required. The registry tools it may call. Null: every tool an agent can reach (the assistant's, bounded by the person it acts for)
  - `tools[]` — string; optional. 
- `dailyAiCredits` — integer or null; required. The most AI credits it may spend in a day; null: no cap minimum: -9007199254740991; maximum: 9007199254740991
- `monthlyAiCredits` — integer or null; required. The most AI credits it may spend in a month; null: no cap minimum: -9007199254740991; maximum: 9007199254740991
- `actsForPerson` — boolean; required. The assistant: it has no grants of its own and acts within the access of whoever uses it
- `grants` — array; required. What it may do and where, as a member's grants. Empty for the assistant
  - `grants[]` — object; optional. 
    - `grants[].role` — string; required.  Allowed: "owner", "admin", "finance", "manager", "front\_desk", "host", "viewer", "developer", "venue\_partner"
    - `grants[].scope` — string; required.  Allowed: "organization", "entity", "location", "product"
    - `grants[].scopeId` — string or null; required. 
    - `grants[].locationId` — string or null; required. For a product grant at one location
    - `grants[].scopeName` — string; required. 
    - `grants[].financials` — boolean; required. 
- `working` — boolean; required. Whether it can act at all right now: active, autonomy not off, agents not paused, and its kind switched on for the organization
- `stoppedBecause` — string or null; required. Why it can't act right now, in staff's words; null when it can
- `offAt` — array; required. Locations where its kind is switched off (assistantEnabled, opsAgentEnabled, revenueAgentEnabled)
  - `offAt[]` — object; optional. 
    - `offAt[].locationId` — string; required. 
    - `offAt[].locationName` — string; required. 
- `openProposals` — integer; required. Its proposals waiting on a person minimum: -9007199254740991; maximum: 9007199254740991
- `createdBy` — string or null; required. The member who made it (mem_…); null for the launch agents
- `createdAt` — string; required.  format: "date-time"
- `updatedAt` — string; required.  format: "date-time"
- `removedAt` — string or null; required.  format: "date-time"
