ONE groups:list
← Receivers

groups:list

groups family

mcp

List the groups you can see, with names, parents, who made them, counts, last activity and paid orders. Only the owner of the platform group (the parent of group `one`) sees every group; everyone else, other root owners included, sees their own group, everything below it, and groups they hold an owner or admin seat on. The scope comes from your sign-in, never from the request. Reads D1 only. `capped` says the scope was cut, `total` counts what matched, `next` is the cursor for the next page.

Effect
ask
Awaits an outcome — the call returns the response below.
Caller
member
The class of authority the caller must already hold, decided from the attested context with no round trip.
Cost
free
What one call costs, so you can budget before acting.
Reversible
yes
The effect can be undone by a later call.
Idempotent
yes
Safe to retry as-is.

Send it with your agent

One click hands your coding agent a prompt that registers the substrate, reads this contract, and makes the call. Launch opens the app; the others copy the prompt.

Claude Code
Codex
Cursor
Gemini CLI
Claude Desktop
ChatGPT
curl -X POST https://one.ie/api/ask/groups:list \
  -H "Authorization: Bearer $ONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"data": { "looksLikeTest": true, "sort": "created" }}'

The key is never in a link. npx -y @oneie/cli login writes it to ~/.config/oneie/key on your machine.

Request

Validated before dispatch — an invalid payload is refused with the fix, never half-applied.

  • query string optional Part of a slug, a name or a display name. Plain substring, case-insensitive.
  • parent string optional Only the groups directly below this slug.
  • kind person | agent optional
  • looksLikeTest boolean optional true: only agent-made groups with no live paid order that have been idle 30 days. Selection help, not a verdict.
  • idle boolean optional true: only groups with no event in the last 30 days (or ever). `total` then equals `summary.idle`.
  • withSales boolean optional true: only groups with at least one live paid order (test money and unrecorded orders do not count). `total` then equals `summary.withSales`.
  • sort name | created | activity | … optional Default created, newest first. name sorts a to z. activity, orders and children sort largest first.
  • limit number optional Rows in the page, default 50.
  • cursor string optional The `next` of the previous page.

Response

What comes back from the call.

  • ok boolean
  • scope all | tree all: the owner of the platform group, every group. tree: your own group, what is below it, and your seats.
  • rows object[]
  • total number Groups that matched, before paging, among those read.
  • next string | null Cursor for the next page, null on the last.
  • capped boolean true when the scope itself was cut at 5,000 groups: totals and the summary are then lower bounds.
  • summary object Over every group in scope, not only the matches.
  • asOf number Unix seconds this answer was read.
  • notes string[] What could not be read, in plain words: a missing count is never a zero.
  • error string forbidden (nothing you can see), no_group, no_db

Traffic

Every call to groups:list, counted where it is dispatched — over HTTP or in-process alike. Aggregate only — no actor, no payload, no workspace.

Counting…

Wiring

Every place in the open source that names groups:list, and the file that answers it. Read from the tree at build time — a receiver is reached by NAME through one door, so there is no import edge to follow and a grep is the honest shape of the question. Structure, not volume — the count is in Traffic above.

Called from

UI 1
  • one.ie/web/src/components/groups/GroupsConsole.tsx:180
API route 2
  • one.ie/web/src/lib/receiver-index.generated.ts:233
  • one.ie/web/src/lib/resolvers/groups-admin.ts:342
CLI 3
  • packages/cli/src/group.ts:237
  • packages/cli/src/lib/receivers-index.generated.ts:236
  • packages/cli/src/lib/receivers.generated.ts:236
→

Answered by

