Skip to content

Build User Tools

Sovereign
Sovereign tier required. User Tools give your agents and workflows access to your own programs and CLI adapters.

Every team has scripts that matter: the build wrapper, the release check, the one-liner that reads a ticket or a cloud account. User Tools make those programs reusable across agent requests and workflows. Describe each action once in a short YAML manifest, then let agents find and run it through MCP or add it in the Builder. Both paths use schema-checked inputs and typed JSON results; workflow steps also pin the exact code you reviewed.

Write your tool in any language that can read standard input and write standard output. No SDK, plugin API, or MCP server is required.

Installed tools appear in the Builder by name. Each step pins the exact revision and content hash you selected.

Why not just run a command?

A Command step is ideal for a one-off npm test. Once a script becomes something several workflows depend on, a loose shell string starts to cost you: inputs go unchecked, output is text you have to parse, and the script can change underneath a workflow you already reviewed.

The payoff compounds. Write the adapter once, and every workflow that needs it gets the same validated contract, the same reviewed code, and a step result you can inspect after every run.

How it works

You create three things:

  • A program that reads one JSON request and writes one JSON result.
  • A manifest (.tool.yaml) that names the tool, its actions, and the inputs and outputs of each action.
  • A pack that bundles those files so you can import them into Valdr, or share them with your team.

After import, the tool appears in Workflows > Tools and in the Builder’s User tools library group. Agents can also discover its actions through pm_user_tool, without creating a workflow.

Local-first: User tools run on the machine running Valdr (the workflow host), as your user, with the runtimes and CLI sign-ins already installed there. Valdr keeps the reviewed tool source and every run’s evidence in your local workspace until you delete them.

Find what you need

Start with the starter pack to see what’s available, then build and run your own tool. The CLI and Maven guides show how to apply the same pattern to your projects. Keep the schema and execution references nearby as you build, and use the troubleshooting guide when something fails.

I want to…Read
Start from working code or a ready-made CLI adapterUse the Starter Pack
Let an agent find and run an installed actionCall User Tools through MCP
Run a tool on a schedule or when a task is createdAutomations
Use a tool someone already builtUser Tools
Build a tool from scratchBuild Your First Tool
Import a tool or ship a new versionPackage, Import, and Update
Turn an installed CLI into workflow actionsWrap a CLI
Run Java builds without flooding the run with logsMaven Builds
Look up a manifest field or schema ruleManifest and Schemas
Understand requests, results, and retriesRequests and Execution
Diagnose a tool that failsTest and Troubleshoot

Next step

Use the Starter Pack to explore working examples and choose a starting point for your own tool.