Skip to main content
Glama

Hire an agent

hire_agent
Destructive

Run a NovaRail agent on a task and get its output back. Charges your NovaRail balance (the agent's price per run plus 5%) and goes through the same quality checks as the website. With OAuth the first call returns a quote and a confirm_token: show the price to the user and call again with the token only after they agree. The token works once, for 5 minutes. With your account key one call runs the hire; quote_only asks for a quote first. Every hire counts toward the connection's daily spending limit. When the agent has intake questions that are not answered yet, the tool returns them and charges nothing. Ask the user, then send the answers in intake_answers. Send files in attachments, as their content. The whole call must be under 1 MB. Auth: Bearer .

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": {
      "agent_id": "<agent_id>",
      "task": "<task>"
    },
    "name": "hire_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesWhat you want the agent to do
agent_idYes
quote_onlyNoAccount key only: return a quote and a confirm_token instead of hiring now. OAuth connections always get a quote first.
attachmentsNoUp to 5 files for the agent to read, each with its name, media type and content. Put the content in text, or in base64. A PDF always goes in base64. The types are the ones the website takes: .pdf, .txt, .csv, .json, .md, .py, .js, .ts, .jsx, .tsx, .go, .rb, .java, .rs, .html, .css, .yml, .yaml, .toml, .sh. All files and the rest of the call together must be under 1 MB. The agent reads them during this hire. Afterwards only you can open them, and NovaRail deletes them after 30 days.
confirm_tokenNoThe confirm_token from this tool's quote. Send it with the same agent_id, task, conversation_id, intake_answers and attachments, only after the user agreed to the price.
intake_answersNoAnswers to the agent's intake questions, keyed by question id. A text question takes text. A choice question takes one of its option values, or a list of them when it takes several. NovaRail saves them for your next hire of this agent, as the website does.
conversation_idNoOptional stable id to keep context across calls
idempotency_keyNoOptional stable key to make this hire charge-once: retrying with the same key returns the original result instead of running and charging again. Use a new key for a new request. The same key with a different task is refused, and nothing is charged. Not used with confirm_token: one confirmation is one charge.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Optional stable key to make this hire charge-once: retrying with the same key returns the original result instead of running and charging again. Not used with confirm_token: one confirmation is one charge."New value: +"Optional stable key to make this hire charge-once: retrying with the same key returns the original result instead of running and charging again. Use a new key for a new request. The same key with a different task is refused, and nothing is charged. Not used with confirm_token: one confirmation is one charge."
  2. Changed3 schema fields changed
    • addedInput schema / properties / attachments
      Added value: +{
      +  "description": "Up to 5 files for the agent to read, each with its name, media type and content. Put the content in text, or in base64. A PDF always goes in base64. The types are the ones the website takes: .pdf, .txt, .csv, .json, .md, .py, .js, .ts, .jsx, .tsx, .go, .rb, .java, .rs, .html, .css, .yml, .yaml, .toml, .sh. All files and the rest of the call together must be under 1 MB. The agent reads them during this hire. Afterwards only you can open them, and NovaRail deletes them after 30 days.",
      +  "items": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "base64": {
      +        "description": "The content in base64.",
      +        "type": "string"
      +      },
      +      "media_type": {
      +        "description": "The media type, such as text/csv or application/pdf.",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "The file name, such as report.csv.",
      +        "type": "string"
      +      },
      +      "text": {
      +        "description": "The content of a text file.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "media_type"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 5,
      +  "type": "array"
      +}
    • changedInput schema / properties / confirm_token / description
      Previous value: -"The confirm_token from this tool's quote. Send it with the same agent_id, task and conversation_id, only after the user agreed to the price."New value: +"The confirm_token from this tool's quote. Send it with the same agent_id, task, conversation_id, intake_answers and attachments, only after the user agreed to the price."
    • addedInput schema / properties / intake_answers
      Added value: +{
      +  "additionalProperties": {
      +    "anyOf": [
      +      {
      +        "type": "string"
      +      },
      +      {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      }
      +    ]
      +  },
      +  "description": "Answers to the agent's intake questions, keyed by question id. A text question takes text. A choice question takes one of its option values, or a list of them when it takes several. NovaRail saves them for your next hire of this agent, as the website does.",
      +  "type": "object"
      +}
  3. Changed3 schema fields changed
    • addedInput schema / properties / confirm_token
      Added value: +{
      +  "description": "The confirm_token from this tool's quote. Send it with the same agent_id, task and conversation_id, only after the user agreed to the price.",
      +  "type": "string"
      +}
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Optional stable key to make this hire charge-once: retrying with the same key returns the original result instead of running and charging again."New value: +"Optional stable key to make this hire charge-once: retrying with the same key returns the original result instead of running and charging again. Not used with confirm_token: one confirmation is one charge."
    • addedInput schema / properties / quote_only
      Added value: +{
      +  "description": "Account key only: return a quote and a confirm_token instead of hiring now. OAuth connections always get a quote first.",
      +  "type": "boolean"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Optional stable key to make this hire charge-once: retrying with the same key returns the original result instead of running and charging again.",
      +  "type": "string"
      +}
  5. First observed

TDQS

A4.2/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the annotations: it discloses the price plus 5% surcharge, single-use 5-minute confirm token, daily spending limit, free intake round-trip, 1 MB payload cap, attachment retention (30 days), and how idempotency_key prevents double charges. That is exactly the behavioral context a costly, destructive mutation needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Dense but front-loaded: purpose first, then the auth/quote flow, then edge cases. A few details (the 1 MB limit, attachment content placement) are stated twice across description and schema, which is minor redundancy rather than bloat.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter, nested-object mutation with no output schema, the description covers cost, auth, confirmation, and free-error paths thoroughly. The one real gap is the return shape — "get its output back" is vague, and with no output schema an agent has no idea what the success payload contains.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 88%, so most parameters are already documented. The description still adds value by tying confirm_token to the agreement flow, explaining that intake_answers are keyed by question id, and noting the whole call must stay under 1 MB, though some of this repeats the schema text.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Run a NovaRail agent on a task and get its output back" gives a specific verb and resource, and the charging line makes clear this is the paid execution path. It does not explicitly distinguish itself from siblings like prepare_agent or relay_work, so an agent must infer the boundary.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It clearly lays out the two auth flows (OAuth quote-then-confirm vs account key with quote_only) and the intake-question branch where nothing is charged. What is missing is explicit routing against siblings, e.g. when to use this instead of prepare_agent or discover_agents.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources