harness_author
Configure a Harness — a skill (or instruction) wired to run — and get back its config. A harness wraps ONE unit of work via kind: 'skill' (a registry skill, configured to run) or 'instruction' (a pure agent step, no external tool). Set instruction (imperative — what to do with the skill, or the s...
This record as markdown: /tools/ai-rokha-rokha/harness-author.md
What harness_author does on Rokha
AI agents invoke harness_author to trigger actions in Rokha. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call: builds kicked off, notifications sent, workflows started.
| Parameter | Type | Required | Description |
|---|---|---|---|
tag | string | — | Optional short label (e.g. 'fetch-prices'). |
kind | string | — | What the harness wraps: 'skill' or 'instruction'. Default 'skill'. |
tool | string | — | Optional tool name to invoke on the endpoint. |
params | object | — | Optional arguments for the tool / run, as key→value pairs. |
endpoint | string | — | Optional MCP JSON-RPC endpoint URL. Empty = performed agentically. |
instruction | string | — | Imperative instruction: what to do with the skill, or the step to perform. |
Parameters from the server's own tool schema.
Why harness_author is rated High
Configures and executes external tools and skills via JSON-RPC with arbitrary parameters, enabling code execution.
From the tool's definition Configure and wire skill to run; execute via MCP endpoint, tool call, params
Risk signalsAccepts URL/endpoint input (endpoint)
Attacks that exploit this kind of access
The rule that runs harness_author safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Rokha, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For harness_author, this is the rule to start with:
harness_author stays usable, but rate-capped: a runaway agent can't fire it dozens of times a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Rokha, apply this rule, and every harness_author call is checked against it from then on.
Questions about harness_author
Configure a Harness — a skill (or instruction) wired to run — and get back its config. A harness wraps ONE unit of work via kind: 'skill' (a registry skill, configured to run) or 'instruction' (a pure agent step, no external tool). Set instruction (imperative — what to do with the skill, or the step to perform), an optional tag (short label), and for a real live tool call an optional MCP endpoint (JSON-RPC URL) + tool (name) + params (object of arguments). An empty endpoint means the skill is performed agentically. (In the Rokha UI the same tool fills the human's live Build-a-Harness form.). It is categorised as a Execute tool in the Rokha MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
harness_author accepts 6 parameters: tag, kind, tool, params, endpoint, instruction. The full parameter table on this page comes from the server's own tool schema.
Register the Rokha MCP server in PolicyLayer and add a rule for harness_author: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Rokha. Nothing to install.
harness_author is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the harness_author rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for harness_author. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
harness_author is provided by the Rokha MCP server (https://rokha.ai/mcp/jsonrpc). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Rokha, and thousands of servers like it.
Across the catalogue