Skip to content
DFL / MCP
esc
↑↓navigate ↵open ⌘↵copy tool name

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.

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 _.
GoodBadWhy the bad name is bad
search_decisionsdecisions_searchThe noun comes first.
get_planread_planread is not an approved verb. Use get.
unsuppress_stagingun_suppress_stagingun takes no underscore.
update_quiz_questionquiz_update_questionA collision is broken by a longer noun, not by a prefix.
VerbUse
listReturn many. Use a plural noun.
getReturn one by id.
searchReturn many by a query.
create, update, deleteThe life of an entity.
archive, unarchiveA soft delete and its restore.
add, removeA link between two entities, for example a dependency or a membership. Do not use them for an entity of its own.
setWrite one attribute, for example set_slide_camera.
upsertOnly when the natural key is the identity.
check, auditA read that returns a verdict.
ingest, classify, post, publish, reverse, void, dispatch, approve, reject, render, exportDomain verbs.
open, close, wait, ackDomain verbs of the agent comms thread, for example open_comms_thread.
unsuppress, unignoreThe restore of suppress and ignore. un takes no underscore.
cleanupDelete the probe rows that tests leave on a TEST business unit, dry run first, for example cleanup_test_rows (dfl-services#880).
moveMove a binding from one parent to another in one write, for example move_plan_tasks (named by Tainan, TG msg 35347).
endEnd the live sessions of a revoked connection, for example end_revoked_connection_sessions (dfl-services#948).
register, repointCreate 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.

  1. The noun names the entity exactly as the host page section names it.
  2. When two hosts have the same tool name, make the noun longer. Do not add a host prefix.
  3. A rename ships with a deprecated alias. The old name stays registered for the deprecation window. Then the old name is removed.

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:

Terminal window
node scripts/check-tool-names.mjs # pass or fail
node scripts/check-tool-names.mjs --verbose # also list the accepted debt and the aliases

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.

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 registerAlias call has no literal removeAfter: 'YYYY-MM-DD' date, or
  • the date is in the past. Remove the alias on or before that date.
docs naming 15 domains published