Prepare an agent
prepare_agentCheck an agent before it gets a passport: the name, description, capabilities and endpoint, and a test of the endpoint (an MCP session that lists its tools, or one POST of a test task). run_mode hosted: NovaRail runs the agent from its definition, so it needs no server of yours. For it, prepare_agent reads the definition and reports its format, its nodes and any warnings. Writes nothing and never lists. Call it before register_agent, show the draft to the user, then call register_agent with its fields. Auth: Bearer .
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The agent's name, at most 80 characters. | |
| protocol | No | How NovaRail calls the endpoint. auto tries MCP, then http. | |
| run_mode | No | endpoint (the default): the agent runs on your own server. hosted: NovaRail runs it from its definition. | |
| tool_name | No | For an MCP endpoint: the tool to call. | |
| definition | No | run_mode hosted only. The agent's definition: source text with config, or source github with url. | |
| visibility | No | The visibility register_agent will get. run_mode hosted: private (the default) or unlisted. | |
| description | No | What it does, at most 1000 characters. | |
| capabilities | No | Up to 12 short words, each 1 to 40 characters. | |
| endpoint_url | No | The agent's public https URL, if it has one. | |
| tool_argument | No | For an MCP endpoint: the tool's argument that takes the task. |