groups:list one.ie/web/src/lib/resolvers/groups-admin.ts:541 Dispatched through POST /api/ask/groups:list, after the envelope validates the payload.
JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "query": {
      "description": "Part of a slug, a name or a display name. Plain substring, case-insensitive.",
      "type": "string",
      "maxLength": 80
    },
    "parent": {
      "description": "Only the groups directly below this slug.",
      "type": "string",
      "maxLength": 80
    },
    "kind": {
      "type": "string",
      "enum": [
        "person",
        "agent"
      ]
    },
    "looksLikeTest": {
      "description": "true: only agent-made groups with no live paid order that have been idle 30 days. Selection help, not a verdict.",
      "type": "boolean"
    },
    "idle": {
      "description": "true: only groups with no event in the last 30 days (or ever). `total` then equals `summary.idle`.",
      "type": "boolean"
    },
    "withSales": {
      "description": "true: only groups with at least one live paid order (test money and unrecorded orders do not count). `total` then equals `summary.withSales`.",
      "type": "boolean"
    },
    "sort": {
      "description": "Default created, newest first. name sorts a to z. activity, orders and children sort largest first.",
      "type": "string",
      "enum": [
        "name",
        "created",
        "activity",
        "orders",
        "children"
      ]
    },
    "limit": {
      "description": "Rows in the page, default 50.",
      "type": "integer",
      "minimum": 1,
      "maximum": 90
    },
    "cursor": {
      "description": "The `next` of the previous page.",
      "type": "string",
      "maxLength": 20
    }
  }
}
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "scope": {
      "description": "all: the owner of the platform group, every group. tree: your own group, what is below it, and your seats.",
      "type": "string",
      "enum": [
        "all",
        "tree"
      ]
    },
    "rows": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The group's current public name (web_names), or null when it has none."
          },
          "displayName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "parent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The parent group's slug, null for a top-level group or for the top of the part of the tree you can see: a parent above it is never named."
          },
          "depth": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Levels below the top of the tree you can see: 0 for a top-level group, or for the top of your own part of a tree. The owner of the platform group counts from group `one` (0), and a parent loop is never counted round."
          },
          "children": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Groups directly below it."
          },
          "plan": {
            "type": "string"
          },
          "createdAt": {
            "type": "number",
            "description": "Unix seconds."
          },
          "kind": {
            "type": "string",
            "enum": [
              "person",
              "agent"
            ],
            "description": "agent = made by an agent or a script (it has an actor_creators row, an agent actor row, or a uuid slug); person = anything else. Never read from a credential."
          },
          "madeBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The creator named by actor_creators, when there is one."
          },
          "lastActivityAt": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Unix seconds of the newest recorded event in this group, or null when it never had one."
          },
          "idle": {
            "type": "boolean",
            "description": "No event in the last 30 days (or never)."
          },
          "orders": {
            "type": "object",
            "properties": {
              "paid": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "Paid orders in live money only: status paid and test_mode 0."
              },
              "test": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "Paid orders in test money. Counted, never turned into dollars."
              },
              "unknown": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "Paid orders with no test_mode recorded (older rows). Not counted as live, not counted as test."
              },
              "cents": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "Live paid orders in USD cents: orders.amount_total over status paid, test_mode 0, currency usd."
              }
            },
            "required": [
              "paid",
              "test",
              "unknown",
              "cents"
            ]
          },
          "settledCents": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Cash in under the books fence: settlements paid, test_mode 0, a cash rail, payer not one or tony. A different table from `orders`, so the two numbers can differ."
          },
          "looksLikeTest": {
            "type": "boolean",
            "description": "agent-made, no live paid order, and idle. A guess to help you select, never a verdict."
          },
          "counts": {
            "description": "Counted over this page only; absent on a row that was not read.",
            "type": "object",
            "properties": {
              "members": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "world_actors rows homed in the group."
              },
              "activeKeys": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "Keys acting as this group that are not revoked and not past their end."
              },
              "productsLive": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "productsDraft": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "pages": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "members",
              "activeKeys",
              "productsLive",
              "productsDraft",
              "pages"
            ]
          }
        },
        "required": [
          "slug",
          "name",
          "displayName",
          "parent",
          "depth",
          "children",
          "plan",
          "createdAt",
          "kind",
          "madeBy",
          "lastActivityAt",
          "idle",
          "orders",
          "settledCents",
          "looksLikeTest"
        ]
      }
    },
    "total": {
      "description": "Groups that matched, before paging, among those read.",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "next": {
      "description": "Cursor for the next page, null on the last.",
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "capped": {
      "description": "true when the scope itself was cut at 5,000 groups: totals and the summary are then lower bounds.",
      "type": "boolean"
    },
    "summary": {
      "description": "Over every group in scope, not only the matches.",
      "type": "object",
      "properties": {
        "total": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "people": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "agents": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "withSales": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991,
          "description": "Groups with at least one live paid order."
        },
        "idle": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        },
        "looksLikeTest": {
          "type": "integer",
          "minimum": -9007199254740991,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "total",
        "people",
        "agents",
        "withSales",
        "idle",
        "looksLikeTest"
      ]
    },
    "asOf": {
      "description": "Unix seconds this answer was read.",
      "type": "number"
    },
    "notes": {
      "description": "What could not be read, in plain words: a missing count is never a zero.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "error": {
      "description": "forbidden (nothing you can see), no_group, no_db",
      "type": "string"
    }
  },
  "required": [
    "ok"
  ]
}