Skip to Content

search_clients

Find clients by name, email or phone.

readOnly reads. Clients can run it without asking you.

What it does

Find clients by name, email or phone. Returns the workspace's AppliFlo clients (id, name, email, phone, company, owner, open and completed document counts, CRM links) and, when include_crm is on (the default) and the query has at least 2 characters, matching people in the connected CRMs (GlobalyOS or Agentcis) under crm.results, each with a recordRef {sourceId, entity, recordId}. Use it first whenever the user names a client. A CRM person who is not yet an AppliFlo client can be added with create_client (pass crm_record to link it), or linked to an existing client with link_client_crm. Without a query it lists clients, most recently active first. Use get_client for one client's full record, custom fields included.

Inputs

NameTypeDescription
querystringName, email or phone to look for. Omit to list clients.Up to 100 characters
scopestringworkspace (default): every client; mine: clients you own.One of: workspace, mine
statusstring[]Only clients with open documents, all completed, or none.
trashbooleantrue: only clients in the Trash.
sortstringOne of: last_activity, name, created
pageintegerAt least 1
limitintegerClients per page, 1 to 50 (default 25).1 to 50 · Default: 25
include_crmbooleanAlso search the connected CRMs (default true). Members and up only.

Call it

Your MCP client builds this request for you. This is what it sends to https://appliflo.com/api/mcp, with the required inputs filled with placeholders.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "search_clients",
    "arguments": {}
  }
}

Input schema

The JSON Schema the server lists for this tool in tools/list.

{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "query": {
      "type": "string",
      "maxLength": 100,
      "description": "Name, email or phone to look for. Omit to list clients."
    },
    "scope": {
      "type": "string",
      "enum": [
        "workspace",
        "mine"
      ],
      "description": "workspace (default): every client; mine: clients you own."
    },
    "status": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "has_open",
          "all_completed",
          "no_documents"
        ]
      },
      "description": "Only clients with open documents, all completed, or none."
    },
    "trash": {
      "type": "boolean",
      "description": "true: only clients in the Trash."
    },
    "sort": {
      "type": "string",
      "enum": [
        "last_activity",
        "name",
        "created"
      ]
    },
    "page": {
      "type": "integer",
      "minimum": 1
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "default": 25,
      "description": "Clients per page, 1 to 50 (default 25)."
    },
    "include_crm": {
      "type": "boolean",
      "description": "Also search the connected CRMs (default true). Members and up only."
    }
  }
}

On this page