Lesson 1.3. What It Gives You and Your Clients

"So why do I need a developer now?"

The client saw that the site can be run from an AI app and asks directly: if the agent publishes, edits and answers on its own, what am I paying a developer for?

The answer is like with a car. The client drives wherever and whenever they want. But someone has to build the car, set up the brakes, fit the alarm and service it regularly. The Abilities API gives the client the steering wheel. The developer makes sure the car drives safely.

Agenda

In 10 minutes you will:

  • state the main benefit of the Abilities API for the client;
  • break the developer's work down with the "car and service" model;
  • name the risks and how to control them;
  • watch the full path "from an empty list to an AI connector" on video.

Theory

The main thing for the client

The client runs their favorite WordPress site from their favorite AI app. No new admin, no "click here, then there" instructions: the person writes what they want, and the site does only what it's allowed to.

Benefits for the developer

  • One standard instead of a custom API in every plugin.
  • The site says what it can do: the registry is living documentation.
  • Input is validated against the schema before your code runs.
  • Permissions in one place: permission_callback right next to the action.
  • One list for PHP, REST, JavaScript and MCP.

The "car and service" model

flowchart LR
  subgraph CL["Client · steering wheel"]
    A1["writes a request<br/>in the AI app"]
    A2["publishes, edits,<br/>asks for stats"]
  end
  subgraph DEV["Developer · service"]
    D1["which abilities are needed"]
    D2["schemas and permissions"]
    D3["allow-list, passwords,<br/>agent instructions"]
    D4["tests, log, updates"]
  end
  DEV -- "a safe site" --> CL
  CL -- "new needs" --> DEV
The client does it themselvesThe developer does and maintains
asks the agent to publish, update, finddecides which actions can be given to an agent at all
uses their own AI appsets up the server, allow-list, a separate password
gets the result in minuteswrites schemas, permissions, instructions, tests
asks for a new capabilityadds a new ability and tests it

Risks and how to control them

RiskWhat can happenControl
A weak permission_callback on writesthe agent changes what it shouldn'tpermissions on every action, never __return_true for writes
meta.public set by a pluginan ability is open without your decisiondefault server off, allow-list
An ability that's too broad"do everything" in one callsmall actions with clear schemas
Destructive actionsdeletion without confirmationdestructive + "ask every time" in the client, revisions
Prompt injection through contenttext on the site "commands" the agentmodule 7 of the course

All these risks are easy to control when a developer takes care of them. That is exactly the service the client pays for.

A practical case

The module video shows the full path on our 4WP MCP Connector: from an empty list to a working connection.

  1. Everything is off by default: the administrator turns on only what the AI app may use.
  2. One password, one file: the site address and login are already in the connector.
  3. Double-click, paste the password, Install.
  4. The AI app knows what the site can do. Only what you allowed.

[video:https://youtu.be/hQJSdYiwFQU]

Code / commands

BASH
# How many abilities your site already has, and whose they are
wp eval '$c = []; foreach ( wp_get_abilities() as $a ) { $ns = strtok( $a->get_name(), "/" ); $c[ $ns ] = ( $c[ $ns ] ?? 0 ) + 1; } print_r( $c );'

This is your first argument in the conversation with the client: "here is what your site can already do, and here is what of it we'll give the agent".

Trade-offs

Approach to the clientProsConsWhen
"Here's wp-admin, learn it"zero work nowthe client writes to you about every little thingsites without active content
AI access "to everything"the wow effectthe risks from the table abovenever in production
Well-designed abilities + servicethe client is independent, the site is safeneeds designing and maintainingactive sites, long relationships with the client

Common mistakes

SymptomCauseFix
The client got an admin password for the AI"so everything works"a separate user and an Application Password with the needed permissions
The agent can't do a simple actionthe ability isn't turned on, or no permissionscheck the allow-list and capabilities
The client doesn't understand what's allowedno instructions and no helpmodule 9: agent instructions
"AI will replace the developer"confusing the steering wheel with the servicethe "car and service" model

Practice

  1. Count your site's abilities by namespace with the command above.
  2. For an imaginary client, make a two-column table: "the agent may" / "the agent may not".
  3. Watch the module video and note at which step abilities are turned on.

Result: you have a first plan for the conversation with a client about AI access to their site.

Quiz

  1. What is the main benefit of the Abilities API for the client?
  2. What does the developer do in the "car and service" model?
  3. Name two risks of AI access and how to control them.
  4. Why shouldn't the client connect the AI app with an administrator password?

<details> <summary>Answers</summary>

  1. Running their site from their own AI app.
  2. Chooses the abilities, writes schemas and permissions, sets up the server, allow-list, passwords, instructions, tests and maintains.
  3. For example: a weak permission_callback → permissions on every action; destructive actions → destructive + confirmation and revisions.
  4. The agent would get all administrator permissions; a separate user with the needed permissions is safer.

</details>

FAQ

No. The agent is the steering wheel in the client's hands. Someone has to design which actions are available, with which permissions, and maintain it. That's the developer's job.

Only what you opened as abilities and allowed for their user: publish, edit, get site information, depending on the setup.

Yes, if access is limited: a separate password, the default server off, an allow-list, permissions on every action, confirmation for destructive actions and a call log.

With the list: which abilities already exist, and which of them the client really needs. Then module 2 of the course: your own ability.

Save your progress

Sign in or create a free account to mark lessons as completed and continue the whole course. You will come back to this lesson.