Write an agent
agent_writeCreate an agent or replace an existing one. description and body are required; model and tools are optional and keep their previous value when left out. Docs: https://only-mcp.com/docs/what-is-onlymcp#what-sits-behind-the-one-address
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"description": "<description>",
"body": "<body>"
},
"name": "agent_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The agent definition. A frontmatter head (description, model, tools) is read into the fields and not kept in the body. | |
| name | Yes | Lowercase name with dashes. | |
| model | No | Model to run it on, for example sonnet. | |
| tools | No | Tool names the agent may use. Empty means all. | |
| description | Yes | One line: when this agent should be used. |