Tool naming convention
Every DFL MCP tool name follows one rule. The rule makes the name tell you what the tool does before you read its description.
The rule
Section titled “The rule”A tool name is verb_noun[_qualifier] in snake_case.
- The verb comes first. The verb is from the approved set below.
- The noun names the entity. Use the same word that the host page uses for that entity.
- The qualifier is optional. It makes the name more specific, for example
set_plan_visibility_batch. - Use only lowercase letters, digits and
_.
| Good | Bad | Why the bad name is bad |
|---|---|---|
search_decisions | decisions_search | The noun comes first. |
get_plan | read_plan | read is not an approved verb. Use get. |
unsuppress_staging | un_suppress_staging | un takes no underscore. |
update_quiz_question | quiz_update_question | A collision is broken by a longer noun, not by a prefix. |
The approved verbs
Section titled “The approved verbs”| Verb | Use |
|---|---|
list | Return many. Use a plural noun. |
get | Return one by id. |
search | Return many by a query. |
create, update, delete | The life of an entity. |
archive, unarchive | A soft delete and its restore. |
add, remove | A link between two entities, for example a dependency or a membership. Do not use them for an entity of its own. |
set | Write one attribute, for example set_slide_camera. |
upsert | Only when the natural key is the identity. |
check, audit | A read that returns a verdict. |
ingest, classify, post, publish, reverse, void, dispatch, approve, reject, render, export | Domain verbs. |
open, close, wait, ack | Domain verbs of the agent comms thread, for example open_comms_thread. |
unsuppress, unignore | The restore of suppress and ignore. un takes no underscore. |
cleanup | Delete the probe rows that tests leave on a TEST business unit, dry run first, for example cleanup_test_rows (dfl-services#880). |
move | Move a binding from one parent to another in one write, for example move_plan_tasks (named by Tainan, TG msg 35347). |
end | End the live sessions of a revoked connection, for example end_revoked_connection_sessions (dfl-services#948). |
register, repoint | Create a registry row for a handle, and change where an existing row points, for example register_webhook_subscription and repoint_webhook_subscription (named by Tainan, TG msg 23275). |
To add a verb to this set, revise the plan
20261005-mcp-docs-ia-and-fleet-naming (§3.3) first. Then change
APPROVED_VERBS in scripts/check-tool-names.mjs and the sorted list in
scripts/approved-verbs.snapshot.json in the same pull request. The verb ratchet
fails CI when the two differ.
Three more rules
Section titled “Three more rules”- The noun names the entity exactly as the host page section names it.
- When two hosts have the same tool name, make the noun longer. Do not add a host prefix.
- A rename ships with a deprecated alias. The old name stays registered for the deprecation window. Then the old name is removed.
The lint
Section titled “The lint”The CI job tool-names runs node scripts/check-tool-names.mjs on every pull
request. The script reads every registerTool( name in packages/*/src and
applies the rule.
Some tools existed before the rule. Their names are in
scripts/tool-names-baseline.json. Each entry has a name, a host, a
reason, and an optional planned_rename. The baseline is a ratchet:
- A new tool name that breaks the rule fails the lint. Rename the tool. Do not add a new tool to the baseline.
- A baseline entry whose tool now passes, or no longer exists, fails the lint. Delete that entry. The baseline must only get shorter.
- A baseline entry whose tool still breaks the rule is accepted debt.
To run the lint on your machine:
node scripts/check-tool-names.mjs # pass or failnode scripts/check-tool-names.mjs --verbose # also list the accepted debt and the aliasesOne name, one host
Section titled “One name, one host”A tool name must be unique across the whole fleet. A client that merges the connectors, and the planned unified host, shows one flat list of tools. Two hosts with the same name would collide there.
scripts/check-tool-names.mjs reads docs/public/tools-manifest.json and fails
when a name is on two or more hosts. There is no warn window. The only accepted
exception today is get_current_actor: every host registers the same shared
definition on purpose. The exceptions are in SHARED_ACROSS_FLEET in the script,
each with a reason. An exception that is no longer shared also fails the check.
If two hosts need a similar tool, give each a different name.
Deprecated aliases
Section titled “Deprecated aliases”The 34 aliases from the 2026-10-05 fleet migration were removed on 2026-10-06. Tainan authorized early retirement after the skill update. Clients must use the canonical tool names. The helper below remains available for future migrations.
To rename a tool, register the new name first. Then keep the old name with
registerAlias from @devfellowship/dfl-mcp-base:
server.registerTool('get_example', config, handler);registerAlias(server, 'old_example', 'get_example', { removeAfter: 'YYYY-MM-DD' });The alias calls the same handler. Its description starts with a deprecation
notice. The generated docs mark it with deprecated_alias_of. Each alias call
records tool.alias_of in its OTEL span, so you can see who still uses the old
name.
The lint does not apply the naming rule to an alias. But the lint fails when:
- the
registerAliascall has no literalremoveAfter: 'YYYY-MM-DD'date, or - the date is in the past. Remove the alias on or before that date.